Skip to main content

FastAPI simple authentication

Project description

api-auth

Install

cp .env.example .env
# now edit it
vim .env

alembic upgrade head

Usage

# register
http POST http://localhost:8000/auth/users/ username=me@example.com password=secret

# simple auth (session)
http -f POST http://localhost:8000/auth/login username=me@example.com password=secret

# get token
http -f POST http://localhost:8000/auth/token username=me@example.com password=secret

Developer cheatsheet

Alembic cheatsheet

alembic revision --autogenerate -m "some desc"
alembic upgrade head
alembic current

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

fastapi_simple_auth-0.0.3.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

fastapi_simple_auth-0.0.3-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_simple_auth-0.0.3.tar.gz.

File metadata

  • Download URL: fastapi_simple_auth-0.0.3.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for fastapi_simple_auth-0.0.3.tar.gz
Algorithm Hash digest
SHA256 64d68dc3d9a2f9d800087d41930a19c6205de80deabc9e4e40ed5e72a74a4fe2
MD5 b96f5d0ca00b1bd6d7a45f229a088f33
BLAKE2b-256 bfad5e91e5edad301e6608d65c8c1f2b7cdc3311fa5f469899d3411256203568

See more details on using hashes here.

File details

Details for the file fastapi_simple_auth-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_simple_auth-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e6b10dde3bc9c8395f5bb0ab059615a581833c10d8fc6fab28526a7a00b68cb9
MD5 59b4d09d518d6b1096d2e12f45ed0122
BLAKE2b-256 ee1a101d6b51933612ec1350cb4691f91c0572333bf5effe2a9764fc528a1f43

See more details on using hashes here.

Supported by

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