Projects STRLCPY got-your-back Commits d6297e75
🤬
  • ■ ■ ■ ■ ■ ■
    gyb.py
    skipped 23 lines
    24 24  __program_name__ = 'Got Your Back: Gmail Backup'
    25 25  __author__ = 'Jay Lee'
    26 26  __email__ = '[email protected]'
    27  -__version__ = '1.55'
     27 +__version__ = '1.60'
    28 28  __license__ = 'Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)'
    29 29  __website__ = 'https://git.io/gyb'
    30 30  __db_schema_version__ = '6'
    skipped 1361 lines
    1392 1392   print('\nAll scopes passed!\nService account %s is fully authorized.' % client_id)
    1393 1393   return
    1394 1394   user_domain = options.email[options.email.find('@')+1:]
    1395  - long_url = (f'https://admin.google.com/{user_domain}/ManageOauthClients'
    1396  - f'?clientScopeToAdd={",".join(all_scopes)}'
    1397  - f'&clientNameToAdd={client_id}')
     1395 + long_url = ('https://admin.google.com/ac/owl/domainwidedelegation'
     1396 + f'?clientScopeToAdd={",".join(all_scopes)}'
     1397 + f'&clientIdToAdd={client_id}&overwriteClientId=true')
    1398 1398   short_url = shorten_url(long_url)
    1399 1399   scopes_failed = f'''
    1400 1400  Some scopes failed! To authorize them, please go to:
    skipped 1258 lines
Please wait...
Page is in error, reload to recover