remote_auth

Provide multiple Django Auth support to a project


Keywords
remote, multi, default, django, auth
License
MIT
Install
pip install remote_auth==0.0.6

Documentation

Django remote auth

Provide multiple Django Auth support to a project

Install

pip install remote_auth

Quick Start Guide

Add remote_auth to your settings.py

    INSTALLED_APPS = [
        '...',
        'remote_auth',
        '...'
    ]

    MIDDLEWARE = [
        '...',
        'remote_auth.middleware.SessionMiddleware',
        '...'
    ]

    DATABASES = {
        '...',

        'remote_auth': {
            'ENGINE': 'django.db.backends.mysql',
            'NAME': 'REMOTE_DB',
            'USER': 'REMOTE_USER',
            'PASSWORD': 'REMOTE_PASSWORD',
            'HOST': 'REMOTE_HOST',
            'PORT': 'REMOTE_PORT',
        },

        '...'
    }

    AUTHENTICATION_BACKENDS = [
        'remote_auth.backends.CustomModelBackend',
    ]