使用 Appengine/Java
我正在将 OpenID 2.0 迁移到 OpenID Connect(用于登录的 OAuth 2.0),解释如下:https://developers.google.com/accounts/docs/OpenID?hl=ja
我正在执行第 3 步:将(现有)OpenID 2.0 标识符映射到(新)OpenID Connect 标识符。
它表示“在您的用户数据库中,将 openid_id 链接到新的子 ID。”问题是我无法使用 openid_id 选择现有用户,因为在我现有的用户表中使用 com.google.appengine.api.users.User.getUserId() 作为标识用户的值。
(我还保留了完整的 com.google.appengine.api.users.User 对象)
知道如何使用 openid_id 来选择 appengine 用户吗?
最佳答案
com.google.appengine.api.users.User.getFederatedIdentity() 返回 openid_id ( https://www.google.com/accounts/o8/id?id=xxxxxxxxxxxxxx )。由于我无法选择它来识别用户,因此我将在接下来的几个月内将其填充到我的数据库中,以便我可以使用它来选择正确的用户。
关于java - 从 OpenID 2.0 迁移到 OpenID Connect : cannot use the openid_id to select appengine users,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28011961/