summaryrefslogtreecommitdiff
path: root/keystone/api/roles.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove six usageVishakha Agarwal2020-01-301-6/+6
| | | | | | | | This repo does not support Python 2 anymore, so we don't need six for compatibility between Python2 and 3, convert six usage to Python 3 code. Change-Id: Icba56808f38277b27af2ae5aac4b8507dee71b3b
* Merge "Add hint back"Zuul2018-10-031-1/+1
|\
| * Add hint backwangxiyuan2018-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | When do Flask refactor, some list APIs missed "hints" for wrap_collection. Add them back for list resource so that filters can work as before Change-Id: If32ca8d798c95436f72aa55ac7060e8eb7540de7 Partial-Bug: #1776504
* | Add build_target arguement to enforcerGage Hugo2018-09-281-5/+5
|/ | | | | | | | | | This change adds in a new arguement "build_target" which takes in a passed function to build the enforement target after the authentication check. This is to avoid leaking existance data when determining scope. Change-Id: I9aab71dd0032d40aa2f2e088b529af08b112671f Partial-Bug: #1776504
* Fix RBACEnforcer get_member_from_driver mechanismMorgan Fainberg2018-09-101-4/+2
| | | | | | | | | | | | | | Correct an issue with the RBACEnforcer requiring 'member_name' instead of 'member_key' for the inferred lookup. Due to how flask works and that all views are instantiated on demand (and not accessible outside of the active method without a lot of extra introspection), the provider object now supports a "deferred" lookup mechanism. This mechanism leverages the descriptor construct and does the lookup of the provider api property and method at runtime. This, in essence, works like a "@classproperty" would. Change-Id: I264384dd521ea60ba6ee98652aaeb939f1a75521 Partial-Bug: #1776504
* Remove member_role_id/namewangxiyuan2018-08-311-7/+1
| | | | | | | | Remove depepated ``member_role_id`` and ``member_role_name`` config options. Change-Id: I4a29d52da8a7b97baa0cbc52b011b3225fe6ab54 bp: removed-as-of-stein
* Convert role_inferences API to flask native dispatchingMorgan Fainberg2018-08-131-32/+5
| | | | | | | Convert /v3/role_inferences API to flask native dispatching. Change-Id: I4a2719f27bb31437cbb0dea9f1379c9b3542c393 Partial-Bug: #1776504
* Convert Roles API to flask native dispatchingMorgan Fainberg2018-08-131-0/+332
Convert Roles and Implied Roles (all paths under /v3/roles) to flask native dispatching. This change does not convert /v3/role_inferences to flask native dispatching. Change-Id: I114380e96c6a2b3c167676fa1525e4470560b541 Partial-Bug: #1776504