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"

Changelog

See Changelog

License

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.

Source Distribution

bottle-pyjwt-1.3.6.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

bottle_pyjwt-1.3.6-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