Skip to main content

Keg-Auth

nox codecov

Flask extension in the Keg ecosystem to wrap authentication and authorization functionality. Keg-Auth provides helpers for auth model, view/authorization setup, protected navigation menus, and more.

Installation

  • Bare functionality: pip install keg-auth
  • With mail (i.e. with a mail manager configured): pip install keg-auth[mail]
  • JWT (for using JWT tokens as authenticators): pip install keg-auth[jwt]
  • LDAP (for using LDAP target for authentication): pip install keg-auth[ldap]
  • OAuth (e.g. Google Auth): pip install keg-auth[oauth]
  • Internationalization extensions: pip install keg-auth[i18n]

A Simple Example

For a simple example and a checklist of sorts for app setup, see the Getting Started guide in the docs.

Demo

Typical usage is demonstrated in keg-app-cookiecutter.

Dev

Copier Template

Project structure and tooling mostly derives from Coppy. See its documentation for context and additional instructions.

This project can be updated from the upstream repo, see Updating a Project.

Project Setup

From zero to hero (passing tests that is):

  1. Ensure host dependencies are installed

  2. Start docker service dependencies (if applicable):

    docker compose up -d

  3. Sync project virtualenv w/ lock file:

    uv sync

  4. Configure prek:

    prek install

  5. Run tests:

    nox

Copy keg_auth_ta-config-example.py to keg_auth_ta-config.py and update as needed. Override database addr &/or port with environment vars or docker compose override if needed.

The test application can be run with python -m keg_auth_ta.app.

Versions

A version task shows and bumps versions:

  # Show current version
  mise run version show

  # Bump version, tag, and push:
  mise run version bump

  # See other options
  mise run version -- --help

Metadata

Release files for keg-auth 0.20261118.1

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

Source distribution (sdist)

Source distribution for keg-auth 0.20261118.1
File Size Uploaded Provenance Actions
keg_auth-0.20261118.1.tar.gz 254.2 kB With provenance Details for keg_auth-0.20261118.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for keg-auth 0.20261118.1
File Interpreter ABI Platform Actions
keg_auth-0.20261118.1-py3-none-any.whl Python 3 none any Details for keg_auth-0.20261118.1-py3-none-any.whl

Total release size: 345.0 kB

Release files / keg_auth-0.20261118.1.tar.gz

Download URL keg_auth-0.20261118.1.tar.gz
Size 254.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5a262fbdb89c9a0ad5b60a43caa311ab47944385e0ae2303dfbc8908b7784ca9
BLAKE2b-256 checksum
How to use checksums
6b1152afc0e6601d0ea648f9829a23978c2e2ea31edff0cace96cd3d93cd81d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / keg_auth-0.20261118.1-py3-none-any.whl

Download URL keg_auth-0.20261118.1-py3-none-any.whl
Size 90.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92b037e25fe191d2c5c9f3a6c4d52379860fd42a8537a70cd750e917cd9916d7
BLAKE2b-256 checksum
How to use checksums
18578c084b95d2f2f1dabda1d881d8c561011a46261a360a8e13f4bd848e554b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for keg-auth 0.20261118.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for keg_auth-0.20261118.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release
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