amazon-web-services - 使用 OAuth 放大 withAuthenticator v/s

标签 amazon-web-services authentication aws-amplify

AWS Amplify withAuthenticator 与 OAuth 对比

我想为 React 应用程序实现身份验证机制。我正在使用 AWS Amplify 框架,它提供了 3 种方法,要么使用自定义 UI,要么使用身份验证器和 OAuth 组件。我看到 OAuth 组件提供 Cognito 托管 UI,而 withAuthenticator 组件提供 AWS Amplify 自定义 UI。

除了UI,两者的优缺点是什么

最佳答案

withAuthenticator 是针对在该目录中创建用户的 Cognito 用户池的电子邮件和密码。 withOAuthAuth.federatedSignIn 将 Cognito 用户池的 OAuth 端点用于 OAuth 流程,它会为您执行重定向,以根据社交提供商(例如 Login With Amazon、Facebook)对用户进行身份验证、Google 登录等。在此过程发生后,将在 Cognito 用户池目录中创建相应的用户帐户。更多信息可以在这里找到:https://aws-amplify.github.io/docs/js/authentication#concepts

关于amazon-web-services - 使用 OAuth 放大 withAuthenticator v/s,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56322710/

相关文章:

amazon-web-services - AWS SES + S3 : Send emails with attachment from S3

amazon-web-services - API Gateway+Lambda+VPC超时问题

amazon-web-services - 用于文本检测的 Amazon Rekognition

python - Django 中的 URL token 身份验证

amazon-web-services - 放大 - NextJS - 访问 lambda 日志

ios - 预签名 Url 分段上传始终返回 403

c++ - 在输入错误的密码时锁定应用程序 (c/c++)

asp.net - CookieAuthenticationOptions.AuthenticationType 用于什么?

node.js - AWS amplify google 使用 React 登录 1 小时后不会自动刷新 token ?

amazon-web-services - Amplify 无法识别预先存在的 Vue.js 项目