mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-22 15:11:37 +00:00
Document new ouath create form, make consistent with check serviceaccount (#1168)
This commit is contained in:
@@ -845,6 +845,7 @@ gam delete sakey|sakeys <ServiceAccountKeyList>+ [doit]
|
||||
gam show sakey|sakeys [all|system|user]
|
||||
|
||||
gam oauth|oauth2 create|request [<EmailAddress>]
|
||||
gam oauth|oauth2 create|request [admin <EmailAddress>] [scope|scopes <APIScopeURLList>]
|
||||
gam oauth|oauth2 delete|revoke
|
||||
gam oauth|oauth2 info|verify [accesstoken <AccessToken>] [idtoken <IDToken>] [showsecret]
|
||||
gam oauth|oauth2 refresh
|
||||
|
||||
@@ -10076,7 +10076,7 @@ def createOAuth():
|
||||
'''Explicit command line to create OAuth credentials'''
|
||||
login_hint = None
|
||||
scopes = None
|
||||
if len(sys.argv) >= 4 and sys.argv[3].lower() not in ['admin', 'scopes']:
|
||||
if len(sys.argv) >= 4 and sys.argv[3].lower() not in ['admin', 'scope', 'scopes']:
|
||||
# legacy "gam oauth create/request <email>
|
||||
login_hint = sys.argv[3]
|
||||
else:
|
||||
@@ -10086,7 +10086,7 @@ def createOAuth():
|
||||
if myarg == 'admin':
|
||||
login_hint = sys.argv[i+1]
|
||||
i += 2
|
||||
elif myarg == 'scopes':
|
||||
elif myarg in ['scope', 'scopes']:
|
||||
scopes = sys.argv[i+1].split(',')
|
||||
i += 2
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user