web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    Marco Mels Profile Picture
    on at
    RE: OAuth service to service authentication

    Thank you for sharing.

  • faran1 Profile Picture
    115 on at
    RE: OAuth service to service authentication

    Hi, the issue resolved.

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

  • Suggested answer
    YUN ZHU Profile Picture
    92,073 Super User 2025 Season 2 on at
    RE: OAuth service to service authentication

    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

  • Bilal Haider Profile Picture
    408 on at
    RE: OAuth service to service authentication

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

  • faran1 Profile Picture
    115 on at
    RE: OAuth service to service authentication

    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.

  • Suggested answer
    Bilal Haider Profile Picture
    408 on at
    RE: OAuth service to service authentication

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,878

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,390

#3
Sumit Singh Profile Picture

Sumit Singh 2,884

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans