Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Django Allauth | 7,972 | 5,160 | 111 | 3 days ago | 66 | June 07, 2022 | 366 | mit | Python | |
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication. | ||||||||||
Django Social Auth | 2,564 | 299 | 3 | 6 years ago | 84 | September 07, 2013 | 4 | other | Python | |
Django social authentication made simple | ||||||||||
Django Rest Auth | 2,331 | 1,109 | 24 | 10 months ago | 25 | April 01, 2019 | 234 | mit | Python | |
This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON) | ||||||||||
Djoser | 2,288 | 212 | 5 | 6 days ago | 48 | October 30, 2020 | 166 | mit | Python | |
REST implementation of Django authentication system. | ||||||||||
Social App Django | 1,815 | 1,172 | 52 | 4 days ago | 14 | August 05, 2021 | 128 | bsd-3-clause | Python | |
Python Social Auth - Application - Django | ||||||||||
Django Two Factor Auth | 1,408 | 92 | 5 | 11 days ago | 37 | June 06, 2022 | 94 | mit | Python | |
Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects. | ||||||||||
Dj Rest Auth | 1,290 | 7 | 13 days ago | 37 | March 30, 2022 | 141 | mit | Python | ||
Authentication for Django Rest Framework | ||||||||||
Awesome Django Rest Framework | 935 | a year ago | 1 | gpl-3.0 | ||||||
💻😍Tools, processes and resources you need to create an awesome API with Django REST Framework | ||||||||||
Django Rest Knox | 908 | 162 | 13 | 4 months ago | 25 | January 31, 2022 | 69 | mit | Python | |
Authentication Module for django rest auth | ||||||||||
Django Sesame | 847 | 10 | 1 | a month ago | 16 | May 05, 2021 | 2 | bsd-3-clause | Python | |
"Magic Links" - URLs with authentication tokens for one-click login |
JSON Web Token authentication for Django GraphQL.
Fantastic documentation is available at https://django-graphql-jwt.domake.io.
Install last stable version from Pypi:
pip install django-graphql-jwt
Add AuthenticationMiddleware
middleware to your MIDDLEWARE settings:
MIDDLEWARE = [
# ...
"django.contrib.auth.middleware.AuthenticationMiddleware",
# ...
]
Add JSONWebTokenMiddleware
middleware to your GRAPHENE settings:
GRAPHENE = {
"SCHEMA": "mysite.myschema.schema",
"MIDDLEWARE": [
"graphql_jwt.middleware.JSONWebTokenMiddleware",
],
}
Add JSONWebTokenBackend
backend to your AUTHENTICATION_BACKENDS:
AUTHENTICATION_BACKENDS = [
"graphql_jwt.backends.JSONWebTokenBackend",
"django.contrib.auth.backends.ModelBackend",
]
Add django-graphql-jwt mutations to the root schema:
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)