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.4.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.4.tar.gz.
File metadata
- Download URL: pyauthtools-0.2.4.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 |
1f79a2e82dc25da4c56ce4e0ec114b4c35b362735b37fb29765e6392ea132608
|
|
| MD5 |
57f9c89e9235b4ccaea5f4469066ee01
|
|
| BLAKE2b-256 |
3eae32541594d65f37a5b0895287510b0048f46c5dd7b18b7977ec6caf18fda3
|
File details
Details for the file pyauthtools-0.2.4-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.2.4-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 |
42dfe548bf29f71904a1f5549503f09c2a560e9a1d04fd8d8307f2f5576b81f5
|
|
| MD5 |
214e128fe81ee7ea4cd23b299bbc72c2
|
|
| BLAKE2b-256 |
17f0529b3aedc02af330b6fd2b187daf0cff953cdfcc67db1dae49e613b4ea08
|