I need to validate an Azure AD token(loginResponse.idToken) generated by an React app after Azure AD Validating the user.
In my Web API backend I need to manually validate the token in one of my Web API's and get the user details from the access token. And then send a new JWT token create by the .Net core app.
I tried to validate the Azure AD token, but failed. I tried based on the example on validating the token, but failed.
It returns the error "Signature validation failed. Unable to match key: kid: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]".
Can anyone help me to validate the token and get the user details form the token.
scope
? – Carl Zhao