globus / globus-sdk-python

Globus SDK for Python
Apache License 2.0
68 stars 38 forks source link

Move ValidatingTokenStorage out of experimental #1066

Closed derek-globus closed 1 month ago

derek-globus commented 1 month ago

Changes

  1. Move ValidatingTokenStorage from globus_sdk.experimental.globus_app to globus_sdk.tokenstorage.
    • With Stephen's recent work, this token storage no longer requires includes any GlobusApp-specific references. It can be used as an extensible class to validate token storages in any context.
  2. Move globus_app errors into the validating_token_storage module space.
    • The errors defined here are all ValidatingTokenStorage errors (subclasses of TokenValidationError). They are referenced in GlobusApp to catch and retry behavior but are properly associated with the token storage itself.
  3. Add docs for key ValidatingTokenStorage constructs to docs/authorization/token_storages.rst

Note

This PR does not intend to introduce any behavioral changes, only cosmetic/import location.

If you observe any, please raise them as bugs.


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