Token validation failed : 401 unauthorized

Radha Rajendran 1 Reputation point
2021-04-07T21:37:53.31+00:00

Hi Team

I am trying below example.

https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/spring/azure-spring-boot-samples/azure-spring-boot-sample-active-directory-resource-server

I have registered one web API and client API. In client API i have added the scope of web API.

Now i generated the token using user name and password for client api and when i tried to pass the generated token to web api, i am getting 401 unAuthorized.

Please find the attached document for complete reference.
85475-demo-web-api-demo-client-api-converted.pdf
Any leads would be appreciate

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.