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 :
Small and medium business | Business Central, N...
Unanswered

BC Onprem OData with Entra login

(0) ShareShare
ReportReport
Posted on by 4
Struggling a bit with this, hoping someone might have an insight. I've no doubt overlooked something simple...
 
We have Business Central 25.2 running on premise, and we use Entra ID for user authentication, all works great.
 
We want to open up OData API for access from Excel/Power Query and Power BI. I've configured as per  https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/authenticating-users-with-azure-ad-openid-connect?tabs=singletenant%2Cadmintool for single tenant and as far as I can tell all the settings are correct but calls to the OData endpoint are still returning basic authentication as an option, and subsequently we can't authenticate.
 
Curl returns the following snippet:
 
< WWW-Authenticate: Basic realm=""
WWW-Authenticate: Basic realm=""
< WWW-Authenticate: Bearer authorization_uri="api://cxxxxxxx-yyyy-4c2c-aeea-bbbbbbbbbbbb/"
WWW-Authenticate: Bearer authorization_uri="api://cxxxxxxx-yyyy-4c2c-aeea-bbbbbbbbbbbb/"
 
Obviously not what I'm expecting.
 
WSFederationLoginEndpoint is set to "https://login.microsoftonline.com/<tenant-id>/wsfed?wa=wsignin1.0%26wtrealm=api://cxxxxxxx-yyyy-4c2c-aeea-bbbbbbbbbbbb%26wreply=https://fqdn/instance/signin"
 
(redacted)
 
also had the realm as the URL, and also had WSFederationLoginEndpoint set to "https://login.microsoftonline.com/<tenant-id>/wsfed"
AppIdUri = "api://cxxxxxxx-yyyy-4c2c-aeea-bbbbbbbbbbbb"
 
NTLM options are off, OData is all on, v4 on, ssl on. Can't see anything I've missed.
 
Any ideas? TIA
 
I have the same question (0)

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,532

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 768 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 724 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans