Tools, FAQ, Tutorials:
Validate Azure AD v1 id_token
How to validate the id_token value received from Azure AD v1.0 authentication response?
✍: FYIcenter.com
As you can see from the previous tutorials, you can easily decode the "id_token" value received from Azure AD authentication response using a simple PHP script.
After decoding, you can get all information about the end user from the body component, and trust it without any validation.
But, since the "id_token" is included in the authentication response delivered over the public Internet, you should not trust it and perform a number validation steps:
1. Data structure validation.
2. Data attributes validation.
3. Timestamp attributes validation. This will prevent someone to repost the authentication response to your server script at a later time.
4. "nonce" protection and validation. This will prevent someone to repost the authentication response again immediately.
5. Signature validation. This is to ensure the entire authentication response message has not been modified by someone else. See next tutorial on how to perform "id_token" signature validation.
⇒ Validate Azure AD v1 id_token Signature
2021-05-16, 1317🔥, 0💬
Popular Posts:
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API...
What Is Azure API Management Service? Azure API Management as a turnkey solution for publishing APIs...