f55b0334b919f89fee0b2cfe0a9994fd08c9966c
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
Middleware for the OpenStack Identity API (Keystone)
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.
- License: Apache License, Version 2.0
- Documentation: http://docs.openstack.org/developer/keystonemiddleware
- Source: http://git.openstack.org/cgit/openstack/keystonemiddleware
- Bugs: http://bugs.launchpad.net/keystonemiddleware
For any other information, refer to the parent project, Keystone:
Description