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)
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c01da34eb4c73597d79d2e467f96cafc6ce3f224625e3d960b019d577abc35b |
|
MD5 | 080e4f0aefab5378fe1aaf6f1d93fbe2 |
|
BLAKE2b-256 | c3bc0a6b7d2e3ab9866aeee0914556f569722dda2ec8a1ef6647c88b99eb19c8 |
Close
Hashes for requests_restish_auth-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 780f9cc57807d04ef131f57265947d0ee6ce564a3493352e6e5067b010f1af9a |
|
MD5 | 8f8a76ba6e845873eeb8b5405c78f8b0 |
|
BLAKE2b-256 | 77bedf29e7cb38a3fde6227b35b2c45a0496b003a766a55f601f45662ef07056 |