ironic/ironic/api/controllers
Lance Bragstad 72044aaa85 Pass context objects directly to policy enforcement
The oslo.policy Enforcer() object knows what to do with instances of
oslo.context RequestContext() if you pass it one.

This makes it easier for people to perform policy enforcement since they
don't need to map important authorization information from the context
object into a dictionary (historically called `creds`). This practiced
didn't guarantee any consistency in `creds` implementations.

You also don't need to call context.to_policy_values() anymore. The
oslo.policy library will do that for you under the hood and map context
values into a set of policy attributes it understands.

This commit updates the calls to enforcement to pass in the context
object where applicable.

Change-Id: Ife4ba098303088023e4341354a1e3bc9f378ce93
2021-01-23 04:36:54 +00:00
..
v1 Pass context objects directly to policy enforcement 2021-01-23 04:36:54 +00:00
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
base.py Expunge the internal version of WSME 2020-11-19 10:57:11 +13:00
link.py Remove Link type 2020-07-20 08:58:32 +12:00
root.py Convert root controller to plain controller 2020-07-30 07:37:31 +12:00
version.py Convert root path / to use plain JSON 2020-07-20 14:09:53 +12:00