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
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
oidc_client-0.2.6.tar.gz
(12.0 kB
view hashes)
Built Distribution
Close
Hashes for oidc_client-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73975b5663a38c6fa4e13b2db7d4f48d8d86470f314a57322ff2078a3466b472 |
|
MD5 | 4d5cdf7dfa56711027beba8ac6de1695 |
|
BLAKE2b-256 | 9a481be0ba1ea343203249b30903b0a618bf579a63d2f7a49a83ba1f9e3090d0 |