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 :
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

I have the same question (0)
  • Suggested answer
    Johao Larios Profile Picture
    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,

  • Rangerforme Profile Picture
    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

  • CJustin Profile Picture
    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.

  • Suggested answer
    Johao Larios Profile Picture
    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.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 138 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 107

#3
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 89

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans