OAuth2/OIDC provider (issuer side) plugin
Project description
kernia-oauth-provider
OAuth 2.0 and OpenID Connect provider (issuer side) plugin for Kernia. Registers clients, authorizes users, and exchanges authorization codes for access, refresh, and id tokens.
Part of Kernia, a framework-agnostic authentication library for Python.
Installation
pip install kernia-oauth-provider
Usage
from kernia.auth import init
from kernia.plugins import email_and_password
from kernia.types.init_options import KerniaOptions
from kernia_memory_adapter import memory_adapter
from kernia_oauth_provider import OAuthProviderOptions, oauth_provider
auth = init(
KerniaOptions(
database=memory_adapter(),
secret="dev-secret",
plugins=[
email_and_password(),
oauth_provider(OAuthProviderOptions(issuer="https://auth.example.com")),
],
)
)
Access tokens default to self-contained EdDSA JWTs; set jwt_access_token=False for opaque reference tokens.
Documentation
Full documentation at kernia.dev/docs. Source at github.com/advantch/kernia.
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kernia_oauth_provider-0.1.0.tar.gz.
File metadata
- Download URL: kernia_oauth_provider-0.1.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2aef24041230c892b6eeb0e69dbf3b248604c2c4dc8c7f4b0b40dd5bab24bca
|
|
| MD5 |
ffcb4bac1532df417f26fbc8c414f1a4
|
|
| BLAKE2b-256 |
967b4b6cc6fb7ec59975ad0880582d6e4aff335db04d174e0464b3eb94585fce
|
File details
Details for the file kernia_oauth_provider-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kernia_oauth_provider-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c39c6e0b62351683c9f13cc278a4ad0e66a5b424cd5398933508c193833baea6
|
|
| MD5 |
18f4f0db3bf191017a96c7fc00b60121
|
|
| BLAKE2b-256 |
aa6452fe9da75e567dd42fbfdc7a2066ee5e360af734f1313affb2949ce94f90
|