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.5.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.5.tar.gz.
File metadata
- Download URL: pyauthtools-0.2.5.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 |
615e956da8a45ee17914dc389466b659cd0156749d446054c03866702a67e4c7
|
|
| MD5 |
0021781955f513de311ad2fc1595d177
|
|
| BLAKE2b-256 |
baed65505f3a45f1a51f7ad340b080620ee7210519cc8daaa49592eeac11421d
|
File details
Details for the file pyauthtools-0.2.5-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.2.5-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 |
54f77528a4e4e37b6fa6b263f89ea9d4e661cf4fdecbb516c14877c37b592b16
|
|
| MD5 |
b01f602820256061317ad4eddba07699
|
|
| BLAKE2b-256 |
4403533dc0b541f1634980ed35e1af69b46abb1600b24c3142a05d110e7c4cc3
|