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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file globus-sdk-tokenstorage-0.4.1.tar.gz.

File metadata

  • Download URL: globus-sdk-tokenstorage-0.4.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for globus-sdk-tokenstorage-0.4.1.tar.gz
Algorithm Hash digest
SHA256 77ee11ef28509f9bc9c98a8746c1efa36d380620ba2153a34d961d49e5e33ea2
MD5 4870bfad84a86dbf8bd1a45b96d87079
BLAKE2b-256 633f7968da0a60b9baf5b7919dc5378ea6c573b060975efab11d2a59c9d31717

See more details on using hashes here.

File details

Details for the file globus_sdk_tokenstorage-0.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: globus_sdk_tokenstorage-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for globus_sdk_tokenstorage-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ff902ebcfbdc803f2e48356aeab25cc918a76e4ed48961dbbe3a38a237117f3a
MD5 c334593233a8fdbbbec795dc676a7532
BLAKE2b-256 8983a9d07115a7b630794c840778ede7a4060fca638ffae7079493992f1b872f

See more details on using hashes here.

Supported by

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