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.0.tar.gz
(4.5 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.0.tar.gz.
File metadata
- Download URL: pyauthtools-0.2.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc64ec3d3833e4fe102c4bac849316c24c1f2569243e1ccb847effc5c55b837f
|
|
| MD5 |
d94006cba467682425d969cb6ec612c5
|
|
| BLAKE2b-256 |
2884ead40f972239d264ddd1072a694bf3ae467b94ffbdc6fd8cfcd0fe42cf10
|
File details
Details for the file pyauthtools-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyauthtools-0.2.0-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 |
62f1e8788c93d69f9d60e38b3d7dc29c8aaff9b4c358eba5c580292ce5f74142
|
|
| MD5 |
3e2b47805e68e01a8d195b6593145284
|
|
| BLAKE2b-256 |
830023aab9b8059f268e4b176e498a3416091342b22116e2dbaad0579781bce8
|