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, 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

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

Uploaded Source

Built Distribution

Flask_JWT_Extended-4.7.0-py2.py3-none-any.whl (22.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flask_jwt_extended-4.7.0.tar.gz.

File metadata

  • Download URL: flask_jwt_extended-4.7.0.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for flask_jwt_extended-4.7.0.tar.gz
Algorithm Hash digest
SHA256 be5785e2e3ef4d8773ba6d10247e78827dcf0b111efbfcd7a0794b5f7c750d90
MD5 fb6c16c30f06d5a1b41ec121691930b7
BLAKE2b-256 1e4e42d629962cb48723c41102a44d2d2eb56e623eb96c807bdc186202177195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_JWT_Extended-4.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4d8939ca006c92209fad82e591471db897f33b6a85561f8e792c5aa6816ef39c
MD5 9a6fc01dc02f9fa3709950bf7611dac7
BLAKE2b-256 b8748e8496ac4497a313f97affff02661cf120a412a5e1ec23e3aac08c42c212

See more details on using hashes here.

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