Skip to main content

A pure-Python OpenID Connect client

Project description

OIDC Client

A pure-Python OpenID Connect client supporting OAuth 2.1 authorization flows, built for Python 3.10+ with minimal dependencies.

OAuth 2.1 authorization flows include:

  • the authorization code flow, for interactive user login;
  • the client credentials flow, for confidential machine-to-machine communication.

This OIDC Client supports reading configuration profiles from a pyproject.toml file.

Requirements

Python 3.10+

Installation

pip install oidc-client

Configuration

To enable interactive login for your project, add the following to your pyproject.toml:

[tool.oidc]
issuer = "https://example.com"  # URL of your OIDC provider
client_id = "<application ID>"  # Application ID given by your OIDC provider

Examples

# To log-in as a user, using a web browser:
oidc login --interactive

License

This project is licensed under the terms of the MIT license.

A YZR Free and Open Source project.

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

oidc_client-0.2.6.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

oidc_client-0.2.6-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file oidc_client-0.2.6.tar.gz.

File metadata

  • Download URL: oidc_client-0.2.6.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.4.109+

File hashes

Hashes for oidc_client-0.2.6.tar.gz
Algorithm Hash digest
SHA256 326d6359d053b4d1f0c40c649ce90e85d6b0dc505665c64d57c811a914de71eb
MD5 47389060097598f4c45c6b1ae43291e5
BLAKE2b-256 7f7459af8c79282765997d172b47f3ee19cb34131aff1e76186d6853178667a0

See more details on using hashes here.

File details

Details for the file oidc_client-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: oidc_client-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.4.109+

File hashes

Hashes for oidc_client-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 73975b5663a38c6fa4e13b2db7d4f48d8d86470f314a57322ff2078a3466b472
MD5 4d5cdf7dfa56711027beba8ac6de1695
BLAKE2b-256 9a481be0ba1ea343203249b30903b0a618bf579a63d2f7a49a83ba1f9e3090d0

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