Authenticate requests by shelling-out to restish for an OIDC flow
Project description
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.
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
Close
Hashes for requests-restish-auth-0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f1007a1d75a4edc5ef624f330a5f9989c801d186110742bed521ffd2120612b |
|
MD5 | e9f853be1102e1919607bfefcb0795b6 |
|
BLAKE2b-256 | 693eedaa02e23092a637269d44705ae7126cfcdfdfcc04bcd899fe968388c865 |
Close
Hashes for requests_restish_auth-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81be2e3fe5525e920b1b29298b53dda0b5fca436c4a6cedd366fa3992c0ee65a |
|
MD5 | d15ff5f82ec6bf25a5892cfbbdb551df |
|
BLAKE2b-256 | 69b654d25fdfc46122d7b4a47a50eeaeaa5ead881a0cb7546ab99287ca04167c |