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...
Suggested Answer

OAuth service to service authentication

(0) ShareShare
ReportReport
Posted on by 115

Hi, We have done Oauth Authentication with BC to access web services using a console application, it has been working perfectly before (4-5 months ago), but now it is returning internal server error 500. Intresting part is that its still working with Postman. 

Do anyone knows the issue ? if someone has faced this before ?

I have the same question (0)
  • Suggested answer
    Bilal Haider Profile Picture
    485 on at

    Hi Faran,

    Are you sure this is authentication issue? Because error code 500 does not mean necessarily authentication issue.

    May be you need to refresh the Token for authentication?

    If you can share log/more info then may be answer can be more specific.

  • faran1 Profile Picture
    115 on at

    Hi, yes its not about the authentication, access token is being retrieved. It could be any thing like something missing from the business central setup (related to web service) but nothing has been changed.

  • Bilal Haider Profile Picture
    485 on at

    Do you have telemetry or error log of this issue. Because it might be that you are missing some required parameter in request etc.

  • Suggested answer
    YUN ZHU Profile Picture
    102,361 Super User 2026 Season 1 on at

    Hi, I just tested it in the latest BC21.5, and there is no problem. I suggest to check the App settings on the Azure side as well.

    Version: W1 21.5 (Platform 21.0.53597.53923 + Application 21.5.53619.53813)

    pastedimage1678234276159v1.png

    Thanks.

    ZHU

  • faran1 Profile Picture
    115 on at

    Hi, the issue resolved.

    Permissions set were missing on azure active directory page where we do App registration is business central.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Thank you for sharing.

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 621 Super User 2026 Season 1

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 445 Most Valuable Professional

#3
YUN ZHU Profile Picture

YUN ZHU 366 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans