creimers / graphene-auth-examples

Examples of authentication and authorization with django graphene
MIT License
67 stars 11 forks source link
django graphene graphene-django python

🚨Deprecated! Check out the excellent django-graphql-jwt.

django graphene authentication example - work in progress

In this repo, I'm trying to figure out how to do authentication and authorization with graphql and graphene-django.

When I started, I was especially interested in mutation examples for user registration, account activation, login etc.

Coming from REST land, I heavily inherited from drf-jwt and djoser.

Should anyone stumble upon this, I'd be very happy to receive some feedback.

I recently update this repo to work with graphene>=2 (and without relay). The old graphene<2 + relay version is in this branch

what's inside.

mutations

main commands

development

test

docker-compose run django py.test -s ./src