RequestContext 'auth_tok' inconsistent with RPCContext
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo-incubator |
Fix Released
|
Undecided
|
Davanum Srinivas (DIMS) | ||
Grizzly |
Fix Released
|
Undecided
|
Davanum Srinivas (DIMS) |
Bug Description
RequestContext holds the Auth-Token in an attributed named 'auth_tok'. When this context is serialized to amqp (pack_context), its to_dict method is called and the resulting dictionary converts the key to 'auth_token'.
After unpacking into RPCContext, the Auth-Token now is only accessible via the 'auth_token' attribute instead. So if a RPC Service intends to use it, it has to be aware of the changed attribute name.
def to_dict(self):
return {'user': self.user,
Changed in oslo: | |
milestone: | none → grizzly-rc1 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/24027
Review: https:/