web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

OAuth 2.0 Setup page

(0) ShareShare
ReportReport
Posted on by 82

Hello everyone,

I am trying to configure the OAuth 2.0 Setup table (1140) to use the related OAuth 2.0 codeunit (1140). I can see in the object designer that there is a page for the configurations, OAuth 2.0. Setup (1140). 

The problem is that I cannot figure out how to configure the settings on the table since the related page is not accessible when I search for it in BC. Even if I could find it, I still would not be able to insert an configurations since it is InsertAllowed = false and it does not have to usual insert logic in the OnOpen trigger.

Does anyone know on how to set configurations to the OAuth 2.0 Setup table? Thanks for any help.

I have the same question (0)
  • Suggested answer
    srttel Profile Picture
    on at

    This OAuth is not really a one fits all approach and it depends on what you want to archive.

    There are several examples like OAuth and Web Service

    docs.microsoft.com/.../authenticate-web-services-using-oauth

    Or Using Service-to-Service (S2S) Authentication

    docs.microsoft.com/.../automation-apis-using-s2s-authentication

    A bunch of good examples can be found on this repository:

    github.com/.../PSOAuthBCAccess

  • Pimp Your BC Profile Picture
    82 on at

    Thanks for the reply Sebastian. Yeah I realized the limitations of it but thought that I was misunderstanding something. I ended up using an example in the Microsoft github:

    github.com/.../

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans