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.9.0.tar.gz (730.6 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.9.0-py3-none-any.whl (213.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: litestar_auth-1.9.0.tar.gz
  • Upload date:
  • Size: 730.6 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.9.0.tar.gz
Algorithm Hash digest
SHA256 6a2734bd7394653aaa9901e3d5c9fb9f80b071fa0dc342d2f3952de5224b84e0
MD5 878a20b886375546b4de94080ea660c6
BLAKE2b-256 bb9e510bcab1111453c3761756fcc473b6c04111d8f20438e8608783f8d4ab40

See more details on using hashes here.

Provenance

The following attestation bundles were made for litestar_auth-1.9.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.9.0-py3-none-any.whl.

File metadata

  • Download URL: litestar_auth-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 213.1 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.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4af437ff52686ae48d72ca7d54ab813f9a0663dedc370181b24f3fa2ebee6da9
MD5 cac0f2c579b29d7936620529016da30b
BLAKE2b-256 d20d2f8178574e75406cbaaf5941286972820fc33e23c4b8f3a825cf75c018a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for litestar_auth-1.9.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