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.6.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for bottle_pyjwt-1.3.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e6358ddba021172db5e63662a7dd4f22603e3debcd810973196d0ae179ffc63 |
|
MD5 | 8ce1d53d3cbb4505e7fa5694413e7f2b |
|
BLAKE2b-256 | c0fa376a4ed938a8c369dca68ff2732b9d07e7019526af366ad2bfd02183102b |