Skip to main content

Notifications

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

Server to Server API Authentication

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans