【问题标题】:Require secret key using google Oauth需要使用 google Oauth 的密钥
【发布时间】:2019-03-08 15:19:19
【问题描述】:

我有一个使用 Google 和 Facebook 登录的 Web 应用程序。

我想通过添加密钥来要求身份验证,因此在客户端我可以只使用我自己的应用程序而不是任何其他应用程序进行连接。

我在 Facebook 中通过添加 appsecret-proof 参数来做到这一点,启用

如何使用 google 做同样的事情?

【问题讨论】:

    标签: oauth oauth-2.0 google-api google-oauth


    【解决方案1】:

    您可以通过https://console.cloud.google.com/apis/credentials 为您的应用程序注册一组新的“Web 凭据”,客户端密码将在那里可用。

    https://developers.google.com/identity/protocols/OpenIDConnect

    https://developers.google.com/identity/protocols/OAuth2

    https://developers.google.com/identity/sign-in/web/sign-in

    以上描述了 Google Oauth 的工作原理及其配置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-05-10
      • 1970-01-01
      • 2011-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-29
      相关资源
      最近更新 更多