【问题标题】:Force authentication external website with Google Apps Domain强制使用 Google Apps 域对外部网站进行身份验证
【发布时间】:2015-06-06 03:54:23
【问题描述】:

早安,

我需要实施一种方法来强制对 Google Apps 域内的人员进行身份验证以访问网站。

明确地说,用户尝试获取site.com。 如果他没有 cookie,那么他会被重定向并强制使用 Google OAuth2 登录表单。 如果他有,那么他可以访问该网站。

此外,此处的目的是将登录限制为仅限 Google Apps 域内的用户(使用 Gmail 等其他 Google 电子邮件地址的用户无法在此处使用)。

我希望我已经足够清楚了,非常感谢你们的帮助;)

【问题讨论】:

  • 我没明白你的问题是什么......你试过什么?

标签: php oauth-2.0 google-apps


【解决方案1】:

如果网站在 Apache 网络服务器上运行,或者您可以在网站前面使用 Apache 网络服务器作为反向代理,mod_auth_openidc (https://github.com/pingidentity/mod_auth_openidc) 可以强制使用 Google 帐户进行身份验证并将其限制为特定的 Google Apps 域,请参阅:https://github.com/pingidentity/mod_auth_openidc#openid-connect-sso-with-google-sign-in

【讨论】:

    猜你喜欢
    • 2016-10-07
    • 2018-11-20
    • 1970-01-01
    • 2017-09-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-11
    相关资源
    最近更新 更多