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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file requests_oidc-0.6.2.tar.gz.

File metadata

  • Download URL: requests_oidc-0.6.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.2.6-76060206-generic

File hashes

Hashes for requests_oidc-0.6.2.tar.gz
Algorithm Hash digest
SHA256 84ea777457067f8f67fe25534b9c153f3f9a45336c83e073a93ce735a86406ca
MD5 34f763107bb519e38ac07d28046d692c
BLAKE2b-256 aec55513f65d7b51ad824fcb19f04e4f3acc72b126c19d95115a27a32eb38db7

See more details on using hashes here.

File details

Details for the file requests_oidc-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: requests_oidc-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.2.6-76060206-generic

File hashes

Hashes for requests_oidc-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 227fbcc561d0acb54469d62a7d4bde055a8eeee7968cdb98fa732e0d2313d814
MD5 2f78d4e466a64fda27e6f2658c968d8f
BLAKE2b-256 1a8d476afe3e170b32531705f5b6b1fa00684fb45a504454eecd3ad0a9f5e393

See more details on using hashes here.

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