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.
Development 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
Release history Release notifications | RSS feed
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-0.1.0.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for igwn_auth_utils-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b086aaecc95bc797b2b5912619252bf20239bdd8be787d3388cbade0c72829e |
|
MD5 | b0fa9d3b266bcc0abc3f02451225b2bb |
|
BLAKE2b-256 | 2c6476f1828223a97f21ae48457fcc39210a0f3a47a3ee8b09f29b5002c4683e |