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.7.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.7.tar.gz.
File metadata
- Download URL: pyauthtools-0.2.7.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 |
f474b272b24c9e9243e2e648fce4b6e14465360cfd834b21033bec85bfe6caa8
|
|
| MD5 |
f359d61076b5c9de0b6f5374ff9ee5bd
|
|
| BLAKE2b-256 |
af9dc22d7adef4930b56b7033e773ee997b1089ac2dd1c8923f3695183323684
|
File details
Details for the file pyauthtools-0.2.7-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.2.7-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 |
a094dc9496a2136f48a3ff00b49c84ba5ad4b07eb72fc97df5d12e1bb7d76f29
|
|
| MD5 |
d5f298b602eed008c64ed35535fd06e8
|
|
| BLAKE2b-256 |
b77ed2b27f8c9bc2b62174fe701de3f16f1fab07ce297d09c3288d4b51ba1d03
|