Skip to main content

kobil-auth

KOBIL OIDC (OpenID Connect) authentication helper for Python.

pip install kobil-auth
from kobil.auth import AuthClient

auth = AuthClient(
    authorization_endpoint="https://idp.../auth",
    token_endpoint="https://idp.../token",
    client_id="...",
    client_secret="...",
    scope="openid profile email",
)

url = auth.build_authorization_url("https://app.example.com/callback")
tokens = auth.exchange_code_for_token(code, "https://app.example.com/callback")

Failures raise kobil.auth.KobilAuthError (subclass of kobil.core.KobilError).

License

MIT

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

kobil_auth-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file kobil_auth-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: kobil_auth-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for kobil_auth-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e8fa71a4db64fc3377716a97a5030ba9e558f84391a1695175c4381505f1b63
MD5 3777f917cdc2c01f6f071e278b9ffdac
BLAKE2b-256 2e56fc91b97929324d0c890a3fed6902d27b9049f7b888acd65865cf96bfea00

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

Supported by

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