All Projects → flavors → Django Graphql Jwt

flavors / Django Graphql Jwt

Licence: mit
JSON Web Token (JWT) authentication for Graphene Django

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Graphql Jwt

Django Graphql Social Auth
Python Social Auth support for Graphene Django
Stars: ✭ 90 (-86.13%)
Mutual labels:  graphql, django, authentication, jwt
Django Auth Adfs
A Django authentication backend for Microsoft ADFS and AzureAD
Stars: ✭ 127 (-80.43%)
Mutual labels:  django, authentication, jwt, oauth2
Authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
Stars: ✭ 2,854 (+339.75%)
Mutual labels:  django, jwt, oauth2
Hasura Backend Plus
🔑Auth and 📦Storage for Hasura. The quickest way to get Auth and Storage working for your next app based on Hasura.
Stars: ✭ 776 (+19.57%)
Mutual labels:  graphql, authentication, jwt
Nestjs Graphql
nest-js starter which implement graphql module
Stars: ✭ 111 (-82.9%)
Mutual labels:  graphql, jwt, jsonwebtoken
Lock.swift
A Swift & iOS framework to authenticate using Auth0 and with a Native Look & Feel
Stars: ✭ 215 (-66.87%)
Mutual labels:  authentication, jwt, oauth2
Cloudfront Auth
An AWS CloudFront [email protected] function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
Stars: ✭ 471 (-27.43%)
Mutual labels:  authentication, jwt, oauth2
Dj Rest Auth
Authentication for Django Rest Framework
Stars: ✭ 491 (-24.35%)
Mutual labels:  django, authentication, jwt
Auth
Authenticator via oauth2
Stars: ✭ 118 (-81.82%)
Mutual labels:  authentication, jwt, oauth2
Django Graphql Auth
Django registration and authentication with GraphQL.
Stars: ✭ 200 (-69.18%)
Mutual labels:  graphql, django, authentication
Express Graphql Boilerplate
Express GraphQL API with JWT Authentication and support for sqlite, mysql, and postgresql
Stars: ✭ 201 (-69.03%)
Mutual labels:  graphql, authentication, jwt
Express Graphql Mongodb Boilerplate
A boilerplate for Node.js apps / GraphQL-API / Authentication from scratch - express, graphql - (graphql compose), mongodb (mongoose).
Stars: ✭ 288 (-55.62%)
Mutual labels:  graphql, authentication, token
Paseto
Platform-Agnostic Security Tokens implementation in GO (Golang)
Stars: ✭ 461 (-28.97%)
Mutual labels:  authentication, jwt, token
Express Mongodb Rest Api Boilerplate
A boilerplate for Node.js apps / Rest API / Authentication from scratch - express, mongodb (mongoose).
Stars: ✭ 153 (-76.43%)
Mutual labels:  authentication, jwt, token
Auth0.swift
Swift toolkit for Auth0 API
Stars: ✭ 146 (-77.5%)
Mutual labels:  authentication, jwt, oauth2
Django Oidc Provider
OpenID Connect and OAuth2 provider implementation for Djangonauts.
Stars: ✭ 320 (-50.69%)
Mutual labels:  django, authentication, oauth2
Ngx Api Utils
ngx-api-utils is a lean library of utilities and helpers to quickly integrate any HTTP API (REST, Ajax, and any other) with Angular.
Stars: ✭ 92 (-85.82%)
Mutual labels:  authentication, jwt, oauth2
Djwt
Create and verify JSON Web Tokens (JWT) with deno.
Stars: ✭ 93 (-85.67%)
Mutual labels:  authentication, jwt, jsonwebtoken
Nextjs Headless Wordpress
🔥 Nextjs Headless WordPress
Stars: ✭ 110 (-83.05%)
Mutual labels:  graphql, authentication, jwt
Caddy Auth Portal
Authentication Plugin for Caddy v2 implementing Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication
Stars: ✭ 291 (-55.16%)
Mutual labels:  authentication, jwt, oauth2

Django GraphQL JWT

|Pypi| |Build Status| |Codecov| |Codacy|

JSON Web Token <https://jwt.io/>_ authentication for Django GraphQL <https://github.com/graphql-python/graphene-django>_

Installation

Install last stable version from Pypi:

::

pip install django-graphql-jwt

Add AuthenticationMiddleware middleware to your MIDDLEWARE settings:

.. code:: python

MIDDLEWARE = [
    ...
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    ...
]

Add JSONWebTokenMiddleware middleware to your GRAPHENE settings:

.. code:: python

GRAPHENE = {
    'SCHEMA': 'mysite.myschema.schema',
    'MIDDLEWARE': [
        'graphql_jwt.middleware.JSONWebTokenMiddleware',
    ],
}

Add JSONWebTokenBackend backend to your AUTHENTICATION_BACKENDS:

.. code:: python

AUTHENTICATION_BACKENDS = [
    'graphql_jwt.backends.JSONWebTokenBackend',
    'django.contrib.auth.backends.ModelBackend',
]

Schema

Add django-graphql-jwt mutations to the root schema:

.. code:: python

import graphene
import graphql_jwt


class Mutation(graphene.ObjectType):
    token_auth = graphql_jwt.ObtainJSONWebToken.Field()
    verify_token = graphql_jwt.Verify.Field()
    refresh_token = graphql_jwt.Refresh.Field()


schema = graphene.Schema(mutation=Mutation)

Documentation

Fantastic documentation is available at https://django-graphql-jwt.domake.io.

.. |Pypi| image:: https://img.shields.io/pypi/v/django-graphql-jwt.svg :target: https://pypi.python.org/pypi/django-graphql-jwt :alt: Pypi

.. |Build Status| image:: https://travis-ci.org/flavors/django-graphql-jwt.svg?branch=master :target: https://travis-ci.org/flavors/django-graphql-jwt :alt: Build Status

.. |Codecov| image:: https://codecov.io/gh/flavors/django-graphql-jwt/branch/master/graph/badge.svg :target: https://codecov.io/gh/flavors/django-graphql-jwt :alt: Codecov

.. |Codacy| image:: https://api.codacy.com/project/badge/Grade/4f9fd439fbc74be88a215b9ed2abfcf9 :target: https://app.codacy.com/gh/flavors/django-graphql-jwt?utm_source=github.com&utm_medium=referral&utm_content=flavors/django-graphql-jwt&utm_campaign=Badge_Grade_Dashboard :alt: Codacy

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].