我通过将应用程序类型选择为internal
来解决了该问题。
现在,如果用户将尝试从组织电子邮件以外的电子邮件中对用户进行身份验证。他会收到一条错误消息:This client is restricted to users within organization
注释:Google开发者帐户应与您要限制用户oauth的组织属于同一组织
有关详细步骤,您可以查看以下附件的屏幕截图。
Adding Intenal domain setting screenshot
Google message will be shown to other users screenshot