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.2.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.2.tar.gz.
File metadata
- Download URL: pyauthtools-0.2.2.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 |
33bde8c76cf53e9e5505611c7f2c7fadfc7b2c5a90f8aa6e770ab88128740893
|
|
| MD5 |
82580a5d6bbd59d78d234230503dcf97
|
|
| BLAKE2b-256 |
d6e2f0ebea4e44123e968853e18a22730b95b141408bf9fa915de3bd2fcfb505
|
File details
Details for the file pyauthtools-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.2.2-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 |
f3aa63aa13d8af82eaad0b0885aad69d533482a76cd53a383c632661698fc7fa
|
|
| MD5 |
4b17c156ce7de50e9799447944ae9a8c
|
|
| BLAKE2b-256 |
cf43287b7fc2f055359d717e68225ebee81bdf85fd3ec47c0754ecb5ed2cdfcb
|