Google Apps Marketplace - Adding scopes via Incremental authorisation

荒凉一梦 提交于 2019-12-20 06:38:25

问题


We have an existing web app which uses Google's OAuth 2.0 APIs for Admin Directory, Drive, etc for administrative tasks like backup and audit.

Currently we let our customers install backup and audit independently as 'modules' and each have separate client_ids and separate OAuth scopes (i.e. Admin directory for one, Drive for another).

We want to bring our app to the Google Apps Marketplace, and take advantage of Google Sign In (OpenID Connect), use service accounts with domain-wide delegation of authority, but still let our customers only authorize scopes they want to use.

Can we add new scopes to Google Apps Marketplace apps when a user wants to enable a certain feature?

The best practise guidelines (1) indicate that we should request all scopes we might want up front via the Marketplace SDK scopes section but we want to only request the scopes our customers are going to actually use.

(1) https://developers.google.com/apps-marketplace/practices#1_complete_the_listing_review_request_form


回答1:


You can add new scopes. Your customer will still have to grant access though for the new scope/s from the ADMIN console.



来源:https://stackoverflow.com/questions/33727674/google-apps-marketplace-adding-scopes-via-incremental-authorisation

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