我正在尝试使用Google API开发我的第一个使用Google云端硬盘的集成服务(我是新手)。 我将OAuth 2.0客户端ID配置为凭据,但我的服务必须限制只能访问指定的一组帐户(Gmail)。 是否可以通过在Developer Console中设置任何参数来执行此操作?
我显然可以创建一个登录页面,但最好的解决方案是使用与Google API集成的东西(首选PHP)。
谢谢大家
I am trying to use Google API to develope my first integration service with Google Drive (I am a newbie). I configuared OAuth 2.0 client IDs as credentials but my service have to limit access only to a specified set of accounts (Gmail). Is it possible to do this, by setting any parameters in Developer Console?
I can obviously create a login page, but the best solution would be to use something integrated with Google API (preference for PHP).
Thanks all
最满意答案
在Google中创建开发人员帐户并为Oauth 2.0创建应用程序后,您无法对可由Google中的应用进行身份验证的电子邮件ID(gmail)设置任何限制。
您必须在代码中检查。 据我所知,谷歌并没有提供这个选项。
Once you create a developer account in Google and create an application for Oauth 2.0 , You cant set any limit on email ids(gmail) that can be authenticated by your app in Google.
You will have to do that check in your code. Google doesnt provide that option as far as I know.
更多推荐
发布评论