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.8.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.8.tar.gz.
File metadata
- Download URL: pyauthtools-0.2.8.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 |
47aec20ab22beef8648ee153a2a5f31cc7f52e7689150dbce1ea464079de6edb
|
|
| MD5 |
cf92505ca20a992c910d79f728eadaa1
|
|
| BLAKE2b-256 |
f9070bf851078021dff6014c709c57aed6cc1fd2c7bd851c66ff7add509cdf82
|
File details
Details for the file pyauthtools-0.2.8-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.2.8-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 |
5fdcb0c61311a521e0329cdb9d89a05a43e853e14da3607bcb97a1de3249468d
|
|
| MD5 |
88bb82e4fdcdc4d9c139c0dd8bdc411b
|
|
| BLAKE2b-256 |
0be6b4a96d5750700aa87e30fd342796c433cba7fe9b04d467d6319e19e932c0
|