panko.api.rbac
Module¶Access Control Lists (ACL’s) control access the API server.
@
panko.api.rbac.
enforce
(policy_name, request)[source]¶Return the user and project the request should be limited to.
request – HTTP request
policy_name – the policy name to validate authz against.
@
panko.api.rbac.
get_limited_to
[source]¶Return the user and project the request should be limited to.
headers – HTTP headers dictionary
A tuple of (user, project), set to None if there’s no limit on
one of these.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.