Hi, I am trying to set up my custom connector to use AAD authentication. I have tried to set up basic auth which works fine. But trying to set up Oauth2.0 and AAD it get error 401 - Unauthorized.
My security tab:
Authentication type: OAuth 2.0
Identity Provider: Azure Active Directory
Client id: id from app registration
Client secret: secret from app registration
Login URL: https://login.windows.net (default)
Tenant ID: common (default)
Resource URL: Scope: Scope (default)
Steps in Azure:
Created App registration
Added Authentication for Web, and copied url https://global.consent.azure-apim.net/redirect into redirect url, left log off empty. Nothing else filled out under Authentication
Under certificates and secrets created a new secret, never expires Nothing more in Azure
When testing an REST api call, I get errors below. What to do? { "error": { "code": "Unauthorized", "message": "The credentials provided are incorrect" } } Headers: { "content-language": "en-US", "content-length": "87", "content-type": "application/json", "date": "Fri, 23 Oct 2020 12:30:16 GMT", "ms-correlation-x": "f5d2d9b4-9ce1-4e99-8fe6-44e07f71b479", "strict-transport-security": "max-age=31536000; includeSubDomains", "www-authenticate": "Basic realm=\"\", Bearer authorization_uri=\"https://login.windows.net//oauth2/authorize\"", "x-content-type-options": "nosniff", "x-ms-apihub-cached-response": "true" }
I have the same issue. Did you solve the problem yet?