Skip to main content

Authorize user via jwt

Project description


A Python implementation of acquiring, authorizing user from jwt token. designed to work for any request entity from flask,django,tornado frameworks.


Install with pip:

$ pip install jwt_user


>>> import jwt_user
>>> payload = {'username': 'test'}
>>> token = jwt_user.generate_token(payload)
>>> request = jwt_user.generate_request(token)
>>> user = jwt_user.get_jwt_user(request)
>>> user
>>> user.username


View the full docs online at


You can run tests from the project root after cloning with:

$ make smoke

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 jwt-user, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size jwt_user-0.0.2-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jwt_user-0.0.2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page