├── .flake8 ├── .github └── workflows │ ├── ci.yaml │ ├── docs.yaml │ └── publish.yaml ├── .gitignore ├── .pre-commit-config.yaml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docs ├── index.md ├── reference │ ├── 0-config.md │ ├── 1-user-service.md │ ├── 2-route-handler-configs.md │ └── 3-model-mixins.md └── usage │ ├── 0-configuration.md │ ├── 1-database-models.md │ ├── 2-data-transfer-objects.md │ ├── 3-the-user-service.md │ ├── 4-route-handler-configs.md │ ├── 5-role-based-guards.md │ └── 6-command-line-interface.md ├── examples ├── __init__.py ├── basic.py ├── with_oauth2.py └── with_roles.py ├── litestar_users ├── __init__.py ├── adapter │ ├── __init__.py │ └── sqlalchemy │ │ ├── __init__.py │ │ ├── mixins.py │ │ ├── protocols.py │ │ └── repository.py ├── cli.py ├── config.py ├── dependencies.py ├── dtos.py ├── exceptions.py ├── guards.py ├── jwt.py ├── main.py ├── password.py ├── protocols.py ├── py.typed ├── route_handlers.py ├── schema.py ├── service.py ├── user_handlers.py └── utils.py ├── mkdocs.yml ├── mypy.ini ├── pyproject.toml ├── tests ├── __init__.py ├── conftest.py ├── constants.py ├── docker-compose.yml ├── docker_service_fixtures.py ├── integration │ ├── conftest.py │ ├── test_authentication.py │ ├── test_oauth │ │ ├── conftest.py │ │ └── test_oauth.py │ ├── test_password_reset.py │ ├── test_registration.py │ ├── test_roles │ │ ├── conftest.py │ │ └── test_roles.py │ ├── test_user_management.py │ └── test_verification.py └── utils.py └── uv.lock /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/.flake8 -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/docs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/.github/workflows/docs.yaml -------------------------------------------------------------------------------- /.github/workflows/publish.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/.github/workflows/publish.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/README.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/reference/0-config.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/reference/0-config.md -------------------------------------------------------------------------------- /docs/reference/1-user-service.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/reference/1-user-service.md -------------------------------------------------------------------------------- /docs/reference/2-route-handler-configs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/reference/2-route-handler-configs.md -------------------------------------------------------------------------------- /docs/reference/3-model-mixins.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/reference/3-model-mixins.md -------------------------------------------------------------------------------- /docs/usage/0-configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/usage/0-configuration.md -------------------------------------------------------------------------------- /docs/usage/1-database-models.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/usage/1-database-models.md -------------------------------------------------------------------------------- /docs/usage/2-data-transfer-objects.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/usage/2-data-transfer-objects.md -------------------------------------------------------------------------------- /docs/usage/3-the-user-service.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/usage/3-the-user-service.md -------------------------------------------------------------------------------- /docs/usage/4-route-handler-configs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/usage/4-route-handler-configs.md -------------------------------------------------------------------------------- /docs/usage/5-role-based-guards.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/usage/5-role-based-guards.md -------------------------------------------------------------------------------- /docs/usage/6-command-line-interface.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/docs/usage/6-command-line-interface.md -------------------------------------------------------------------------------- /examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/basic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/examples/basic.py -------------------------------------------------------------------------------- /examples/with_oauth2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/examples/with_oauth2.py -------------------------------------------------------------------------------- /examples/with_roles.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/examples/with_roles.py -------------------------------------------------------------------------------- /litestar_users/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/__init__.py -------------------------------------------------------------------------------- /litestar_users/adapter/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /litestar_users/adapter/sqlalchemy/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /litestar_users/adapter/sqlalchemy/mixins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/adapter/sqlalchemy/mixins.py -------------------------------------------------------------------------------- /litestar_users/adapter/sqlalchemy/protocols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/adapter/sqlalchemy/protocols.py -------------------------------------------------------------------------------- /litestar_users/adapter/sqlalchemy/repository.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/adapter/sqlalchemy/repository.py -------------------------------------------------------------------------------- /litestar_users/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/cli.py -------------------------------------------------------------------------------- /litestar_users/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/config.py -------------------------------------------------------------------------------- /litestar_users/dependencies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/dependencies.py -------------------------------------------------------------------------------- /litestar_users/dtos.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/dtos.py -------------------------------------------------------------------------------- /litestar_users/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/exceptions.py -------------------------------------------------------------------------------- /litestar_users/guards.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/guards.py -------------------------------------------------------------------------------- /litestar_users/jwt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/jwt.py -------------------------------------------------------------------------------- /litestar_users/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/main.py -------------------------------------------------------------------------------- /litestar_users/password.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/password.py -------------------------------------------------------------------------------- /litestar_users/protocols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/protocols.py -------------------------------------------------------------------------------- /litestar_users/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /litestar_users/route_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/route_handlers.py -------------------------------------------------------------------------------- /litestar_users/schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/schema.py -------------------------------------------------------------------------------- /litestar_users/service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/service.py -------------------------------------------------------------------------------- /litestar_users/user_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/user_handlers.py -------------------------------------------------------------------------------- /litestar_users/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/litestar_users/utils.py -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /mypy.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/mypy.ini -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/constants.py: -------------------------------------------------------------------------------- 1 | ENCODING_SECRET = "1234567890abcdef" 2 | HASH_SCHEMES = ["argon2"] 3 | -------------------------------------------------------------------------------- /tests/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/docker-compose.yml -------------------------------------------------------------------------------- /tests/docker_service_fixtures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/docker_service_fixtures.py -------------------------------------------------------------------------------- /tests/integration/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/conftest.py -------------------------------------------------------------------------------- /tests/integration/test_authentication.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_authentication.py -------------------------------------------------------------------------------- /tests/integration/test_oauth/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_oauth/conftest.py -------------------------------------------------------------------------------- /tests/integration/test_oauth/test_oauth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_oauth/test_oauth.py -------------------------------------------------------------------------------- /tests/integration/test_password_reset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_password_reset.py -------------------------------------------------------------------------------- /tests/integration/test_registration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_registration.py -------------------------------------------------------------------------------- /tests/integration/test_roles/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_roles/conftest.py -------------------------------------------------------------------------------- /tests/integration/test_roles/test_roles.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_roles/test_roles.py -------------------------------------------------------------------------------- /tests/integration/test_user_management.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_user_management.py -------------------------------------------------------------------------------- /tests/integration/test_verification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/integration/test_verification.py -------------------------------------------------------------------------------- /tests/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/tests/utils.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvbosch/litestar-users/HEAD/uv.lock --------------------------------------------------------------------------------