Tools, FAQ, Tutorials:
Decode Google OpenID Connect id_token
How to decode the id_token value received from Google OpenID Connect authentication response?
✍: FYIcenter.com
According to the "RFC 7519 - JWT (JSON Web Token)" standard,
the "id_token" value received from Google OpenID Connect authentication response should be
decoded as below:
Here is an example of an "id_token" value returned from Google OpenID Connect after Base64URL decoded:
Header =
{ "alg": "RS256",
"kid": "08d3245c62f86b6362afcbbffe1d069826dd1dc1",
"typ": "JWT"
}
Body =
{ "iss":"accounts.google.com",
"at_hash":"HK6E_P6Dh8Y93mRNtsDB1Q",
"email_verified":"true",
"sub":"10769150350006150715113082367",
"azp":"9150833677096-....apps.googleusercontent.com",
"email":"jsmith@example.com",
"aud":"9150833677096-....apps.googleusercontent.com",
"iat":1353601026,
"exp":1353604926,
"nonce": "0394852-3190485-2490358",
"hd":"example.com"
}
Signature =
...
Detail description of each field can be found in Google article: "OpenID Connect".
⇒ Validate Google OpenID Connect id_token
⇐ Build Implicit Flow with Google OpenID Connect
2022-02-04, ∼3948🔥, 0💬
Popular Posts:
How to use "xml-to-json" Azure API Policy Statement? The "xml-to-json" Policy Statement allows you t...
How to use "{{...}}" Liquid Codes in "set-body" Policy Statement? The "{{...}}" Liquid Codes in "set...
How to use the "forward-request" Policy Statement to call the backend service for an Azure API servi...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
How To Set session.gc_divisor Properly in PHP? As you know that session.gc_divisor is the frequency ...