Skip to main content

Middleware to check JWT validation in GraphQL schemas

Project description

Graphene Django JWT Middleware

This is a Graphene Django middleware to check JWT in GraphQL schemas.

Installing

with pipenv:

pipenv install graphene-django-jwt-middleware

or poetry:

poetry add graphene-django-jwt-middleware

Usage

In your django settings.py file, find GRAPHENE configuration and insert at the MIDDLEWARE section:

...

GRAPHENE = {
    "SCHEMA": "...",
    'MIDDLEWARE': [
        'graphene_django_jwt_middleware.middleware.JWTAuthorizationMiddleware'
    ]
}

...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphene_django_jwt_middleware-0.0.7.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page