microsoft / microsoft/PowerPlatformConnectors

Incorrect `type` Value Generated in `connectionparameters.json` for Custom Connector

Open
#4,071 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Create a new Dataverse Solution.

  2. Create a Custom Connector in DataVerse.

  3. 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": [] }
      ]
      
  4. Ensure the swagger file has no validation errors and save the connector.

  5. Export the Solution as a Managed Solution → a .zip file is generated.

  6. Extract the .zip file and navigate to:
    Connector/connectionparameters.json.

  7. Inside the file, locate the type attribute, which incorrectly appears as:

    "type": "oAuthSetting"
    
  8. 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 oAuthSettingoauthSetting (lowercase o).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.