👮‍♂️A Pythonic way for authenticate GraphQL request👮‍♂️
Branch: master
Clone or download
NovemberOscar Merge pull request #6 from aspgems/master
Fixes bug setting expiration period for token.
Latest commit 27897a6 Nov 28, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Hotfix Sep 18, 2018
examples UPDATE: apply changes to docs Sep 18, 2018
flask_graphql_auth
.gitignore UPDATE: separte token kind Aug 7, 2018
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Oct 24, 2018
LICENSE Initial commit Apr 19, 2018
README.md Update README.md Sep 25, 2018
setup.py

README.md

Flask-GraphQL-Auth PyPI version Documentation Status

What is Flask-GraphQL-Auth?

Flask-GraphQL-Auth is JWT decorator for flask-graphql inspired from Flask-JWT-Extended. all you have to do to protect your mutation and query with JWT is to create unions with AuthInfoField and decorate resolvers with decorators in Flask-GraphQL-Auth

Features

  • Basic validation of JWT
  • Mutation protectors
  • Query protectors
  • Get JWT data from context stack
  • Insert user claim

Installation

pip install Flask-GraphQL-Auth

Usage

View the documentation online

We are finding contributors!

  • TODO
    • test cases
    • CI&coverage intergration

any PR&issues are welcome!!