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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Change OAuthLanding page URI in Business Central On-Premise (BC270)

(5) ShareShare
ReportReport
Posted on by 48
Hi,
I'm working on setting up an API connection to my On-Premise Development version of BC270. I have successfully set up OAUTH authentication on my Cloud-based version.
I have set up the Entra ID and the authentication works correctly when called from my dotnet test program.
I have set up the user on the Microsoft Entra Application Card on my BC Instance
When I try and 'Grant Consent' to the user I can log in to my admin Entra Credentials, I get the permissions screen and click yes to grant the permissions, and then I get an error screen because the 'The redirect URI 'http://<servername>:48900/BC270/OAuthLanding.htm' specified in the request does not match the redirect URIs configured for the application'
I can only enter in HTTPS URIs in the Entra configuration page, and I can't find where to change the URI on the server.
I have tried changing the hosting.json file in the web setup, but this tdoesn't change anything.
 
Dominic.
I have the same question (0)
  • Verified answer
    OussamaSabbouh Profile Picture
    17,220 Super User 2026 Season 1 on at
    Hello Dominic,
    The issue is that Business Central is sending Entra ID a redirect URL using HTTP (http://<server>:48900/BC270/OAuthLanding.htm), but Entra only accepts redirect URIs that exactly match the registered URL and typically require HTTPS, so the consent fails due to a redirect URI mismatch; the fix is to configure your BC web client with SSL, set the PublicWebBaseUrl to the HTTPS address, and register that exact HTTPS URL (https://<server>:<port>/BC270/OAuthLanding.htm) in Entra App Registration, because BC always uses the web client base URL to generate the OAuthLanding redirect and it must match the Entra configuration exactly.
    Regards,
    Oussama Sabbouh

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,497 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,778 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,507

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans