I received an access token from azure ad and try to decode it on a kitura server.
On jwt.io i can decode it successfully but not via the jwt decode routines from kitura sample project. I am using the exact code given by the sample kitura project on github. Has someone used that with an azure token?
You should be able to decode the v1 token to a struct without verifying using the following code:
If you want to verify the JWT as well you need to create a
JWTVerifierfrom a PEM encoded RSA public key:Then pass this to the decoder: