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.
Reviewed: https:/ /review. openstack. org/344496 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=e420b16c222 88c0a8cb9b1337e 56f04ca1ef8737
Committed: https:/
Submitter: Jenkins
Branch: master
commit e420b16c22288c0 a8cb9b1337e56f0 4ca1ef8737
Author: Colleen Murphy <email address hidden>
Date: Tue Jul 19 15:41:24 2016 -0700
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/ keystonemiddlew are/tree/ keystonemiddlew are/auth_ token/_ _init__ .py#n399 git.openstack. org/cgit/ openstack/ keystoneauth/ tree/keystoneau th1/access/ access. py#n41
[2] http://
Closes-bug: #1603038
Change-Id: Iac4a5769072925 fe2f36768c8f318 16e6866f2f6