web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Business Central and AAD
Power Automate
Unanswered

Business Central and AAD

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • mauritsbouman Profile Picture
    2 on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 307 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 269 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 115 Super User 2026 Season 1

Last 30 days Overall leaderboard