Giter Site home page Giter Site logo

edufg1211 / flask-jwt-extended Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vimalloc/flask-jwt-extended

0.0 0.0 0.0 845 KB

An open source Flask extension that provides JWT support (with batteries included)!

Home Page: http://flask-jwt-extended.readthedocs.io/en/stable/

License: MIT License

Python 100.00%

flask-jwt-extended's Introduction

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

flask-jwt-extended's People

Contributors

vimalloc avatar rlam3 avatar deftez avatar dependabot[bot] avatar decaz avatar psafont avatar faisalabujabal avatar fgblomqvist avatar matthewstory avatar robscllc avatar ticosax avatar russellcardullo avatar luord avatar illia-v avatar dunkmann00 avatar frnsys avatar reiven avatar carlegbert avatar djailla avatar mgd722 avatar otetard avatar styk-tv avatar qaisjp avatar ramonsaraiva avatar darkheir avatar sambonner avatar smarlowucf avatar steinitzu avatar stephendwolff avatar stephane avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.