Skip to main content

Notifications

Announcements

No record found.

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

dynamics v8 ADFS server settings

Posted on by 50
hi all, for dynamics version 8 on-prem solution with ADFS authentication server set up ; how  I can find out clinet_id and client_secret and then access web api  using a http client .
 
I've tried http client with default credentials and network credentials with active directory user with domain and connection failed and  return Unauthorized .
 
 
I have seen some articles where we need to generate oauth token using ADFS token end point. how do I find these data.
 
any ideas 
  • Suggested answer
    PhilipK Profile Picture
    PhilipK 611 on at
    dynamics v8 ADFS server settings
    Hi.

    On the ADFS server you need to configure an Application group against your environments Dynamics 365 API, which you will find under "Settings - Customizations - Resources for developers.
    In ADFS you create your resource with the identifier of your WebAPI url(from above) within the Application group setup in ADFS.
    In this process would create a "Server application" from where you will generate the clientid along with the client secret.
    You will also need to configure your claims issuance rules for that application group(e.g. UPN, PrimarySID, Windows account name to name such..) which would be the same as your relying party, if configured.
    Make sure you have enabled OAuth for your D365 installation according to the following article.
    You would then configure your app with the identifier(API url) along with the clientid and client secret you configured with your application group.


    Best regards.
    Philip
  • Suggested answer
    RudyZhang Profile Picture
    RudyZhang Microsoft Employee on at
    dynamics v8 ADFS server settings
    Hi,
     
    We have analyzed your needs and here is some of the information we have found to help you solve your problem.
    1. The article at this link is a step-by-step approach to connecting to D365 to use the API client_secret.
    https://dynamics-chronicles.com/article/step-step-connect-d365-clientsecret-use-apis
     
    2. The official documentation at the following link provides a way to request an access token.
    https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/overview/ad-fs-openid-connect-oauth-flows-scenarios#request-id-token-and-access-token
     
     
     
    I hope my answer is helpful to you! If you have any other questions, please feel free to contact me.
     
    Best Regards,
    Rudy Zhang

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans