No project description provided
Project description
Implements a simple API for creating a requests Session that manages your OIDC-discovered OAuth2 session for you.
pip install requests-oidc
from requests_oidc import make_auth_code_session
from requests_oidc.plugins import OSCachedPlugin
oidc_url = "https://your-oidc-provider.com/.well-known/openid-configuration"
client_id = "your-app"
port = 8675
scope = ["openid", "email", "profile"]
plugin = OSCachedPlugin("your-app", "your-company")
session = make_auth_code_session(oidc_url, client_id, port, scope, plugin=plugin)
Package |
|
build |
|
Git |
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
requests_oidc-0.6.2.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for requests_oidc-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227fbcc561d0acb54469d62a7d4bde055a8eeee7968cdb98fa732e0d2313d814 |
|
MD5 | 2f78d4e466a64fda27e6f2658c968d8f |
|
BLAKE2b-256 | 1a8d476afe3e170b32531705f5b6b1fa00684fb45a504454eecd3ad0a9f5e393 |