oslo.policy/releasenotes
Michael Johnson 639b47198b Map system_scope in creds dictionary
An earlier patch[1] added a mapping for context 'system_scope'
to 'system' when enforce was called with a RequestContext
object. However, enforce can also be called with a creds dictionary
that may contain the context 'system_scope' element. When this
occured, 'system_scope' was not mapped to 'system' and the enforce
would fail with an InvalidScope exception.
This patch moves the 'system_scope' mapping from only occuring
with RequestContext objects to also map it when a creds dictonary
is passed to enforce.

[1] https://review.opendev.org/c/openstack/oslo.policy/+/578995

Change-Id: I83a22c3f825bad0c88018118f8630a20a445965e
(cherry picked from commit 9774108cf9)
(cherry picked from commit ff2a39fc61)
2021-10-20 15:37:35 +00:00
..
notes Map system_scope in creds dictionary 2021-10-20 15:37:35 +00:00
source remove unicode from code 2021-01-03 16:19:18 +08:00