【问题标题】:Adding google to IAM's Identity Providers OpenID Connect将 google 添加到 IAM 的身份提供商 OpenID Connect
【发布时间】:2019-02-06 10:41:24
【问题描述】:

这很难找到,所以我会在这里添加它以防万一有人需要它。

将 google 登录添加为 Android 和 iOS 的 cognito 身份验证提供程序时,我需要使用 OpenID 而不是 Google+,但在将 google 添加为 OpenID 时,我找不到提供程序 URL在google's documentation

【问题讨论】:

    标签: google-plus openid amazon-cognito openid-connect aws-cognito


    【解决方案1】:

    对于您创建的任何凭据,提供者 URL 都是硬编码的 accounts.google.com,并在 Audience 下添加所有 clientID。

    要将 Google 登录添加到适用于 iOS 和 Android 的 Cognito:

    • 转到 IAM -> 身份提供商
    • 创建提供者
    • 选择 OpenID 连接
    • 在提供者 url 中写入 https://accounts.google.com
    • 在 Audience 中编写应用程序的 client_id 之一,您可以从 credentials console 获取

    回到 Cognito:

    • 在身份验证提供程序下转到 OpenID
    • 选择accounts.google.com

    【讨论】:

      猜你喜欢
      • 2017-10-14
      • 2012-05-16
      • 2020-07-06
      • 2013-06-09
      • 2017-01-05
      • 2021-03-10
      • 1970-01-01
      • 2022-09-23
      • 1970-01-01
      相关资源
      最近更新 更多