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
Release history Release notifications | RSS feed
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.2.tar.gz
(19.1 kB
view details)
Built Distribution
File details
Details for the file fastapi_simple_auth-0.0.2.tar.gz
.
File metadata
- Download URL: fastapi_simple_auth-0.0.2.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9b6e3a40df11bc4208e86f6eb7618efefa41e8fe76d0c066bf69a1079c6234 |
|
MD5 | 30d3e13d3b6a2ed83e868c41f7c7b8d9 |
|
BLAKE2b-256 | 959df3b0cea8a989ad16356daccf1b930540dc4d86504e809031b8db20e09837 |
File details
Details for the file fastapi_simple_auth-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: fastapi_simple_auth-0.0.2-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d42847d359a758f580855502b60a9b221f745e346695c3e6c30ec49bf47f9ac2 |
|
MD5 | f0e811866801676ab416db8cff6b8169 |
|
BLAKE2b-256 | 11a74bdda1a8f56af1ceb463d7351663f683541cf497894c59b6a7b3d1db8618 |