最佳做法:登录Google帐户

时间:2018-07-09 22:12:50

标签: javascript reactjs react-native google-developers-console google-developer-tools

我正在开发一个管理后端,用于管理一些CRUD数据。我在学校工作,该学校在使用Google Apps for Education之前先使用G Suite for Education,这意味着所有用户都拥有Google Mail个人资料。这里一切都很好。

现在!假设一个名为Mike Pantano的老师(mpantano@bravoschool.edu),但是该用户已经拥有一个个人Gmail帐户(mpantano12@gmail.com),并且他同时替换了两者同一Google Chrome浏览器中的帐户。 您正在关注我吗?

好。现在!在我的ReactJS应用中,我开发了一个登录窗口,该窗口正在请求Google凭据,并且弹出窗口显示得很好。

enter image description here

enter image description here

enter image description here

我的问题:

我想为我的应用程序开发一项功能,该功能仅允许登录到属于域 @ bravoschool.edu 的用户。

我该怎么做? 如何防止个人Gmail帐户可以登录?

有什么主意吗?

非常感谢。

0 个答案:

没有答案
相关问题