【问题标题】:Ampliy withAuthenticator v/s with withOAuth放大 withAuthenticator v/s with withOut
【发布时间】:2019-10-12 19:57:09
【问题描述】:

AWS Amplify with Authenticator v/s with OAuth

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

除了用户界面,两者的优缺点是什么

【问题讨论】:

    标签: amazon-web-services authentication aws-amplify


    【解决方案1】:

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-13
    • 1970-01-01
    • 2016-01-22
    • 1970-01-01
    • 1970-01-01
    • 2022-11-29
    • 1970-01-01
    • 2022-12-27
    相关资源
    最近更新 更多