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.3.0.tar.gz (39.8 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.3.0-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: igwn_auth_utils-1.3.0.tar.gz
  • Upload date:
  • Size: 39.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 eceffafc6c121b0b80244ca1e4cd6f1574da49914e8cc0ab8675fca869a2c7c7
MD5 a76c3f5ab4c6b6011e17c428a14be845
BLAKE2b-256 e22331a550e55688fb60bed604b0b5178cb563e47a68e5f9cbc1efdfcfeb0571

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for igwn_auth_utils-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 919dd2f729ef960bf836c21aa450f7b987e04269dec65ddeb99938133a04b21e
MD5 fa86d9840c90772706b09e112844451f
BLAKE2b-256 2336bf01578b6a50290079f3d89e05cbb73b71ec145578fef598bf3cb0443f52

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