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
Close
Hashes for bottle_pyjwt-1.3.4.post0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63bd072fb69ac79cc3869633d91cb1bf3e023575c60063d10a658059db669461 |
|
MD5 | af70049e330bc8b1a4eb9a867c5a07dc |
|
BLAKE2b-256 | b4e3a8fc2e82001e0c22e97e574a9602917270ecd77abd81fff17247bec2e3d7 |