
Azure AD - JWT validation
The Azure AD Single-sign-on implementation allows BB to retrieve a JWT token on a POST endpoint to check and authenticate a user login session. Azure AD uses public/private key pair for signing and validating a JWT.
Some questions based on this JWT token setup;
- How can we extract the "header" from this JWT token?
- The "decode_jwt" doesn't provide this at the moment - It seems the "decode_jwt" accepts all secrets and always gives back the payload of the token as a response. This seems a bug, correct?
- How can we use and validate this in the right way? - How can we validate the provided token with the public key (Azure will not share the private key)
- The JWT token is signed with a public/private key pair. RS256 (RSASSA + SHA256) is an algorithm that uses public/private key pair. With the public key, a consumer can verify the signature and therefore the authenticity of the JWT
The Azure AD Single-sign-on implementation allows BB to retrieve a JWT token on a POST endpoint to check and authenticate a user login session. Azure AD uses public/private key pair for signing and validating a JWT.
Some questions based on this JWT token setup;
- How can we extract the "header" from this JWT token?
- The "decode_jwt" doesn't provide this at the moment - It seems the "decode_jwt" accepts all secrets and always gives back the payload of the token as a response. This seems a bug, correct?
- How can we use and validate this in the right way? - How can we validate the provided token with the public key (Azure will not share the private key)
- The JWT token is signed with a public/private key pair. RS256 (RSASSA + SHA256) is an algorithm that uses public/private key pair. With the public key, a consumer can verify the signature and therefore the authenticity of the JWT
Answers