Problem:
API requests on dynamics 365 On-premises environment always return 401 Unauthorized request
Then, I created client app on the server using both powershell and ADFS Manager. But still return 401.
And active directory log the below error to Event Viewer.
Encountered error during OAuth token request.
Additional Data
Exception details:
Microsoft.IdentityServer.Web.Protocols.OAuth.Exceptions.OAuthUnauthorizedClientException: MSIS9321: Received invalid OAuth request. The client '49c64c4c-d992-45fe-81b2-ad0e2e9d4506' is forbidden to access the resource 'auth.getedara.com'.
at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthProtocolContext.ValidateScopes(String scopeParameter, String clientId, String relyingPartyId)
at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthToken.OAuthClientCredentialsContext.ValidateCore()
PLEASE I NEED YOUR HELP TO SOLVE THIS PROBLEM.THANKS
*This post is locked for comments