Skip to main content

A django widget which allows you to create multiple auth system.

Project description

# django-goncord
Django auth system.

Tested with Django 1.10.4 and Python 3.5.

### Installation guide

First install package using pip

```sh
pip install django-goncord
```

After installation register middleware and authentication backend in settings

```python
MIDDLEWARE_CLASSES = [
...
'django.contrib.auth.middleware.AuthenticationMiddleware',
'app.middleware.GoncordMiddleware',
...
]

...

AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.RemoteUserBackend',
]
```

Then register auth system url parameters in settings

```python
GONCORD = {
'BASE_URL': 'URL like http://www.my-site.ru',
'VALIDATE_URL': 'SUB_URL like /validate',
'LOGIN_URL': 'SUB_URL like /login',
'LOGOUT_URL': 'SUB_URL like /logout',
'REGISTER_URL': 'SUB_URL like /register'
}
```

for authentication you can register only **BASE_URL**, **VALIDATE_URL**, **LOGIN_URL** and **LOGOUT_URL**

at the end specify Django **LOGIN_URL** parameter

for working with package use **login_required** decorator from **django.contrib.auth.decorators**

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

django-goncord-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file django-goncord-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django-goncord-0.1.1.tar.gz
Algorithm Hash digest
SHA256 acf1087e8c56d8ff7b069bb506c83bb383f7deef771e675bae4c88a9ae9ca31f
MD5 8bef737100025d7dbaaebcf60049f83e
BLAKE2b-256 08b2c32a77c30bff90a97e52ba38b92799bf77f14d00035afb3ac4e3379c3022

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