Is it possible in ADAL4J to verify the signature of a received access token from Azure AD?
I wrote my own code to retrieve the jwks_uri from the openid connect .wellknown meta doc and get the public key indicated by the kid from the doc the jwks_uri points at.
Now I'm looking at whether Adal4J can do this for me. Is there a class/method I can pass in the oAuth2 access code and it will do the above?
Thanks!
Jan
The adal4j library is used to help developers to acquire the access_token from Azure AD. You shouldn't use this library to verify the access_token yourself. Most common scenario is that you should pass this token to a service and that service will verify the access_token.
And if the service is also developed by yourself, you can refer the code in this link which provided by Brad Parks to verify the signature of the token.