Oauth 2.0限制组织内的用户

时间:2019-07-12 08:30:58

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

我遇到了使用Oauth 2.0 API限制组织内用户的问题。

1 个答案:

答案 0 :(得分:1)

我通过将应用程序类型选择为internal来解决了该问题。

现在,如果用户将尝试从组织电子邮件以外的电子邮件中对用户进行身份验证。他会收到一条错误消息:This client is restricted to users within organization

注释:Google开发者帐户应与您要限制用户oauth的组织属于同一组织

有关详细步骤,您可以查看以下附件的屏幕截图。

Adding Intenal domain setting screenshot

enter image description here

Google message will be shown to other users screenshot

enter image description here