ironic/ironic/api
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
..
controllers Pass context objects directly to policy enforcement 2021-01-23 04:36:54 +00:00
middleware Encapsulate auth_token middleware 2020-05-15 09:49:54 +12:00
__init__.py Abstract away pecan.request/response 2019-07-16 17:47:13 +02:00
app.py Enable Basic HTTP authentication middleware 2020-06-05 01:15:08 +12:00
config.py Fix W504 errors 2018-05-09 06:11:30 -07:00
functions.py Use getfullargspec to inspect functions 2020-07-01 17:25:09 +02:00
hooks.py Enable Basic HTTP authentication middleware 2020-06-05 01:15:08 +12:00
method.py JSON conversion followup change 2020-11-26 11:05:48 +13:00
wsgi.py Make oslo.i18n an optional dependency 2020-04-02 14:10:21 +02:00