Skip to main content

A personal Django app that extends django-rest-auth.

Project description

===== gecoauth

gecoauth is a Django app that extends django-rest-auth, providing the same endpoints but also adding some models and new functionality. Detailed documentation is in the "docs" directory.

Quick start

  1. Add "gecoauth" to your INSTALLED_APPS setting like this::

    ``INSTALLED_APPS = [

     'gecoauth',
     'rest_framework',
     'rest_framework.authtoken', # token auth django rest
     'rest_auth', # django-rest-auth
     'django.contrib.sites',
     'allauth',
     'allauth.account',
     'rest_auth.registration'
    

    ]``

  2. Include the GecoAuth URLconf in your project urls.py like this::

    path('gecoauth/', include('gecoauth.urls')),

  3. Add a site id SITE_ID = 1 in settings

  4. Add default authentication and permission classes REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.TokenAuthentication', ], 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.IsAuthenticated', ] }

  5. Add the custom serializer REST_AUTH_REGISTER_SERIALIZERS = { 'REGISTER_SERIALIZER': 'gecoauth.serializers.GecoRegisterSerializer', }

  6. Run python manage.py migrate to create the gecoauth models.

  7. Start the development server and visit http://127.0.0.1:8000/gecoauth/rest-auth and http://127.0.0.1:8000/gecoauth/rest-auth-registration to use the app (see django-rest-auth for the real endpoints)

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

gecoauth-0.1.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

gecoauth-0.1.6-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file gecoauth-0.1.6.tar.gz.

File metadata

  • Download URL: gecoauth-0.1.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for gecoauth-0.1.6.tar.gz
Algorithm Hash digest
SHA256 22d77f35eba3dba206190ff663fcc532cf128363ec86a2ebd61f0b77d44ec2cc
MD5 330a9ff070647ca3f77755998f2fd8c0
BLAKE2b-256 30f10f7ae80da813979d9b23db53e79209c4754b831f3fd9222667ef7acfb587

See more details on using hashes here.

File details

Details for the file gecoauth-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: gecoauth-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for gecoauth-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fb6bc98cc1c78f12d3bfe142ecbba37a65576b609d3d15be126900207cdd4f29
MD5 fd424feb8200ab337b48e6ea5f5760ab
BLAKE2b-256 f4270799425983fecf2181e9524ca154c35bb1a8b734bae2775684019ec3a058

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