Skip to main content

Litestar Auth

Project description

litestar-auth

Authentication and authorization for Litestar applications: registration, login, email verification, password reset, OAuth2, TOTP (2FA), route guards, and optional rate limiting—wired as a Litestar plugin with transport + strategy backends.


Test Passing Coverage Downloads Package version Supported Python versions License Documentation


Documentation: https://zylvext.github.io/litestar-auth/

Install

uv add litestar-auth
# or: pip install litestar-auth

Optional extras: redis, oauth, totp, or all — see the installation guide.

Quickstart

Follow docs/quickstart.md for a minimal Bearer + JWT setup with the default SQLAlchemy user model.

Role management CLI

When your app uses LitestarAuth, provides session_maker, and exposes a relational role-capable SQLAlchemy user_model, the plugin also registers litestar roles for role-catalog and user-role administration. This operator surface is CLI-only: the HTTP API still exposes only the flat normalized user.roles contract and does not add role-management endpoints.

See docs/guides/roles_cli.md for prerequisites, command examples, and custom-model compatibility notes.

Repository

Contributing, local docs build, and verification commands are described in docs/contributing.md.

Project details


Download files

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

Source Distribution

litestar_auth-1.8.0.tar.gz (693.4 kB view details)

Uploaded Source

Built Distribution

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

litestar_auth-1.8.0-py3-none-any.whl (208.7 kB view details)

Uploaded Python 3

File details

Details for the file litestar_auth-1.8.0.tar.gz.

File metadata

  • Download URL: litestar_auth-1.8.0.tar.gz
  • Upload date:
  • Size: 693.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for litestar_auth-1.8.0.tar.gz
Algorithm Hash digest
SHA256 068883389eca6b7e6af28c6ed7e163f2324d23a25ae857cebfaec948153816fe
MD5 31bcfadb648a63e099826cfa92cf6abe
BLAKE2b-256 0ddea6cb43b1b0d2cd10e35719597d0572c7cb07c923baa3cd96ea590c4bce51

See more details on using hashes here.

Provenance

The following attestation bundles were made for litestar_auth-1.8.0.tar.gz:

Publisher: 3_release.yml on ZYLVEXT/litestar-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file litestar_auth-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: litestar_auth-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 208.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for litestar_auth-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aaa3cc3418ff92494af3562e2ba3f9b8861bd54ac77addb74dfdb7154c12ff94
MD5 991e147fe53926ff5674292f52427bf4
BLAKE2b-256 6ef8aaa5b7773965f8eaaf2674fbcd3457c59435044c64638f29b95808f62e40

See more details on using hashes here.

Provenance

The following attestation bundles were made for litestar_auth-1.8.0-py3-none-any.whl:

Publisher: 3_release.yml on ZYLVEXT/litestar-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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