【问题标题】:How to implement authentication and authorization for web apps如何实现 Web 应用的身份验证和授权
【发布时间】:2016-10-02 02:00:53
【问题描述】:

我一直在开发一个 Web 应用程序。我将它安装在 AWS EC2 实例上。目前,它可供网络上的所有人使用。但是,我希望它仅适用于授权用户。您能否帮助我了解如何为该应用实施谷歌登录,以便只有通过谷歌登录进行身份验证的用户才能访问它。

我参考了 google 登录网站文档:https://developers.google.com/identity/sign-in/web/。然而,它只讨论了实现身份验证代码,而不是关于它应该如何连接到网络应用程序。

我应该将 google 登录代码放在哪里?是在网络应用代码里面吗

我应该为登录代码创建一个单独的网页并将其重定向到 AWS/Web 应用程序服务器 IP 地址吗?

谢谢

阿伦

【问题讨论】:

    标签: amazon-web-services web-applications amazon-ec2 google-signin


    【解决方案1】:

    Google 的 API 客户端(可让您使用 Google 实现登录)托管在 Github 上。访问 https://github.com/google?utf8=%E2%9C%93&query=api 并找到 repo google-api-[your_language]-client。关注this tutorial 开始吧。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-06
      • 1970-01-01
      • 2022-12-11
      • 2016-01-12
      • 2012-09-10
      • 1970-01-01
      相关资源
      最近更新 更多