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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec58043c3bd265ad7aad748d3427e8406c77d92bc58582e10603d2c7a3e0fa94 |
|
MD5 | 38990a45c8e95079227a7f315c2fbe89 |
|
BLAKE2b-256 | d4fab697202a14d2ba71870adf17978d60946620f4e580f565aa561dec22e531 |
Close
Hashes for requests_restish_auth-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71a9e83143b3f690e8183d3ce4051a405a2050da35ed7ebb5e3627852bc7fc37 |
|
MD5 | bb935c021e15c26155d80d45e222213a |
|
BLAKE2b-256 | 7a6ddf40d5d96e41aac3323f9f44b982e7dbc12ba5b0909e116cc6d2e878ad3c |