Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/callsign-viper/Flask-GraphQL-Auth

(UNMAINTAINED. FEEL FREE TO FORK) 🐍A Pythonic way to provide JWT authentication for Flask-GraphQL
https://github.com/callsign-viper/Flask-GraphQL-Auth

auth extension flask-extension flask-extensions flask-graphql graphql jwt

Last synced: about 1 month ago
JSON representation

(UNMAINTAINED. FEEL FREE TO FORK) 🐍A Pythonic way to provide JWT authentication for Flask-GraphQL

Awesome Lists containing this project

README

        

# Flask-GraphQL-Auth
![PyPI](https://img.shields.io/pypi/v/flask-graphql-auth.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flask-graphql-auth.svg)
[![Documentation Status](https://readthedocs.org/projects/flask-graphql-auth/badge/?version=latest)](https://flask-graphql-auth.readthedocs.io/en/latest/?badge=latest)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/42a0235602c14a96883c0cd9393816ea)](https://www.codacy.com/app/NovemberOscar/Flask-GraphQL-Auth?utm_source=github.com&utm_medium=referral&utm_content=callsign-viper/Flask-GraphQL-Auth&utm_campaign=Badge_Grade)
[![Build Status](https://dev.azure.com/LewisKim/Flask-GraphQL-Auth/_apis/build/status/NovemberOscar.Flask-GraphQL-Auth?branchName=master)](https://dev.azure.com/LewisKim/Flask-GraphQL-Auth/_build/latest?definitionId=3&branchName=master)[![Downloads](https://pepy.tech/badge/flask-graphql-auth)](https://pepy.tech/project/flask-graphql-auth)
[![DownloadsPerMonth](https://pepy.tech/badge/flask-graphql-auth/month)](https://pepy.tech/project/flask-graphql-auth/month)
[![codecov](https://codecov.io/gh/callsign-viper/Flask-GraphQL-Auth/branch/master/graph/badge.svg)](https://codecov.io/gh/callsign-viper/Flask-GraphQL-Auth)

## 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
```py
pip install Flask-GraphQL-Auth
```

### Usage
[View the documentation online](http://flask-graphql-auth.readthedocs.io/en/latest/)

### We are finding contributors!
- TODO
- test cases
- CI&coverage intergration

any PR&issues are welcome!!