El plugin de bottle-pyjwt permite usar autentificacion mediante token usando el estandar java jwt
Project description
Bottle PyJWT
This is a bottle plugin to use the JWT library
Quick Start
The bottle-pyjwt plugin allows to use token authentication using the java jwt standard
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"
Changelog
See Changelog
License
See Licencia
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
bottle-pyjwt-1.3.7.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for bottle_pyjwt-1.3.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1498513c71be23ef91ed932e7cb93bf79d83ea5c64fc8c92359bc144f4000d6b |
|
MD5 | 0a89b1793fe07b2e0f77d4d3c0d7d25c |
|
BLAKE2b-256 | 7de2314d6d3328cf83fc7544867a5dae2f6b7c59a9560425cd34bb598f2c64e3 |