gpt4 book ai didi

amazon-web-services - AWS Cognito - 用户池联合与身份池联合

转载 作者:行者123 更新时间:2023-12-01 00:18:32 24 4
gpt4 key购买 nike



为什么 AWS Cognito 有两个地方可以联合身份提供商?我认为身份池应该与身份提供者联合,并想知道为什么用户池也可以。请提出有两个位置的原因。

Cognito 身份池可以联合身份提供者。
enter image description here

Cognito 用户池也可以联合身份提供者。

enter image description here

最佳答案

用户池

用户池用于 身份验证 (身份验证)。使用用户池,您的应用程序用户可以通过用户池(本质上是 Amazon Cognito 中的用户目录)登录或通过第三方身份提供商 (IdP) 进行联合,例如 Google、Facebook、Amazon 等社交身份提供商或 Apple,并通过 SAML 身份提供商。

成功对用户进行身份验证后,Amazon Cognito 会发布 JSON Web token (JWT),您可以使用它来保护和授权对您自己的 API 的访问,或交换 AWS 凭证(这就是身份池发挥作用的地方)。

Use a user pool when you need to:

  • Design sign-up and sign-in webpages for your app.
  • Access and manage user data.
  • Track user device, location, and IP address, and adapt to sign-in requests of different risk levels.
  • Use a custom authentication flow for your app.


身份池

身份池用于 授权 (访问控制)。使用身份池,您可以获得临时的、有限权限的 AWS 凭证以访问其他 AWS 服务。

Use an identity pool when you need to:

  • Give your users access to AWS resources, such as an Amazon Simple Storage Service (Amazon S3) bucket or an Amazon DynamoDB table.
  • Generate temporary AWS credentials for unauthenticated users (User Pools support anonymous guest users).


身份池提供 AWS 凭证以授予您的用户访问其他 AWS 服务的权限。要使您的用户池中的用户能够访问 AWS 资源,您可以将身份池配置为 为 AWS 凭证交换用户池 token .

资料来源:

https://aws.amazon.com/premiumsupport/knowledge-center/cognito-user-pools-identity-pools/

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html

关于amazon-web-services - AWS Cognito - 用户池联合与身份池联合,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50577606/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com