我按照这里的说明操作:https://groups.google.com/d/msg/google-federated-login-api/dNvMHuzUTAU/W-bPbZ2omlAJ
问题是我从未从/o/oauth2/token端点接收到openid_id或sub。我知道我正在接收一个有效的访问令牌,因为我使用它来调用/oauth2/v3/userinfo (并且可以从那里获取sub )。我不知道我做错了什么。我非常确定openid.realm的设置是正确的,因为如果设置不正确,我会得到一个错误。有谁有什么想法吗?是我还是谷歌?
我的请求(隐藏客户端ID ):https://accounts.google.com/o/oauth2/auth?openid.realm=https%3A%2F%2F%2A.localhost.com&state=foobar&redirect_uri=https%3A%2F%2Fwww.localhost.com%2Foauth2cb&response_type=code&client_id=123456789.apps.googleusercontent.com&scope=openid+email&display=popup
发布于 2013-12-08 08:45:47
所以我的问题是我没有在id_token中查找。我假设它会作为回调的查询参数返回。
https://stackoverflow.com/questions/20430330
复制相似问题