keystonemiddleware/keystonemiddleware
Alistair Coles dcce0d6367 Fix environ keys missing HTTP_ prefix
The _fmt_msg() function constructs a debug message using
identity attributes from the request environ dict, but
accesses these using keys such as X_USER_ID, when the
correct key should be HTTP_X_USER_ID. Consequently no
identity attribute values are ever included in the debug
log message.

This patch adds the missing HTTP_ prefix to the keys and
adds an assertion to the unit tests to verify that the debug
log is generated as expected.

Closes-Bug: 1408602
Change-Id: Ib309abcb3d0f15a20ae581105de1f8964497e5a2
2015-01-08 10:14:30 +00:00
..
openstack add context to keystonemiddleware 2014-10-23 13:58:32 +00:00
tests Fix environ keys missing HTTP_ prefix 2015-01-08 10:14:30 +00:00
__init__.py Moving middleware to new location 2014-06-19 15:50:41 -07:00
_memcache_crypt.py I18n 2014-10-29 20:59:51 -05:00
_memcache_pool.py I18n 2014-10-29 20:59:51 -05:00
audit.py documentation for audit middleware 2014-12-15 16:44:29 -05:00
auth_token.py Fix environ keys missing HTTP_ prefix 2015-01-08 10:14:30 +00:00
ec2_token.py Update oslo-incubator and switch to oslo.{utils,serialization} 2014-09-30 10:26:19 +02:00
i18n.py I18n 2014-10-29 20:59:51 -05:00
opts.py Convert authentication into a plugin 2014-10-28 10:24:32 +01:00
s3_token.py Merge "Docstring cleanup" 2014-11-26 05:43:16 +00:00