Go to file
Brian Cline f55b0334b9 Fix AttributeError on cached-invalid token checks
Starting with v4.5.0, if a token is found to be cached, but is cached
with an invalid state, the middleware attempts to log a debug message
indicating as much.

However, the logger it attempts to use does not exist and results in
an AttributeError. As a result, this yields HTTP 500 responses once
the invalid token gets cached and is attempted to be used again,
rather than the expected 401.

This fixes the reference and adds a test to ensure the expected log
entry ends up in the logger so that this condition in
AuthProtocol.fetch_token now gets coverage.

Change-Id: Ie391973ea5893531c0b590ffba2d9de7f7f19d94
Closes-bug: #1584289
2016-05-21 01:14:34 -05:00
2014-06-19 15:45:29 -07:00
2015-06-07 10:37:27 -05:00
2014-06-19 15:45:29 -07:00
2014-06-19 15:45:29 -07:00
2014-06-19 17:30:35 -07:00
2016-02-11 13:00:28 +11:00
2015-09-21 18:55:55 +00:00

Middleware for the OpenStack Identity API (Keystone)

Latest Version

Downloads

This package contains middleware modules designed to provide authentication and authorization features to web services other than Keystone <https://github.com/openstack/keystone>. The most prominent module is keystonemiddleware.auth_token. This package does not expose any CLI or Python API features.

For information on contributing, see CONTRIBUTING.rst.

For any other information, refer to the parent project, Keystone:

https://github.com/openstack/keystone

Description
RETIRED, further work has moved to Debian project infrastructure
Readme 1.8 MiB