Skip to main content

django-graph-auth is a Django application which provides simple mutations and queries for managing users with GraphQL.

Project description

django-graph-auth
=======================

django-graph-auth is a Django application which provides simple mutations and queries for managing users with GraphQL. It can register users, log in, reset users, and expose `JSON web tokens`_.

Documentation can be found on `GitHub`_.

.. _Django Rest Framework: http://www.django-rest-framework.org/

.. _JSON web tokens: http://getblimp.github.io/django-rest-framework-jwt/

.. _GitHub: https://github.com/morgante/django-graph-auth/blob/master/docs/api.md

Requirements
------------

This has only been tested with:

* Python: 3.5
* Django: 1.10

Setup
-----

Install from **pip**:

.. code-block:: sh

pip install django-graph-auth

and then add it to your installed apps:

.. code-block:: python

INSTALLED_APPS = (
...
'graph_auth',
...
)

You will also need to edit your base schema to import the mutations and queries, like this:

.. code-block:: python

import graphene
from graphene import relay, ObjectType

import graph_auth.schema

class Query(graph_auth.schema.Query, ObjectType):
node = relay.Node.Field()

class Mutation(graph_auth.schema.Mutation, ObjectType):
pass

schema = graphene.Schema(query=Query, mutation=Mutation)


Credits
-------

``django-graph-auth`` was created by Morgante Pell (`@morgante
<https://github.com/morgante>`_). It is based on `django-rest-auth`_.

.. _django-rest-auth: https://github.com/Tivix/django-rest-auth


History
=======

Pending
-------

* New release notes go here.

0.3.1 (2016-11-13)
-----------------

* Add installation dependencies. (https://github.com/morgante/django-graph-auth/pull/2)

0.3.0 (2016-10-16)
-----------------

* Add user changing functionality.

0.0.1 (2016-10-10)
-----------------

* Initial release


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_graph_auth-0.3.1-py2.py3-none-any.whl (7.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_graph_auth-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_graph_auth-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33ed6ba62af680cadda42b2cde348c881b6c44bedb17b2631cb3eda53d938dc9
MD5 c3cb71b0d8a53a5df4505bf3c26cf063
BLAKE2b-256 e9e7766fbf67498f9c36bdd719e38c1db69ef1ac244157d6c6f3d29c1d270e0d

See more details on using hashes here.

Supported by

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