Skip to main content

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.

Source Distribution

bottle-pyjwt-1.3.4.post0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

bottle_pyjwt-1.3.4.post0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page