https://github.com/instruct-br/graphene-django-jwt-middleware
https://github.com/instruct-br/graphene-django-jwt-middleware
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/instruct-br/graphene-django-jwt-middleware
- Owner: instruct-br
- License: mit
- Created: 2022-07-07T18:24:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T18:44:55.000Z (over 3 years ago)
- Last Synced: 2025-09-20T10:39:55.059Z (9 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 9
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Graphene Django JWT Middleware
This is a [Graphene Django](https://docs.graphene-python.org/projects/django/en/latest/) middleware to check JWT in GraphQL schemas.
## Installing
with pipenv:
```bash
pipenv install graphene-django-jwt-middleware
```
or poetry:
```bash
poetry add graphene-django-jwt-middleware
```
## Usage
In your django `settings.py` file, find `GRAPHENE` configuration and insert at the `MIDDLEWARE` section:
```python
...
GRAPHENE = {
"SCHEMA": "...",
'MIDDLEWARE': [
'graphene_django_jwt_middleware.middleware.JWTAuthorizationMiddleware'
]
}
...
```