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.1.tar.gz
(19.1 kB
view details)
Built Distribution
File details
Details for the file fastapi_simple_auth-0.0.1.tar.gz
.
File metadata
- Download URL: fastapi_simple_auth-0.0.1.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 | be28fdb7121ec5b55f740b05470b78739ccbbb961ed9d6c89d5fbbb898fe9f06 |
|
MD5 | f4de80d779c45679457f5d3d1f121f54 |
|
BLAKE2b-256 | 14ffc1ad9e6bffcb8b5a22a98019b8c9a82eaefac0751d8c88f412658a5756c8 |
File details
Details for the file fastapi_simple_auth-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: fastapi_simple_auth-0.0.1-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 | 7fc94dc4a2a7a7396a77cfc05c3404a1e9543e57f23aa878d5279010ea7c6b3a |
|
MD5 | f89c8b366cbdb556b7cd34d5fabf8aa5 |
|
BLAKE2b-256 | a410070ce7378f9346878e7d662648d6ff58dd35b7fd11bb4f93c4585d4c7e4c |