首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何仅限制GSuit用户注册/登录?

如何仅限制GSuit用户注册/登录?
EN

Stack Overflow用户
提问于 2020-03-24 09:22:36
回答 1查看 74关注 0票数 1

我使用react-google-login作为我的react应用程序。这是我的密码

代码语言:javascript
复制
    <GoogleLogin
    clientId="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
    buttonText="Google"
    render={renderProps => (
    <button onClick={renderProps.onClick} className='google-login-button'>
    <img src={GoogleButton}/>
    </button>
    )}
    onSuccess={this.googleResponse}
    onFailure={() => console.log('error')}
/>

我想要的是,只有Gsuit用户才能登录/向上。就像有Gmail的人不应该被访问一样。

EN

回答 1

Stack Overflow用户

发布于 2020-05-05 08:27:31

您可以尝试使用hostedDomain道具的GoogleLogin,如果还没有尝试。我找到了这个相关的限制对google登录的访问。或者您可以跟随这个线程bhai.诉讼限制

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60828110

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档