Hello,
My current setup includes D365 V8.2 On Premises , ADFS 4.0. I am trying to generate a OAuth 2.0 token for accessing WebAPI. For doing so u have created an Application Group and setup appropriate rules. I am using postman to get the OAuth Token.
i am following this blog to generate the token
https://www.cloudriven.fi/en/cloud-9-videos/how-to-do-a-dynamics-365-web-api-request-using-oauth2/
Following is my setting as it appears on postman
This provides me an access token as well however when i try to examine the token on jwt.io i can see that claim information is missing. Also i have noted that "aud" in the token is set to"urn:microsoft:userinfo" which should have been the resource i am trying to access.
Without claim information the CRM WebAPI calls return 401 authorised. Any help in this regard will be much appreciated.
*This post is locked for comments