Skip to main content

No project description provided

Project description

django-graphql-google-accounts

fk django.contrib.auth is create 3 tables. and django allauth is create 7 tables.
but we need only google accounts and we will only use graphql token authentication.

Installation

pip install django-graphql-google-accounts

Setup

configure base settings

without django.contrib.auth and add this app

# settings.py
INSTALLED_APPS = [
    # django.contrib.auth
    ...
    'accounts',
]

configure urls

# urls.py
from accounts.views import GoogleLoginView, GoogleCallbackView
urlpatterns = [
    # ...
    path('login', GoogleLoginView.as_view()),
    path('auth/google/callback', GoogleCallbackView.as_view()),
]

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

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