Skip to content
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

Add UUID checking for add_app_data_access_scope #1022

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Aug 2, 2024

In order to help users catch avoidable errors during login flows, this
adds a validation check which confirms that the UUID given to
add_app_data_access_scope is a valid UUID str. It also checks type
-- guarding against None producing strings like
.../None/data_access and similar type errors.

The check is defined in the utils module for potential reuse, but no
extra usage sites are added in this changeset.


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

In order to help users catch avoidable errors during login flows, this
adds a validation check which confirms that the UUID given to
`add_app_data_access_scope` is a valid UUID str. It also checks type
-- guarding against `None` producing strings like
`.../None/data_access` and similar type errors.

The check is defined in the utils module for potential reuse, but no
extra usage sites are added in this changeset.
@sirosen sirosen merged commit 5ce0e1b into globus:main Aug 2, 2024
15 checks passed
@sirosen sirosen deleted the check-uuids branch August 2, 2024 19:51
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.

2 participants