El plugin de bottle-pyjwt permite usar autentificacion mediante token usando el estandar java jwt
Project description
Bottle PyJWT
Este es un plugin de bottle para poder usar la libreria de JWT
Inicio rapido
El plugin de bottle-pyjwt permite usar autentificacion mediante token usando el estandar java jwt
from bottle import route, install
from bottle.ext.jwt import JwtPlugin
validate = lambda auth, auth_role: auth == auth_role
app.install(JwtPlugin(validate, "my secret", fail_redirect="/login"))
@route("/", auth="any values and types")
def example():
return "OK"
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
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 bottle-pyjwt-1.3.4.post0.tar.gz.
File metadata
- Download URL: bottle-pyjwt-1.3.4.post0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88ccc7e61f0bb5c821b5986e2ff1d227788729f105c7387e34087c37135da832
|
|
| MD5 |
0755ad24aab7ae4e00e52ce5080e50fc
|
|
| BLAKE2b-256 |
b39ecb31ccba6230bc3dbd89160782536ae30bb56bdc6972d17412735e5c857c
|
File details
Details for the file bottle_pyjwt-1.3.4.post0-py3-none-any.whl.
File metadata
- Download URL: bottle_pyjwt-1.3.4.post0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63bd072fb69ac79cc3869633d91cb1bf3e023575c60063d10a658059db669461
|
|
| MD5 |
af70049e330bc8b1a4eb9a867c5a07dc
|
|
| BLAKE2b-256 |
b4e3a8fc2e82001e0c22e97e574a9602917270ecd77abd81fff17247bec2e3d7
|