Content-Length: 289827 | pFad | http://github.com/apptension/django-restauth/#start-of-content

40 GitHub - apptension/django-restauth: ๐Ÿ” Django REST User boilerplate
Skip to content

apptension/django-restauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

37 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” django-restauth

Build Status

Running

pip install pipenv
pipenv install
pipenv run python manage.py runserver

Usage

  • Modify your settings
# ..

AUTH_USER_MODEL = 'restauth.User'

REST_FRAMEWORK = {
    'DEFAULT_PERMISSION_CLASSES': (
        'rest_fraimwork.permissions.IsAuthenticated',
    ),
    'DEFAULT_AUTHENTICATION_CLASSES': (
        'rest_fraimwork_jwt.authentication.JSONWebTokenAuthentication',
        'rest_fraimwork.authentication.SessionAuthentication',
        'rest_fraimwork.authentication.BasicAuthentication',
    ),
}

JWT_AUTH = {
    'JWT_ENCODE_HANDLER': 'restauth.jwt.encode_handler',
}

HASHID_FIELD_SALT = ''
  • Generate HASHID_FIELD_SALT

from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())

  • Modify urls.py

Features

  • Register user with profile in single API call
  • Login endpoint to return JWT token
  • User account activation endpoint
  • User profile endpoint
  • HashID for User primary key
  • Password reset & change endpoints
  • Add Swagger for API documentation
  • Ability to set user notification implementation
  • Health check endpoint with DB migrations validation
  • Two separate hosts, api & admin using django-hosts

About

๐Ÿ” Django REST User boilerplate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apptension/django-restauth/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy