Possible to “swap” OAuth2 Gmail API scopes?

假如想象 提交于 2019-12-12 03:49:46

问题


We have an app in the Google Apps Marketplace that currently uses the Email Settings API:

https://apps-apis.google.com/a/feeds/emailsettings/2.0/

We use this to get a user's email signature.

This is being discontinued later this year, so we now want to move to the Gmail API and use this scope:

https://www.googleapis.com/auth/gmail.settings.basic

We already have the Gmail "compose" scope, however this doesn't allow us to retrieve the signature.

We have over 250 businesses using our software and changing the scopes within the Marketplace SDK will trigger an enormous amount of stress / effort / confusion if end-customers have to re-authorise our App. We'd prefer not to inconvenience the end-customer when we're essentially asking for capabilities that are lesser than what we already had through the old Email Settings API.

Is there any way we can just "swap" and downgrade scopes, or add the new scope without customer intervention? Google have done similar things in the past with deprecated APIs.

EDIT: in case it matters, we're accessing the Gmail API using a service account so we can access the details of any user like we could with the Email Settings API.

(If the answer is "no", I'm hoping an official Google person will see this and take this idea away for consideration. Alternatively, allow us to retrieve signature settings with the "compose" scope since appending a signature to an email you're sending is a genuine use-case.)

来源:https://stackoverflow.com/questions/41703653/possible-to-swap-oauth2-gmail-api-scopes

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