-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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).