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

This version

4.1.0

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.1.0.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

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

Flask_JWT_Extended-4.1.0-py2.py3-none-any.whl (19.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: Flask-JWT-Extended-4.1.0.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for Flask-JWT-Extended-4.1.0.tar.gz
Algorithm Hash digest
SHA256 77ca23f23e80480ea42b9c1d9b0fca214e08db7192583e782c2421416b4a4655
MD5 c6421934ec1c09c323916862a56ccd36
BLAKE2b-256 d91ed4e197d45e64bc1af52d7f9c55182dec85bce1d84df3304659f26716ccac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Flask_JWT_Extended-4.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for Flask_JWT_Extended-4.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f952f4ebd449182431c6755acfb7cbb52b8034df7a9f9ef95eb51ccfc1e235b0
MD5 7f97e813741467421b4b58cfb4b49912
BLAKE2b-256 c3dcb399cfb9f8376ce6533a06d3adb6e56337d8884fb61aeb1f1e7af2564486

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