【问题标题】:Difference between identityId and token in AWS cognitoAWS cognito中identityId和token的区别
【发布时间】:2016-12-13 04:52:31
【问题描述】:

在 Lambda 中使用它时:

getOpenIdTokenForDeveloperIdentity

返回一个身份和令牌。

身份和令牌的意义何在?哪个是为了什么?

【问题讨论】:

    标签: ios amazon-web-services aws-lambda amazon-cognito


    【解决方案1】:

    身份 ID 是 Cognito 为您的用户创建的唯一用户标识符。如果您链接同一用户的多个登录,此标识符保持不变。

    另一方面,令牌是属于该用户的 OpenId 令牌,并且在有限的时间内有效。此令牌可通过调用 Cognito 联合身份服务中的 STS 或 GetCredentialsForIdentity API 来交换 AWS 凭证。

    有多种资源可以解释联合身份服务的概念。

    1. http://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html
    2. http://mobile.awsblog.com/post/Tx2UQN4KWI6GDJL/Understanding-Amazon-Cognito-Authentication

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-23
      • 2019-11-29
      • 2019-05-19
      • 2016-04-09
      • 2018-04-01
      • 2019-03-16
      • 1970-01-01
      • 2016-07-20
      相关资源
      最近更新 更多