Skip to main content

Extended JWT integration with Flask

Project description

Flask-JWT-Extended

Features

Flask-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Flask for protecting routes, but also many helpful (and optional) features built in to make working with JSON Web Tokens easier. These include:

  • Adding custom claims to JSON Web Tokens
  • Automatic user loading (current_user).
  • Custom claims validation on received tokens
  • Refresh tokens
  • First class support for fresh tokens for making sensitive changes.
  • Token revoking/blocklisting
  • Storing tokens in cookies and CSRF protection

Usage

View the documentation online

Upgrading from 3.x.x to 4.0.0

View the changes

Changelog

You can view the changelog here. This project follows semantic versioning.

Chatting

Come chat with the community or ask questions at https://discord.gg/EJBsbFd

Contributing

Before making any changes, make sure to install the development requirements and setup the git hooks which will automatically lint and format your changes.

pip install -r requirements.txt
pre-commit install

We require 100% code coverage in our unit tests. You can run the tests locally with tox which insures that all tests pass, tests provide complete code coverage, documentation builds, and style guide are adhered to

tox

A subset of checks can also be ran by adding an argument to tox. The available arguments are:

  • py36, py37, py38, py39, pypy3
    • Run unit tests on the given python version
  • coverage
    • Run a code coverage check
  • docs
    • Insure documentation builds and there are no broken links
  • style
    • Insure style guide is adhered to
tox -e py38

We also require features to be well documented. You can generate a local copy of the documentation by going to the docs directory and running:

make clean && make html && open _build/html/index.html

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-JWT-Extended-4.3.0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

Flask_JWT_Extended-4.3.0-py2.py3-none-any.whl (20.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Flask-JWT-Extended-4.3.0.tar.gz.

File metadata

  • Download URL: Flask-JWT-Extended-4.3.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for Flask-JWT-Extended-4.3.0.tar.gz
Algorithm Hash digest
SHA256 6e2b40d548b9dfc6051740c4552c097ac38e514e500c16c682d9a533d17ca418
MD5 9b270b08921c2121d0f4cb9d2639169d
BLAKE2b-256 72e7ca75cc6f99dedd18a0e2c2e81eb359780266e3bd77ed56cf231ad2e68b9b

See more details on using hashes here.

Provenance

File details

Details for the file Flask_JWT_Extended-4.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: Flask_JWT_Extended-4.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for Flask_JWT_Extended-4.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 80d06d3893089824659c26d0cb261999a12f425a66f09c3685f993065bc47b3a
MD5 5ddb1e3422d0344701b2edd8862ae8da
BLAKE2b-256 0d9fff36280c1f609a0f3045351ef549f78d553a66ffb8e43e1ad187204db3a5

See more details on using hashes here.

Provenance

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