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 ensures 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:

  • py37, py38, py39, py310, pypy3
    • Run unit tests on the given python version
  • mypy
    • Run mypy type checking
  • coverage
    • Run a code coverage check
  • docs
    • Ensure documentation builds and there are no broken links
  • style
    • Ensure 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.5.1.tar.gz (34.2 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.5.1-py2.py3-none-any.whl (22.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: Flask-JWT-Extended-4.5.1.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for Flask-JWT-Extended-4.5.1.tar.gz
Algorithm Hash digest
SHA256 c2bb16645115ea0b1b78756f9f169ffe6c7d3d3699e855361d2d8bf8ff0fd3b2
MD5 944d082afe8b796eefc5f2d6626d2633
BLAKE2b-256 6f977785ac3a23e36d55da4e2f363ebcadb5301a9225ec593e35f5102965c056

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_JWT_Extended-4.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6d70af5e66b861275df25a5da99a36620c5d9166f709a1fff06ae775b88c3f04
MD5 1cd3a2a7d038ea6d8ef09e2340772a26
BLAKE2b-256 e6a2dde494bec97259b7d53f924f0cc9db2334b71254204a0b0ea558bb7d8640

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