flask-jwt-extended 4.7.1


pip install flask-jwt-extended

  Latest version

Released: Nov 20, 2024

Project Links

Meta
Author: Lily Acadia Gilbert
Requires Python: >=3.9,<4

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Web Environment

Framework
  • Flask

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.6
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

Topic
  • Software Development :: Libraries :: Python Modules

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, py311, py312, 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
4.7.1 Nov 20, 2024
4.7.0 Nov 18, 2024
4.6.0 Dec 13, 2023
4.5.3 Oct 03, 2023
4.5.2 May 26, 2023
4.5.1 May 26, 2023
4.4.4 Aug 15, 2022
4.4.3 Jul 27, 2022
4.4.2 Jun 27, 2022
4.4.1 Jun 02, 2022
4.4.0 May 02, 2022
4.3.1 Oct 08, 2021
4.3.0 Aug 25, 2021
4.2.3 Jul 06, 2021
4.2.2 Jul 05, 2021
4.2.1 May 12, 2021
4.2.0 May 02, 2021
4.1.0 Mar 09, 2021
4.0.2 Feb 13, 2021
4.0.0 Feb 13, 2021
3.25.1 Feb 13, 2021
3.25.0 Nov 09, 2020
3.24.1 Oct 24, 2019
3.24.0 Oct 04, 2019
3.23.0 Sep 10, 2019
3.22.0 Aug 28, 2019
3.21.0 Aug 03, 2019
3.20.0 Jul 03, 2019
3.19.0 Jun 25, 2019
3.18.2 May 10, 2019
3.18.1 Apr 10, 2019
3.18.0 Mar 02, 2019
3.17.0 Feb 01, 2019
3.16.0 Jan 20, 2019
3.15.0 Jan 03, 2019
3.14.0 Dec 07, 2018
3.13.1 Sep 28, 2018
3.13.0 Sep 16, 2018
3.12.1 Aug 04, 2018
3.12.0 Jul 21, 2018
3.11.0 Jul 17, 2018
3.10.0 Jun 05, 2018
3.9.1 May 11, 2018
3.8.2 May 05, 2018
3.8.1 Apr 11, 2018
3.8.0 Apr 11, 2018
3.7.2 Mar 06, 2018
3.7.1 Feb 23, 2018
3.7.0 Feb 10, 2018
3.6.0 Jan 13, 2018
3.5.1 Jan 12, 2018
3.5.0 Jan 08, 2018
3.4.0 Dec 14, 2017
3.3.4 Oct 23, 2017
3.3.3 Oct 23, 2017
3.3.1 Sep 06, 2017
3.3.0 Aug 29, 2017
3.2.0 Jul 29, 2017
3.1.1 Jul 13, 2017
3.1.0 Jul 13, 2017
3.0.0 Jul 09, 2017
2.4.1 Jun 18, 2017
2.4.0 Jun 15, 2017
2.3.0 Jun 14, 2017
2.2.0 Jun 04, 2017
2.1.1 May 30, 2017
2.1.0 May 27, 2017
2.0.0 May 08, 2017
1.5.0 May 05, 2017
1.4.2 Apr 26, 2017
1.4.1 Apr 15, 2017
1.4.0 Apr 10, 2017
1.3.2 Apr 05, 2017
1.3.1 Mar 05, 2017
1.3.0 Feb 02, 2017
1.2.1 Feb 01, 2017
1.2.0 Jan 30, 2017
1.1.0 Jan 12, 2017
1.0.3 Dec 31, 2016
1.0.2 Dec 23, 2016
1.0.1 Dec 15, 2016
0.0.9 Oct 29, 2016
0.0.8 Oct 21, 2016
0.0.7 Oct 18, 2016
0.0.6 Oct 17, 2016
0.0.5 Oct 16, 2016
0.0.4 Oct 12, 2016
0.0.3 Oct 11, 2016
0.0.2 Oct 03, 2016
0.0.1 Sep 21, 2016

Wheel compatibility matrix

Platform Python 2 Python 3
any

Files in release

Extras:
Dependencies:
Werkzeug (>=0.14)
Flask (<4.0,>=2.0)
PyJWT (<3.0,>=2.0)