Skip to content
Vjeko.com
  • AL Object ID Ninja
  • Blog
  • Control Add-ins
  • Tips & Tricks
  • About
Menu Close
  • AL Object ID Ninja
  • Blog
  • Control Add-ins
  • Tips & Tricks
  • About

OAuth

  1. Home|
  2. Blog|
  3. OAuth

How do I: Really set up Azure Active Directory based authentication for Business Central APIs

  • Post published:February 16, 2019
  • Reading time:13 mins read

In just under two weeks I’ll have to present how to use OAuth 2.0 authentication to call REST APIs of Dynamics 365 Business Central. Should be easy. Not only I have already done
OAuth integrations, but there is also a nice step-by-step tutorial by Microsoft specifically done for Business Central. So, I followed the steps to the letter (as much as that was possible), and after all was done, I tried to use Postman to get myself an OAuth 2.0 token for invoking Business Central REST APIs, but it didn’t work. No matter what I did, Postman kept returning this:

(Could not complete OAuth 2.0 login. Check Postman Console for more details.)

So I checked the Postman Console for more details.

(access_denied; Error)

Quite some detail.

After a ridiculous amount of time troubleshooting this, I figured it out. Depending on how your Business Central trial account was configured you may encounter this problem. On top of it add the fact that the documentation isn’t exactly straightforward and at couple of places leaves you (educated-)guessing. So I decided to write this blog in case you (or myself at some future point after I will have forgotten I’ve been in this mess) ever need it.

Continue ReadingHow do I: Really set up Azure Active Directory based authentication for Business Central APIs

Subscribe to Vjeko.com

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 847 other subscribers

Search Vjeko.com

Recent Comments

Vjeko's avatarVjeko on AL Object ID Ninja 3.2.1: A Lo…
Kilian S.'s avatarKilian S. on AL Object ID Ninja 3.2.1: A Lo…
Vjeko's avatarVjeko on AL Object ID Ninja: An Apology…
Vjeko's avatarVjeko on AL Object ID Ninja: An Apology…
Palle@NAVspecialist's avatarPalle@NAVspecialist on AL Object ID Ninja: An Apology…

Most popular posts

  • AL Object ID Ninja: An Apology, a Decision, and a Month on the House
  • AL Object ID Ninja 3.2.1: A Lot Has Happened in Four Days
  • Getting out of the DateTime mess, or how to get Utc DateTime in C/AL
  • OnAfter table event subscriber patterns and antipatterns
  • Testing in isolation

Previously on Vjeko.com

  • 2026 (5)     
  • 2025 (7)     
  • 2024 (3)     
  • 2023 (16)     
  • 2022 (2)     
  • 2021 (17)     
  • 2020 (16)     
  • 2019 (26)     
  • 2018 (14)     
  • 2017 (12)     
  • 2016 (23)     
  • 2015 (37)     
  • 2014 (40)     
  • 2013 (9)     
  • 2012 (23)     
  • 2011 (15)     
  • 2010 (55)     
  • 2009 (75)     
  • 2008 (76)     
  • 2007 (8)     
Copyright © 2026 Vjeko.com

By continuing to use this website, you consent to the use of cookies in accordance with our Cookie Policy.

Accept