AssertionType

应用在令牌端点上支持的断言类型。

枚举
UNKNOWN_ASSERTION_TYPE 用于向后兼容的未知断言类型。已拒绝。
ID_TOKEN

OpenIDConnect ID 令牌。这是 grantType 设置为 urn:ietf:params:oauth:grant-type:jwt-bearer 的 JWT 令牌。该令牌与 Google 登录库生成的令牌相同,其验证记录在 https://developers.google.com/identity/sign-in/web/backend-auth 中。如需详细了解 JWT 令牌,请参阅 https://tools.ietf.org/html/rfc7523#section-2.1

当用户尝试与现有帐号关联时,此令牌将包含非标准键值对 intent=get

如果更新成功,则响应内容应遵循 https://tools.ietf.org/html/rfc6749#section-4.1.4 的要求;如果出现错误,响应内容应遵循 https://tools.ietf.org/html/rfc6749#section-4.2.2.1 的要求。

ACCOUNT_CREATION 这与 ID_TOKEN 相同,不同之处在于非标准密钥“intent”会设置为“create”,以表明用户尝试创建应与 JWT 的 sub 字段中的 Google ID 相关联的新帐号,就像其他 Google 登录用法一样。响应与 ID_TOKEN 一样。