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

Metadata

Release files for kobil-auth 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kobil-auth 1.2.0
File Size Uploaded Provenance Actions
kobil_auth-1.2.0.tar.gz 2.7 kB Without provenance Details for kobil_auth-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kobil-auth 1.2.0
File Interpreter ABI Platform Actions
kobil_auth-1.2.0-py3-none-any.whl Python 3 none any Details for kobil_auth-1.2.0-py3-none-any.whl

Total release size: 5.5 kB

Release files / kobil_auth-1.2.0.tar.gz

Download URL kobil_auth-1.2.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
be534b4e5018f248b1d1fd9cd20d644f9fb47d3290a6ad23d9313324922cae7f
BLAKE2b-256 checksum
How to use checksums
ab83814919ca2b44a59ef87376436bfb5225b91b7b374f5a9c35b21e08b12d03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / kobil_auth-1.2.0-py3-none-any.whl

Download URL kobil_auth-1.2.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ec12d49019442f2634fb151262937d6b0ed758f1b42fa98c88bc2a11229de2a
BLAKE2b-256 checksum
How to use checksums
9c94abf20fdcf565c7121c9455b8874a76f859346574ab849bd483424fcc3623
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for kobil-auth 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page