Joshua Brown
unread,Jun 14, 2022, 12:24:57 PM6/14/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discuss, sir...@globus.org, Discuss, Joshua Brown
Hi Stephen,
I'm having a little difficulty with following the instructions on this link:
https://globus-sdk-python.readthedocs.io/en/stable/examples/client_credentials.htmlWhen 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.
import globus_sdk
# 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')