A simple Django app to enable custom behavior for remote user authentication
Project description
=====
Custom Remote User
=====
Custom Remote User is a Django app that extends remote user authentication
enabling custom common behavior. The app currently offers only a case-insensitive
backend `CaseInsensitiveRemoteUserBackend`.
`CaseInsensitiveRemoteUserBackend` guarantees that all users created using an
external authentication service are created with an all-lower case username.
This is important because some external authentication services return a
case-sensitive username upon login. This is problematic with Django as the built-in
user model is case-sensitive. This means a single remote user may have two different
records in that database (e.g. 'Username' is different than 'username').
Quick start
-----------
1. Add "custom_remote_user" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'custom_remote_user',
]
2. Add CaseInsensitiveRemoteUserBackend::
AUTHENTICATION_BACKENDS = [
'custom_remote_user.backends.CaseInsensitiveRemoteUserBackend',
]
3. Add the required middlewares for remote user authentication::
MIDDLEWARE = [
...
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.RemoteUserMiddleware',
...
]
Custom Remote User
=====
Custom Remote User is a Django app that extends remote user authentication
enabling custom common behavior. The app currently offers only a case-insensitive
backend `CaseInsensitiveRemoteUserBackend`.
`CaseInsensitiveRemoteUserBackend` guarantees that all users created using an
external authentication service are created with an all-lower case username.
This is important because some external authentication services return a
case-sensitive username upon login. This is problematic with Django as the built-in
user model is case-sensitive. This means a single remote user may have two different
records in that database (e.g. 'Username' is different than 'username').
Quick start
-----------
1. Add "custom_remote_user" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'custom_remote_user',
]
2. Add CaseInsensitiveRemoteUserBackend::
AUTHENTICATION_BACKENDS = [
'custom_remote_user.backends.CaseInsensitiveRemoteUserBackend',
]
3. Add the required middlewares for remote user authentication::
MIDDLEWARE = [
...
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.RemoteUserMiddleware',
...
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-custom-remote-user-0.3.tar.gz.
File metadata
- Download URL: django-custom-remote-user-0.3.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ccba5286932339b19fe980eebdb717caaa67c27b8b1daee9ffaa280be0e3d0a
|
|
| MD5 |
27fd7aa6033114f57a3ad2045ef3485f
|
|
| BLAKE2b-256 |
6cf51b59e1077176fea3ba117a2bc1d4e92c56e48cd0a1cfee7dd23e4fed4a02
|
File details
Details for the file django_custom_remote_user-0.3-py3-none-any.whl.
File metadata
- Download URL: django_custom_remote_user-0.3-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fa95af66dc99a7aa44666aa1c123d286f1a86f1bdffe73bacbadb33a32c46b8
|
|
| MD5 |
d3e7efba4f0a5f7a3db6a3d600d07114
|
|
| BLAKE2b-256 |
1b5c77c7df4a80129a66b201c18e15b3459441549780a507d2a29cc62b45eb93
|