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.1.7.tar.gz
(4.5 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.1.7.tar.gz.
File metadata
- Download URL: pyauthtools-0.1.7.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04259ad62749c1cbb576dd28a938f2cf58290491e8a98f8050cebf55bf058aa2
|
|
| MD5 |
5fbf1b1dab163fba29cae7af5dcbb175
|
|
| BLAKE2b-256 |
aff5d8db4f80df6e2dbd1cf674a14e6c1cd37b5222695d7d81c02286259ef6c8
|
File details
Details for the file pyauthtools-0.1.7-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.1.7-py3-none-any.whl
- Upload date:
- Size: 4.9 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 |
cbe933840ab346fc75b9c7f675a200d386df2e28782583e799d0f420baae13b9
|
|
| MD5 |
8830099d2bacdd57325de2456c3d65fa
|
|
| BLAKE2b-256 |
d0277a891f4cda071c55ff1af4b043e11a3f1e7e2cbf69cc98053686875bfe12
|