Requests Restish Auth
This package lets you shell-out to restish for negotiating a bearer token with an OIDC provider, and use that token for authenticating requests.
Installation
pip install requests-restish-auth
Usage
import requests
from restish_auth import RestishAuth
auth = RestishAuth("my-restish-api-name")
response = requests.get("https://my-api-endpoint.com/", auth=auth)
Changelog
0.3 (2023-09-05): Compatibility with Restish 0.18’s new config location. For older versions of restish, use previous versions of requests-restish-auth.
0.2 (2022-09-16): Load token lazily.
0.1 (2022-09-14): Initial version.
Release files for requests-restish-auth 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| requests-restish-auth-0.3.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| requests_restish_auth-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / requests-restish-auth-0.3.tar.gz
| Download URL | requests-restish-auth-0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f1007a1d75a4edc5ef624f330a5f9989c801d186110742bed521ffd2120612b
|
|
BLAKE2b-256 checksum How to use checksums |
693eedaa02e23092a637269d44705ae7126cfcdfdfcc04bcd899fe968388c865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / requests_restish_auth-0.3-py3-none-any.whl
| Download URL | requests_restish_auth-0.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81be2e3fe5525e920b1b29298b53dda0b5fca436c4a6cedd366fa3992c0ee65a
|
|
BLAKE2b-256 checksum How to use checksums |
69b654d25fdfc46122d7b4a47a50eeaeaa5ead881a0cb7546ab99287ca04167c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|