Skip to main content

Graphql and relay authentication with Graphene for Django.

Project description

Pypi Build Status Codecov

GraphQL implementation of the Django authentication system.

It abstract all the basic logic of handling user accounts out of your app, so you don’t need to think about it and can get up and running faster.

No lock-in. When you are ready to implement your own code or this package is not up to your expectations , it’s easy to extend or switch to your implementation.

Documentation

Documentation is available at read the docs.

Features

  • Awesome docs

  • Fully compatible with Relay

  • Works with default/custom user model

  • JWT authentication (with Django GraphQL JWT)

  • User query with filters (with Django Filter and Graphene Django)

  • User registration with email verification

  • Resend activation email

  • Add secondary email, with email verification too

  • Retrieve/Update user

  • Archive user

  • Permanently delete user or make it inactive

  • Turn archived user active again on login

  • Track user status (archived, verified, secondary email)

  • Password change

  • Password reset through email

  • Revoke user refresh tokens on account archive/delete/password change/reset

  • All mutations return success and errors

  • Default email templates (you will customize though)

  • Customizable, no lock-in

Preview

Handling user accounts becomes super easy.

mutation {
  register(
    email: "new_user@email.com",
    username: "new_user",
    password1: "123456super",
    password2: "123456super",
  ) {
    success,
    errors,
    token,
    refreshToken
  }
}

Check the status of the new user:

u = UserModel.objects.last()
u.status.verified
# False

During the registration, an email with a verification link was sent.

mutation {
  verifyAccount(
    token:"<TOKEN ON EMAIL LINK>",
  ) {
    success,
    errors
  }
}

Now user is verified.

u.status.verified
# True

Check the installation guide or jump to the quickstart. Or if you prefer, browse the api.

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

django-graphql-auth-0.3.8.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_graphql_auth-0.3.8-py2.py3-none-any.whl (25.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-graphql-auth-0.3.8.tar.gz.

File metadata

  • Download URL: django-graphql-auth-0.3.8.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.1

File hashes

Hashes for django-graphql-auth-0.3.8.tar.gz
Algorithm Hash digest
SHA256 4e4e1c637a139503c1db3625ec62e7266585e849b803272394db19ae95b44016
MD5 7b883668cb978449070c905c3c7f9c69
BLAKE2b-256 eee81376ab949d0e9d4324d77c82201085e1c31e23cdc62ae9a280d7037e5bb1

See more details on using hashes here.

File details

Details for the file django_graphql_auth-0.3.8-py2.py3-none-any.whl.

File metadata

  • Download URL: django_graphql_auth-0.3.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.1

File hashes

Hashes for django_graphql_auth-0.3.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 83d80400df1f6a6b0758f3e61290d09f7fce09d777359e215962f72272a4ef76
MD5 c2997796ab8faf08aeeaf42850311ecb
BLAKE2b-256 8e5c6c6bb088b5b505ee0070072a859697737fbf8a0cddc577ec6e0333aae694

See more details on using hashes here.

Supported by

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