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.6.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.6.tar.gz.
File metadata
- Download URL: pyauthtools-0.1.6.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 |
88120255c143d198344299e1feb60f9cebd298a2e829354253168c5d13ee889f
|
|
| MD5 |
1dc70803a8fd3ed59e05c5ad30d77b30
|
|
| BLAKE2b-256 |
c21f033da7da0221c19f817102f51d0e5c0dcd55fdeeb5c2fd91590474839ac3
|
File details
Details for the file pyauthtools-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.1.6-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 |
3484f72780e142c4fe7a46d50e86b314f92294acce04aea7d775f40c9e68caec
|
|
| MD5 |
4841de23377a270280f2c4e160e1596f
|
|
| BLAKE2b-256 |
5a1ccaf71593adfea2ad42f8d50180fa0df4592561077efc7b68b55c0a47a3a5
|