【发布时间】:2015-03-03 11:59:28
【问题描述】:
我在我的应用程序中使用 Google+ 登录。用户得到一个 access_token ,我想将该令牌传递给我的服务器并用谷歌验证它。让我感到困惑的是谷歌文档中关于此安全性的相互矛盾的信息:
https://developers.google.com/accounts/docs/OAuth2UserAgent#validatetoken
说我可以使用 access_token 进行 ajax 调用来检查它是否是有效的令牌。但是,这对我来说很好用,
https://developers.google.com/+/web/signin/client-to-server-flow
说永远不要将 access_token 作为 http 请求中的参数发送到我的服务器。
那么,使用https://www.googleapis.com/oauth2/v1/tokeninfo 是否安全?
【问题讨论】:
标签: oauth oauth-2.0 google-plus google-oauth