Skip to main content

Authorisation utilities for IGWN

Project description

igwn-auth-utils

Python library functions to simplify using IGWN authorisation credentials.

https://igwn-auth-utils.readthedocs.io/

This project is primarily aimed at discovering X.509 credentials and SciTokens for use with HTTP(S) requests to IGWN-operated services.

Release status

PyPI version License DOI

Development status

Build status Code coverage Documentation Status

Installation

The best way to install the latest release is using conda with the conda-forge channel enabled:

conda install -c conda-forge igwn-auth-utils

The latest release can also be installed using pip:

python -m pip install igwn-auth-utils

Basic usage

To discover an X.509 user credential (proxy) location:

>>> from igwn_auth_utils import find_x509_credentials
>>> print(find_x509_credentials())
('/tmp/x509up_u1000', '/tmp/x509up_u1000')

To discover (and deserialise) a SciToken for a specific purpose (audience and scope):

>>> from igwn_auth_utils import find_scitoken
>>> print(find_scitoken("myservice", "read:/mydata"))
<scitokens.scitokens.SciToken object at 0x7fe99ab792e0>

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

igwn_auth_utils-1.4.0.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

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

igwn_auth_utils-1.4.0-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file igwn_auth_utils-1.4.0.tar.gz.

File metadata

  • Download URL: igwn_auth_utils-1.4.0.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for igwn_auth_utils-1.4.0.tar.gz
Algorithm Hash digest
SHA256 8ebd331a1d6de16e843e94cde2dc0a09d07a7fbc089bc525fa0eabddd89ea187
MD5 fa4b5cf9cc5a5cadd1d09b14949f00d6
BLAKE2b-256 e988a94ef60db81bb38137a3a7278a71efe729623bfa4a5bf4cabed8a8f44b69

See more details on using hashes here.

File details

Details for the file igwn_auth_utils-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for igwn_auth_utils-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3936dbc4e630b1a31eeb1376abf25ac7b518629f84e34ecc37a9d88ebd86e582
MD5 edbcf0fce7dbd58093666fdcc3af4d2f
BLAKE2b-256 70a06d3b9b7ff91c1cc73a0f45972a5032a4e89439ffb16e617806867cee905b

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