Skip to content

Support use of MISSING throughout the BaseAuthClient and its variants #1228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 24, 2025

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Jun 18, 2025

This started from a body of work done by @MaxTueckeGlobus , but I rebased it and continued to tinker on it to get things ironed out as part of the improvements I delivered in #1222.

As with other conversions, many of these are "rote", simple rewrites, and a few have special nuance.
In particular, we discussed whether or not the oauth2 flow manager objects should rewrite to use MISSING or continue to use None.
I examined the parameters and made some judgement calls there, as there are fields which at least in theory a user could want to explicitly remove from an authorization URL, although there is no current practical reason to enable such usage.

Also notable: I decided not to touch the GARE components in this work. As a result, there is a new none2missing helper added to adapt a GARE into OAuth2 authorization inputs.


📚 Documentation preview 📚: https://globus-sdk-python--1228.org.readthedocs.build/en/1228/

MaxTueckeGlobus and others added 6 commits June 23, 2025 11:27
Also includes a minor fix for usage which was missing
`strseq_listify()` usage.
- "unreachable code" due to None vs MISSING in a comparison
- tests which expect None handling should expect MISSING handling
- one test which tested *unsupported* values (by typing contract) has
  been narrowed to supported types only
@sirosen sirosen force-pushed the auth-missing-defaults branch from 89c35b2 to 92a0e00 Compare June 23, 2025 16:31
@sirosen sirosen merged commit 557ae2a into globus:4.x-dev Jun 24, 2025
7 checks passed
@sirosen sirosen deleted the auth-missing-defaults branch June 24, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants