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.2.0.tar.gz (33.5 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.2.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: igwn_auth_utils-1.2.0.tar.gz
  • Upload date:
  • Size: 33.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 b6964ef56692fe6e7279aa4b18c68d069a4e2b9e42a6b237d89e780c1b093a24
MD5 f519811b37ea3cee933b066842c89b5d
BLAKE2b-256 c7a10eac6a19ed52a8dc58a3e79f079a19b7c7ee144fc2225a8b921b2aec8168

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for igwn_auth_utils-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e9ac9bdaca45977da34603f5ca4a97479aea7ff9597f2ed32334a8e8ba576a0
MD5 f05b9e5e095e41ec545aa16d24141a30
BLAKE2b-256 b70b99cb887e1ab234d4a1e5ea76d2a46b2cdfc605402fe35841db983be8f95c

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