Tools, FAQ, Tutorials:
Access Token Response Received from Google OpenID Connect
How to process the access token response received from Google OpenID Connect service?
✍: FYIcenter.com
After Google OpenID Connect service receives an access token request
from your Web server script, it will process the request and
returns the access token response directly.
In order for your Web server script to process the access token response, you need to have a good understanding of the access token response.
Here is an example of Google OpenID Connect access token response,
{ "access_token": "ya29.GlycBnoWhm7WAwcWy...", "expires_in": 3559, "scope": "https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.email", "token_type": "Bearer", "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6I..." }
The "id_token" value is actually the "id_token" defined in RFC 7519 - JWT (JSON Web Token).
If there is any issue with the access token request, you will receive an error response like this:
{ "error": "invalid_grant", "error_description": "Bad Request" }
If an error response is received, your server side script should display an error Web page to the end user, so he/she can try to sign on again.
Â
⇒ Google OpenID Connect Access Token Request Test Page
⇠Process Google OpenID Connect Access Token Request
⇑ Google OpenID Connect Integration
⇑⇑ OpenID Tutorials
2019-02-05, 1034👍, 0💬
Popular Posts:
What's Wrong with "while ($c=fgetc($f)) {}" in PHP? If you are using "while ($c=fgetc($f)) {}" to lo...
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...
What is Azure API Management Developer Portal? Azure API Management Developer Portal is an Azure Web...
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
How To Pad an Array with the Same Value Multiple Times in PHP? If you want to add the same value mul...