Skip to main content

Requests-OIDC

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

Metadata

Release files for requests-oidc 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requests-oidc 0.6.2
File Size Uploaded Provenance Actions
requests_oidc-0.6.2.tar.gz 8.9 kB Without provenance Details for requests_oidc-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for requests-oidc 0.6.2
File Interpreter ABI Platform Actions
requests_oidc-0.6.2-py3-none-any.whl Python 3 none any Details for requests_oidc-0.6.2-py3-none-any.whl

Total release size: 21.6 kB

Release files / requests_oidc-0.6.2.tar.gz

Download URL requests_oidc-0.6.2.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
84ea777457067f8f67fe25534b9c153f3f9a45336c83e073a93ce735a86406ca
BLAKE2b-256 checksum
How to use checksums
aec55513f65d7b51ad824fcb19f04e4f3acc72b126c19d95115a27a32eb38db7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Linux/6.2.6-76060206-generic

Release files / requests_oidc-0.6.2-py3-none-any.whl

Download URL requests_oidc-0.6.2-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
227fbcc561d0acb54469d62a7d4bde055a8eeee7968cdb98fa732e0d2313d814
BLAKE2b-256 checksum
How to use checksums
1a8d476afe3e170b32531705f5b6b1fa00684fb45a504454eecd3ad0a9f5e393
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Linux/6.2.6-76060206-generic

Security for requests-oidc 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page