Some auth tools using in python flask.
Project description
PyAuthTools
Some auth tools using in python flask.
Surpported Algorisms
HS256
RS256
Install
pip install pyauthtools
Environments
JWT_ALG = 'HS256' # or 'RS256'
JWT_PUBLIC = b'xxx' # when RS256
JWT_SECRET = b'xxx' # pri_key or secret
Usages
@app.route('/index', methods=['POST', 'GET'])
@auth # Just above the func
def index():
return rend_template('index.html')
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
pyauthtools-0.2.6.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyauthtools-0.2.6.tar.gz.
File metadata
- Download URL: pyauthtools-0.2.6.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d36be8665dfa671a63490a2339510197c80047a13f7e269f46e2875287bb483d
|
|
| MD5 |
28547cf35ff347fa096db7ee033b4df2
|
|
| BLAKE2b-256 |
818816d0cb1e824685c68368b51a7c26c3698246f267f23fff101bf87d2f43ce
|
File details
Details for the file pyauthtools-0.2.6-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.2.6-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77d35eb616058750b00ffd940c9279728530deef2320ea2d35f2d4522711f1de
|
|
| MD5 |
330d4311eb7ede7b7987def5ea43ebbd
|
|
| BLAKE2b-256 |
7c86ef22cfc9b7e57424044a9cccb0b3cbb96cc173d0a0a727a4712272706f43
|