Jun 14, 2022, 12:24:57 PMJun 14
to Discuss, sir...@globus.org, Discuss, Joshua Brown
I'm having a little difficulty with following the instructions on this link:
When I go to register a Globus application under a project, there is no field for placing the scopes, am I missing something?
During registration, make sure that the “Native App” checkbox is unchecked. You will typically want your scopes to be openid, profile, email, and urn:globus:auth:scope:transfer.api.globus.org:all."
The image attached is what I see when I try to register an application.
When I try to run the commands provided with my client secret and client id.
# you must have a client ID
CLIENT_ID = "..."
# the secret, loaded from wherever you store it
CLIENT_SECRET = "..."
client = globus_sdk.ConfidentialAppAuthClient(CLIENT_ID, CLIENT_SECRET)
token_response = client.oauth2_client_credentials_tokens()
The last line fails with an error
globus_sdk.services.auth.errors.AuthAPIError: ('POST', 'https://auth.globus.org/v2/oauth2/token
', 'Basic', 401, 'UNAUTHORIZED', 'Basic auth failed')