Skip to content
Vjeko.com
  • Control Add-ins
  • Tips & Tricks
  • About
  • Toggle website search
Menu Close
  • Control Add-ins
  • Tips & Tricks
  • About
  • Toggle website search

OAuth

  1. Home>
  2. OAuth

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

  • Post published:February 16, 2019
  • Post comments:25 Comments
  • Reading time:17 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.

(more…)

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

Subscribe to Blog via Email

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

Join 862 other subscribers

Previously on Vjeko.com

  • 2023 (3)     
  • 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)     

Search Vjeko.com

Recent Comments

  • Paula Remmerswaal - van Reisen on AL Object ID Ninja
  • Jake on AL Object ID Ninja logical ranges overview
  • Vjeko on AL Object ID Ninja logical ranges overview
  • Jake on AL Object ID Ninja logical ranges overview
  • Bambia Meriam on Web Services Black Belt: consuming NAV web services using pure C/AL

Most popular posts

  • From C/AL to executable: how NAV runs your C/AL code
  • Getting started with gulp and VS Code
  • Do you have a value, Mr. BLOB?
  • C# Injection: Don’t trust FOB
  • Using complex types with custom APIs
Copyright - OceanWP Theme by OceanWP