Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bottle-pyjwt, version 1.3.4.post0
Filename, size File type Python version Upload date Hashes
Filename, size bottle_pyjwt-1.3.4.post0-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size bottle-pyjwt-1.3.4.post0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page