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.1.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for requests_oidc-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039f4505f0e8a785850535557ba28c8464a8ff49b95d3d0dc6086385c940cb5c |
|
MD5 | 8f4e841dfc752ccb993849c2b4e4f330 |
|
BLAKE2b-256 | 519379ab0709515d679d2a6343b7e0ee40bd01b8d8dd03b4ea2478c2071161b7 |