Google Contacts read only (OAuth 2.0)

2019-02-17 13:43发布

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

2条回答
再贱就再见
2楼-- · 2019-02-17 14:33

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!

查看更多
地球回转人心会变
3楼-- · 2019-02-17 14:38

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

查看更多
登录 后发表回答