Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rscarrera27/Flask-GraphQL-Auth
(UNMAINTAINED. FEEL FREE TO FORK) 🐍A Pythonic way to provide JWT authentication for Flask-GraphQL
https://github.com/rscarrera27/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
- Host: GitHub
- URL: https://github.com/rscarrera27/Flask-GraphQL-Auth
- Owner: rscarrera27
- License: mit
- Created: 2018-04-19T00:41:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T21:37:28.000Z (over 1 year ago)
- Last Synced: 2024-06-01T19:58:28.367Z (6 months ago)
- Topics: auth, extension, flask-extension, flask-extensions, flask-graphql, graphql, jwt
- Language: Python
- Homepage:
- Size: 90.8 KB
- Stars: 63
- Watchers: 7
- Forks: 13
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-graphql - Flask-GraphQL-Auth - An authentication library for Flask inspired from flask-jwt-extended. (Libraries / Python Libraries)
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!!