Skip to main content

Globus SDK TokenStorage Extension

Project description

build status Latest Released Version Supported Python Versions License

Globus SDK TokenStorage

Th Globus SDK provides a convenient Pythonic interface to Globus APIs.

This library provides an interface for handling the storage and management of tokens acquired through the SDK more easily.

It takes tokens, stores and loads them to and from files, and additionally provides on_refresh callbacks which can be used in globus_sdk.RefreshTokenAuthorizer and globus_sdk.ClientCredentialsAuthorizer to keep those files up-to-date.

Intentional limitation: this library does not generate Authorizers or Clients, and is limited only to token and file management.

In the future, this may expand to include storage mechanisms which are not files.

Changelog

0.4.1 (2021-09-29)

  • Allow use with SDK version 3

0.4.0 (2021-06-03)

  • Bugfix: Set umask to 0o177 when creating sqlite DB, so that it will only be readable and writable by the current user

  • Abstract base clases now inherit from abc.ABC

  • Rename abstract base classes to StorageAdapter and FileAdapter

  • SQLiteStorageAdapter is now a FileAdapter where filename is the db name

0.3.0 (2021-05-03)

  • Drop support for python versions < 3.6

0.2.1 (2019-11-12)

  • Add methods to SQLiteStorageAdapter for removing tokens and removing config

0.2.0 (2019-11-12)

  • Add SQLiteStorageAdapter which stores tokens and config under namespaces in a sqlite db

0.1.0 (2018-11-07)

  • Initial version of the library, implementing SimpleJSONStorageAdapter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

globus-sdk-tokenstorage-0.4.1.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distribution

globus_sdk_tokenstorage-0.4.1-py2.py3-none-any.whl (12.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page