Skip to main content

Notifications

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.

  • Pimp Your BC Profile Picture
    Pimp Your BC 82 on at
    RE: OAuth 2.0 Setup page

    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/.../

  • Suggested answer
    srttel Profile Picture
    srttel on at
    RE: OAuth 2.0 Setup page

    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

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans