An API that connects multiple Microsoft services, enabling data access and automation across platforms
The failure is consistent with an incomplete or incorrect OAuth configuration for the custom connector. The key issues in the current setup are:
- Scope is blank
Missing or incorrect scopes are a documented cause of custom connector authentication failures. If refresh tokens are needed, include
offline_access. - OAuth settings must be validated end-to-end outside Power Automate
Before configuring the custom connector, verify the OAuth flow in Postman:
- Call the token endpoint.
- Call the API by using the returned token.
- Refresh the token after expiry.
- Call the API again with the refreshed token.
- Custom connectors use the authorization code flow Implicit and client credentials flows do not issue refresh tokens and aren’t suitable for user-delegated authentication in custom connectors.
- Check for mismatched or incomplete OAuth values
Common causes called out in the documentation are:
- incorrect authorization or token endpoint
- mismatched redirect URI between the app registration and the custom connector
- missing or incorrect scopes
- mixing v1.0 and v2.0 endpoints or parameters
- app registration not set up for the intended tenant or multitenant scenario
Use this validation path:
- In the app registration, note these values:
- Directory (tenant) ID
- Application (client) ID
- Authorization endpoint:
/oauth2/v2.0/authorize - Token endpoint:
/oauth2/v2.0/token - required delegated scopes
- Add this redirect URI temporarily for Postman testing:
-
https://oauth.pstmn.io/v1/callback
-
- In Postman, test OAuth 2.0 with the app registration values and confirm:
- token issuance succeeds
- the API accepts the bearer token
- token refresh succeeds
- In the custom connector, recheck:
- Identity provider is Microsoft Entra ID
- redirect URI in the app registration exactly matches the custom connector redirect URI
- scopes are populated correctly instead of left blank
- endpoint versioning is consistent and not mixed
- If testing in the connector still fails, create a new connection and test it from the connector’s Test tab. For some connectors, later steps fail unless a new connection is created and tested first.
About the Swagger editor redirect error: the returned guidance only supports checking OAuth configuration, redirect URIs, scopes, and endpoint consistency. The supported next step is to verify the same OAuth flow outside Power Automate first, then bring the exact working values back into the connector.
References: