vimalloc/flask-jwt-extended
소개
JWT를 지원하는 오픈 소스 Flask 확장 기능입니다(필요한 기능이 모두 포함되어 있습니다)!
웹 및 앱 개발What you can do
- Adding custom claims to JSON Web Tokens
- Automatic user loading (current_user).
- Custom claims validation on received tokens
- First class support for fresh tokens for making sensitive changes.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- -3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFlask-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
Upgrading from 3.x.x to 4.0.0
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:
- py310, py311, py312, py313, py314, pypy3.11
- 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
관련 프로젝트 살펴보기
불러오는 중…