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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file bottle-pyjwt-1.3.4.post0.tar.gz.

File metadata

  • Download URL: bottle-pyjwt-1.3.4.post0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for bottle-pyjwt-1.3.4.post0.tar.gz
Algorithm Hash digest
SHA256 88ccc7e61f0bb5c821b5986e2ff1d227788729f105c7387e34087c37135da832
MD5 0755ad24aab7ae4e00e52ce5080e50fc
BLAKE2b-256 b39ecb31ccba6230bc3dbd89160782536ae30bb56bdc6972d17412735e5c857c

See more details on using hashes here.

File details

Details for the file bottle_pyjwt-1.3.4.post0-py3-none-any.whl.

File metadata

  • Download URL: bottle_pyjwt-1.3.4.post0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for bottle_pyjwt-1.3.4.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 63bd072fb69ac79cc3869633d91cb1bf3e023575c60063d10a658059db669461
MD5 af70049e330bc8b1a4eb9a867c5a07dc
BLAKE2b-256 b4e3a8fc2e82001e0c22e97e574a9602917270ecd77abd81fff17247bec2e3d7

See more details on using hashes here.

Supported by

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