Google Contacts read only (OAuth 2.0)

浪尽此生 提交于 2019-12-01 02:49:38

问题


We're using OAuth 2.0 to access Gmail Contacts. Do you know if it is possible to request access (scope) in such a way that the authorization pop-up indicates that we need read only access.

Right now the pop say says "Manage your contacts" - view and manage your Google Contacts. This "manage" part is discouraging to many users while all we need is to view them.

So far we tried the following scopes but the pop-up is the same ("Manage contacts"): - https://www.google.com/m8/feeds/ - https://www-opensocial.googleusercontent.com/api/people

Thanks, Piotr


回答1:


Yes, there is, just use https://www.googleapis.com/auth/contacts.readonly as the scope and it will say "View your contacts".

Hope that helps!




回答2:


For contacts, the lowest granularity of scope that google has is read/write. Read only access is not available.



来源:https://stackoverflow.com/questions/7531066/google-contacts-read-only-oauth-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!