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.3.tar.gz
(4.4 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.3.tar.gz.
File metadata
- Download URL: pyauthtools-0.1.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1923b9f2466b61bb205de95992fa75f8ec36f77154d138d0aadd5ef9b8d45a0b
|
|
| MD5 |
bae01c0be6b6a215d445459b38d3e95d
|
|
| BLAKE2b-256 |
eccd5162da243a8b507251052c1e449419fd18ffb06336ac4d83417f31104981
|
File details
Details for the file pyauthtools-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.8 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 |
8cd285bd8acd76d5ff5e6366ff0e22be9c48ff8bacb310278b0a5d5c246ff8f2
|
|
| MD5 |
f0868358b78195b67d100b59c6292fff
|
|
| BLAKE2b-256 |
a4563466084558290f162506ebdad5baeb05935f15aa1cf9dbc188d9962484e6
|