Skip to main content

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

PyPI GitHub PyPI - Status PyPI - Format PyPI - Python Version PyPI - Implementation PyPI - Downloads

build

GitHub branch checks state Read the Docs Coverage

Git

GitHub last commit GitHub commit activity GitHub commits since latest release (by SemVer) GitHub issues GitHub pull requests

Project details


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)

Uploaded Source

Built Distribution

requests_oidc-0.6.2-py3-none-any.whl (12.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page