keystone/keystone/middleware
Colleen Murphy e420b16c22 Skip middleware request processing for admin token
In be558717 the request handling was refactored and more of the token
handling was left to keystonemiddleware. However, when using the
deprecated admin_token, the token needs to be handled differently.
Specifically, there may be no 'token' or 'access' key in the body of
the request, which keystoneauth expects to have keystonemiddleware pass
to it[1][2]. Luckily the admin_token doesn't need a lot of special
processing, so we can just skip that step and move on to fill_context.

[1] http://git.openstack.org/cgit/openstack/keystonemiddleware/tree/keystonemiddleware/auth_token/__init__.py#n399
[2] http://git.openstack.org/cgit/openstack/keystoneauth/tree/keystoneauth1/access/access.py#n41

Closes-bug: #1603038

Change-Id: Iac4a5769072925fe2f36768c8f31816e6866f2f6
2016-08-02 19:47:32 -07:00
..
__init__.py Move AuthContext middleware into its own file 2015-11-12 11:47:51 +11:00
auth.py Skip middleware request processing for admin token 2016-08-02 19:47:32 -07:00
core.py Replace keystone.common.config with keystone.conf package 2016-06-24 17:02:15 +00:00