Skip to content

Conversation

@sirosen
Copy link
Member

@sirosen sirosen commented Nov 26, 2025

This example still omitted the requested scopes for client credentials and relied on the default (which was removed in v4).

Also swap in our symbolic constants from the TransferClient class, rather than the exact strings needed.


Hat tip to @jweirich-globus for spotting this! 🎉

This example still omitted the requested scopes for client credentials
and relied on the default (which was removed in v4).

Also swap in our symbolic constants from the TransferClient class,
rather than the exact strings needed.
@sirosen sirosen added the no-news-is-good-news This change does not require a news file label Nov 26, 2025
Copy link

@jweirich-globus jweirich-globus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update! 🙏

Copy link
Contributor

@m1yag1 m1yag1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the examples down verbatim and ran them as a user would. It all worked!

# the secret, loaded from wherever you store it
CLIENT_SECRET = "..."
client = globus_sdk.ConfidentialAppAuthClient(CLIENT_ID, CLIENT_SECRET)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the example below, "Using ClientCredentialsAuthorizer", we use confidential_client instead of client. The experience may be better if they were consistent. I noticed this when copying and pasting the example text and trying to get everything working as a user would. If both are either confidential_client or client, whichever is better, then both examples work together without needing to rename variables.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good callout! Let me tweak it. I think confidential_client in both snippets for the sake of clarity.

- rename `client` to `confidential_client` for consistency
- simplify some old-style string formatting using f-strings
@sirosen sirosen merged commit ec5536b into globus:main Nov 26, 2025
7 checks passed
@sirosen sirosen deleted the minor-doc-fix branch November 26, 2025 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-news-is-good-news This change does not require a news file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants