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
⇠Azure AD v1 id_token Decoded Example
⇑⇑ OpenID Tutorials
2021-05-16, 1094👍, 0💬
Popular Posts:
How To Add Column Headers to a Table? If you want to add column headers to a table, you need to use ...
How to use the "find-and-replace" Policy Statement for an Azure API service operation? The "find-and...
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...
How to use .NET CLR Types in Azure API Policy? By default, Azure imports many basic .NET CLR (Common...
How to use the JSON to XML Conversion Tool at freeformatter.com? If you want to try the JSON to XML ...