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
Metadata
Release files for bottle-pyjwt 1.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bottle-pyjwt-1.3.7.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bottle_pyjwt-1.3.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / bottle-pyjwt-1.3.7.tar.gz
| Download URL | bottle-pyjwt-1.3.7.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a79a71248487da7ca58b41076c76897a460704e9e30686fbec049246196d3c6c
|
|
BLAKE2b-256 checksum How to use checksums |
20e1a675c0c37712699ee8567f4548739d15d2ee07e4e4185b6e2de7e6aef8dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / bottle_pyjwt-1.3.7-py3-none-any.whl
| Download URL | bottle_pyjwt-1.3.7-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1498513c71be23ef91ed932e7cb93bf79d83ea5c64fc8c92359bc144f4000d6b
|
|
BLAKE2b-256 checksum How to use checksums |
7de2314d6d3328cf83fc7544867a5dae2f6b7c59a9560425cd34bb598f2c64e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|