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
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.7.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bottle-pyjwt-1.3.7.tar.gz.
File metadata
- Download URL: bottle-pyjwt-1.3.7.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a79a71248487da7ca58b41076c76897a460704e9e30686fbec049246196d3c6c
|
|
| MD5 |
7d6a5fca2194acbd8d28ab0f612f4a4c
|
|
| BLAKE2b-256 |
20e1a675c0c37712699ee8567f4548739d15d2ee07e4e4185b6e2de7e6aef8dd
|
File details
Details for the file bottle_pyjwt-1.3.7-py3-none-any.whl.
File metadata
- Download URL: bottle_pyjwt-1.3.7-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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1498513c71be23ef91ed932e7cb93bf79d83ea5c64fc8c92359bc144f4000d6b
|
|
| MD5 |
0a89b1793fe07b2e0f77d4d3c0d7d25c
|
|
| BLAKE2b-256 |
7de2314d6d3328cf83fc7544867a5dae2f6b7c59a9560425cd34bb598f2c64e3
|