96ca1097a502efca95546641947aba60c85bd0bb
Discovering REMOTE_IP using headers variables and displaing on console log. The messages will be: "Login successful for user "%(username)s", remote address %(remote_ip)s." and "Login failed for user "%(username)s", remote address %(remote_ip)s." This patch was tested behind haproxy and nginx reverse proxy. To set variable that want to use, must inform using settings SECURE_PROXY_ADDR_HEADER variable. Whitout this setting the remote ip will use REMOTE_ADDR header variable. Change-Id: I977be6cb1d029048b9862cac4b6596fc2e2b3431 Closes-Bug: #1461266
Django OpenStack Auth
Django OpenStack Auth is a pluggable Django authentication backend
that works with Django's contrib.auth framework to
authenticate a user against OpenStack's Keystone Identity API.
The current version is designed to work with the Keystone v2.0 and v3 API.
You can view the installation instructions on Read The Docs.
- License: Apache License, Version 2.0
- Documentation: http://django-openstack-auth.readthedocs.org/en/latest/
- Source: http://git.openstack.org/cgit/openstack/django_openstack_auth/
- Bugs: https://bugs.launchpad.net/django-openstack-auth
Description