← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1433211] [NEW] token_ref fetched in AuthContextMiddleware should be reused

 

Public bug reported:

AuthContextMiddleware validates token and converts it to auth_context.
The info fetched can be reused in several places, for example in
https://github.com/openstack/keystone/blob/master/keystone/common/controller.py#L677
. A good list to start searching places for refactoring can be obtained
using ``grep "context\['token_id'\]" -r keystone``.

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1433211

Title:
  token_ref fetched in AuthContextMiddleware should be reused

Status in OpenStack Identity (Keystone):
  New

Bug description:
  AuthContextMiddleware validates token and converts it to auth_context.
  The info fetched can be reused in several places, for example in
  https://github.com/openstack/keystone/blob/master/keystone/common/controller.py#L677
  . A good list to start searching places for refactoring can be
  obtained using ``grep "context\['token_id'\]" -r keystone``.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1433211/+subscriptions


Follow ups

References