Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Examples of authentication and authorization with django graphene

License

Notifications You must be signed in to change notification settings

creimers/graphene-auth-examples

Repository files navigation

🚨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.

  • python3
  • Django 1.11
  • graphene
  • docker-compose
  • py.test

mutations

  • register
  • activate account
  • login
  • reauthenticate
  • password reset
  • password reset confirm
  • profile update
  • delete account

main commands

development

  • docker-compose build
  • docker-compose run django python ./src/manage.py migrate
  • docker-compose run -p 8000:8000 django python ./src/manage.py runserver 0.0.0.0:8000

test

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

About

Examples of authentication and authorization with django graphene

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages