microsoft / microsoft/PowerPlatformConnectors
Incorrect `type` Value Generated in `connectionparameters.json` for Custom Connector
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.3k
- Forks
- 1.5k
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 11
Description
Summary
When creating a Custom Connector inside a Power Automate Dataverse Solution using a Swagger 2.0 definition that includes multiple authentication types (OAuth2 + API Key), the exported solution contains an incorrect property name in the generated connectionparameters.json file.
The generated file uses:
"type": "oAuthSetting"
However, the correct value should be:
"type": "oauthSetting"
Due to this typo, publishing the connector in Microsoft Partner Center fails with the following error message:
“Looks like this is not an OAuth connector. Kindly uncheck the box to proceed further.”
Steps to Reproduce
-
Create a new Dataverse Solution.
-
Create a Custom Connector in DataVerse.
-
Inside the Custom Connector:
-
Open the Swagger Editor.
-
Paste a valid Swagger 2.0 definition that contains both OAuth2 and API Key authentication, such as:
"securityDefinitions": { "oauth2_auth": { "type": "oauth2", "flow": "accessCode", "authorizationUrl": "https://api.xxxx.com/auth/pages/authorize.aspx", "tokenUrl": "https://api.xxxx.com/auth/pages/gettoken.aspx?grant_type=authorization_code" }, "api_key": { "type": "apiKey", "name": "api_key", "in": "header" } }, "security": [ { "oauth2_auth": [] }, { "api_key": [] } ]
-
-
Ensure the swagger file has no validation errors and save the connector.
-
Export the Solution as a Managed Solution → a
.zipfile is generated. -
Extract the
.zipfile and navigate to:
Connector/connectionparameters.json. -
Inside the file, locate the
typeattribute, which incorrectly appears as:"type": "oAuthSetting" -
Expected correct value should be:
"type": "oauthSetting"
Actual Result
The exported solution contains:
"type": "oAuthSetting"
This causes Partner Center validation to fail.
Expected Result
The exported solution should contain the correct casing:
"type": "oauthSetting"
This should allow the connector to be published as an OAuth connector in Partner Center without errors.
Impact
- Connector cannot be published to Partner Center unless manually corrected.
- Extra steps required for every export.
- Potential confusion for users assuming the connector is not OAuth-compliant.
Suggested Fix
Update the export generator to ensure the correct property name:
- Replace
oAuthSetting→oauthSetting(lowercaseo).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the export using the Swagger 2.0 definition and inspect Connector/connectionparameters.json in the managed solution ZIP. Trace the export generator that produces the connection parameter type and verify the generated value uses "oauthSetting" rather than "oAuthSetting". Done means the exported connector passes Microsoft Partner Center validation without manual correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100