Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kernia_oauth_provider-0.1.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kernia_oauth_provider-0.1.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

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

Hashes for kernia_oauth_provider-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e2aef24041230c892b6eeb0e69dbf3b248604c2c4dc8c7f4b0b40dd5bab24bca
MD5 ffcb4bac1532df417f26fbc8c414f1a4
BLAKE2b-256 967b4b6cc6fb7ec59975ad0880582d6e4aff335db04d174e0464b3eb94585fce

See more details on using hashes here.

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

Hashes for kernia_oauth_provider-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c39c6e0b62351683c9f13cc278a4ad0e66a5b424cd5398933508c193833baea6
MD5 18f4f0db3bf191017a96c7fc00b60121
BLAKE2b-256 aa6452fe9da75e567dd42fbfdc7a2066ee5e360af734f1313affb2949ce94f90

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page