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 :
Microsoft Dynamics CRM (Archive)
Suggested answer

dynamics v8 ADFS server settings

(0) ShareShare
ReportReport
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 
I have the same question (0)
  • Suggested answer
    PhilipK Profile Picture
    602 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
    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

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard > 🔒Ι Microsoft Dynamics CRM (Archived)

Featured topics

Product updates

Dynamics 365 release plans