Skip to content

Commit

Permalink
Add steps to trust GAM client_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee committed Mar 30, 2023
1 parent bd0bb15 commit afce21a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/gam/__init__.py
Expand Up @@ -7426,7 +7426,7 @@ def _checkClientAndSecret(simplehttp, client_id, client_secret):
while True:
print(f'''Please go to:
{console_url}
{console_url}
1. Choose "Desktop App" or "Other" for "Application type".
2. Enter a desired value for "Name" or leave as is.
Expand Down Expand Up @@ -7465,6 +7465,24 @@ def _checkClientAndSecret(simplehttp, client_id, client_secret):
fileutils.write_file(GC_Values[GC_CLIENT_SECRETS_JSON],
cs_data,
continue_on_error=False)
print(f'''
Now it's important to mark the GAM Client ID as trusted by your Workspace instance.
1. Please go to:
https://admin.google.com/ac/owl/list?tab=configuredApps
2. Click on: Add app > OAuth App Name Or Client ID.
3. Enter the following Client ID value:
{client_id}
4. Search for the ID, select the GAM app, check the box and press Select.
5. Keep the default scope or select a preferred scope that includes your GAM admin.
6. Press Continue
7. Select Trusted radio button, Continue and Finish.
''')
input('Press Enter when complete.')
print('That\'s it! Your GAM Project is created and ready to use.')


Expand Down

0 comments on commit afce21a

Please sign in to comment.