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
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
Built Distribution
File details
Details for the file igwn_auth_utils-1.1.1.tar.gz
.
File metadata
- Download URL: igwn_auth_utils-1.1.1.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be787dc31227c3b497f44d88440eb81a6e069225c57c66647a420d93fbe79476 |
|
MD5 | 5c237dca9beddaf7456e23562ccdb270 |
|
BLAKE2b-256 | d62541df00da93af467c6653808ff04143c6da7cfdf5cae8e90fe0652b77b04b |
File details
Details for the file igwn_auth_utils-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: igwn_auth_utils-1.1.1-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f995d79214afbcb05823d46b33a9fd96cfa7734431a2ca5beeddb09c0452da83 |
|
MD5 | dfb8c59a5438d06f4e447f24845eb7ac |
|
BLAKE2b-256 | c57d07b9b5e6421362a27db4fdeac60e211fc07d47b94c2085bcfc2cd76192ae |