mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-10 06:33:34 +00:00
use new DwD page
This commit is contained in:
@ -1218,12 +1218,11 @@ def doCheckServiceAccount(users):
|
|||||||
f'\nAll scopes passed!\nService account {service_account} is fully authorized.'
|
f'\nAll scopes passed!\nService account {service_account} is fully authorized.'
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
user_domain = user[user.find('@') + 1:]
|
|
||||||
# Tack on email scope for more accurate checking
|
# Tack on email scope for more accurate checking
|
||||||
check_scopes.append(USERINFO_EMAIL_SCOPE)
|
check_scopes.append(USERINFO_EMAIL_SCOPE)
|
||||||
long_url = (f'https://admin.google.com/{user_domain}/ManageOauthClients'
|
long_url = ('https://admin.google.com/ac/owl/domainwidedelegation'
|
||||||
f'?clientScopeToAdd={",".join(check_scopes)}'
|
f'?clientScopeToAdd={",".join(check_scopes)}'
|
||||||
f'&clientNameToAdd={service_account}')
|
f'&clientIdToAdd={service_account}')
|
||||||
short_url = utils.shorten_url(long_url)
|
short_url = utils.shorten_url(long_url)
|
||||||
scopes_failed = f'''Some scopes failed! To authorize them, please go to:
|
scopes_failed = f'''Some scopes failed! To authorize them, please go to:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user