igwn-auth-utils-1.4.0
توضیحات
Authorisation utilities for IGWN
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | igwn-auth-utils-1.4.0 |
| نام | igwn-auth-utils |
| نسخه کتابخانه | 1.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Duncan Macleod <duncan.macleod@ligo.org> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/igwn-auth-utils/ |
| مجوز | BSD-3-Clause |
# `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
[](http://badge.fury.io/py/igwn-auth-utils)
[](https://git.ligo.org/computing/igwn-auth-utils/blob/main/LICENSE)
[](https://zenodo.org/badge/latestdoi/383081505)
## Development status
[](https://git.ligo.org/computing/igwn-auth-utils/-/pipelines)

[](https://igwn-auth-utils.readthedocs.io/en/latest/?badge=latest)
## Installation
The best way to install the latest release is using
[`conda`](https://conda.io/) with the
[`conda-forge`](https://conda-forge.org) channel enabled:
```bash
conda install -c conda-forge igwn-auth-utils
```
The latest release can also be installed using `pip`:
```bash
python -m pip install igwn-auth-utils
```
## Basic usage
To discover an X.509 user credential (proxy) **location**:
```python
>>> 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`):
```python
>>> from igwn_auth_utils import find_scitoken
>>> print(find_scitoken("myservice", "read:/mydata"))
<scitokens.scitokens.SciToken object at 0x7fe99ab792e0>
```
نیازمندی
| مقدار | نام |
|---|---|
| - | cryptography>=44.0.1 |
| - | requests>=2.32.0 |
| - | safe-netrc>=1.0 |
| - | scitokens>=1.8 |
| xtr | htgettoken>=2.1; |
| xtr | gssapi>=1.9.0; |
| xtr | furo; |
| xtr | Sphinx>=4.0.0; |
| xtr | sphinx-automodapi; |
| xtr | sphinx-copybutton; |
| xtr | sphinx-design>=0.6.1; |
| xtr | sphinx-github-style; |
| xtr | pytest>=3.9.1; |
| xtr | pytest-cov; |
| xtr | requests-mock; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl igwn-auth-utils-1.4.0:
pip install igwn-auth-utils-1.4.0.whl
نصب پکیج tar.gz igwn-auth-utils-1.4.0:
pip install igwn-auth-utils-1.4.0.tar.gz