mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 13:43:35 +00:00
Delete 'email' scope
If this ‘email’ scope is included here then it better be output in the scopes list in doRequestOAuth otherwise nothing works. Why was it even here?
This commit is contained in:
@ -849,7 +849,6 @@ def buildGAPIObject(api, act_as=None, soft_errors=False):
|
||||
scopes = GM_Globals[GM_GAMSCOPES_BY_API].get(u'{0}-{1}'.format(api, version), [])
|
||||
if not scopes:
|
||||
systemErrorExit(15, MESSAGE_NO_SCOPES_FOR_API.format(service._rootDesc[u'title']))
|
||||
scopes += [u'email',]
|
||||
credentials = oauth2client.client.SignedJwtAssertionCredentials(GM_Globals[GM_OAUTH2SERVICE_ACCOUNT_EMAIL],
|
||||
GM_Globals[GM_OAUTH2SERVICE_KEY],
|
||||
scope=scopes, user_agent=GAM_INFO, sub=sub)
|
||||
|
Reference in New Issue
Block a user