Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Server to Server API Authentication

(1) ShareShare
ReportReport
Posted on by 5

What is the best way to enable server to server authentication to the CI API.

Thanks

  • Suggested answer
    Johao Larios Profile Picture
    Johao Larios 1,795 on at
    RE: Server to Server API Authentication

    Hello there, 

    Yes, you are able to use OAuth with your code. 

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/authenticate-oauth 

    Hope above link helps you to understand this.

  • CJustin Profile Picture
    CJustin 262 on at
    RE: Server to Server API Authentication

    This might help you:

    dev.to/.../create-a-rest-api-in-codeigniter-with-basic-authentication-1e7f

    It explains the basic authentication method with code example.

    Regards.

  • Rangerforme Profile Picture
    Rangerforme 5 on at
    RE: Server to Server API Authentication

    Not really what I had in mind.  I need to call CI REST API methods from custom MVC application.  Is there a way to assign OAuth client grant or use a security principal, all the sample I've seen are authenticated via user account.

    https://global.api.ci.ai.dynamics.com/swagger/index.html

  • Suggested answer
    Johao Larios Profile Picture
    Johao Larios 1,795 on at
    RE: Server to Server API Authentication

    Hello Rangerforme,

    The best way is use application user as explained here:

    docs.microsoft.com/.../solutions-overview

    Regards,

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans