Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Business Central and AAD

(0) ShareShare
ReportReport
Posted on by 77

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" }

  • mauritsbouman Profile Picture
    mauritsbouman 2 on at
    Re: Business Central and AAD

    I have the same issue. Did you solve the problem yet?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics