Skip to main content

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"


See Changelog


See Licencia

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.7
Filename, size File type Python version Upload date Hashes
Filename, size bottle_pyjwt-1.3.7-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bottle-pyjwt-1.3.7.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page