How can I verify a Google authentication API access token?

前端 未结 10 490
长发绾君心
长发绾君心 2020-11-30 17:19

How can I verify a Google authentication access token?

I need to somehow query Google and ask: Is [given access token] valid for the [exampl

10条回答
  •  情深已故
    2020-11-30 18:12

    you can verify a Google authentication access token by using this endpoint:

    https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=
    

    This is Google V3 OAuth AccessToken validating endpoint, you can refer from google document below: (In OAUTH 2.0 ENDPOINTS Tab)

    https://developers.google.com/identity/protocols/OAuth2UserAgent#validate-access-token

提交回复
热议问题