In an effort to standardize policy and authentication values
oslo.context has new features such as from_environ which constructs a
standard oslo.context object from the environment variables created by
auth_token middleware and to_policy_values which emit a standard
credentials target for writing common policy files across services.
Use these standard functions when dealing with contexts and policy in
glance.
Reviewed: https:/ /review. openstack. org/314889 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=ca501cba929 60d0d9cffc346eb d47d39fbce32e8
Committed: https:/
Submitter: Jenkins
Branch: master
commit ca501cba92960d0 d9cffc346ebd47d 39fbce32e8
Author: Jamie Lennox <email address hidden>
Date: Wed May 4 17:10:40 2016 +1000
Use oslo.context features
In an effort to standardize policy and authentication values
oslo.context has new features such as from_environ which constructs a
standard oslo.context object from the environment variables created by
auth_token middleware and to_policy_values which emit a standard
credentials target for writing common policy files across services.
Use these standard functions when dealing with contexts and policy in
glance.
Closes-Bug: #1602081 80d6c6914b2c934 6a17a0ed489
Change-Id: I40582cb34818b9