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

OAuth

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

  • Post published:February 16, 2019
  • Post comments:17 Comments

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 Reading How do I: Really set up Azure Active Directory based authentication for Business Central APIs

Webinar: Leveraging Git

There is still time to sign up for the Leveraging Git webinar. Early bird ends on December 31.

Subscribe to Blog via Email

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

Join 727 other subscribers

Previously on Vjeko.com

  • 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)     

Most popular posts

  • Getting started with gulp and VS Code
  • Encapsulation in JavaScript
  • OnAfter table event subscriber patterns and antipatterns
  • What’s New in NAV 2016: Code Editor
  • Tips & Tricks: Going full screen with control add-ins in BC150
Copyright © 2021 Vjeko.com

We use cookies only to the extent required by Wordpress. By continuing to browse this website, you agree to this cookie policy.

Accept