[Kimchi-devel] [PATCH 0/3 V2] authorization: Backend changes

alinefm at linux.vnet.ibm.com alinefm at linux.vnet.ibm.com
Tue Jul 15 19:44:26 UTC 2014


From: Aline Manera <alinefm at linux.vnet.ibm.com>

V1 -> V2:
- Add "access" elements to describe role/view for each tab
- Return a role map in /login
  For each tab, a role will be returned. That way we have more flexibility to
  change user role per tab
- Add "access" parameter to VM.lookup()
  As the user will have full access to the VM assigned to it, return
  "access=full" for all them

Aline Manera (3):
  authorization: Update /login to return user roles instead of sudo
    parameter
  authorization: Add "access" elements to tabs.xml to describe user view
  authorization: Add "access" parameter to VM resource

 config/ui/tabs.xml                   | 15 +++++++++++++++
 plugins/sample/ui/config/tab-ext.xml |  3 +++
 src/kimchi/auth.py                   | 19 ++++++++++++++-----
 src/kimchi/mockmodel.py              |  3 ++-
 src/kimchi/model/vms.py              |  3 ++-
 src/kimchi/utils.py                  | 15 +++++++++++++++
 tests/test_rest.py                   |  6 ++++++
 tests/utils.py                       |  6 +++---
 8 files changed, 60 insertions(+), 10 deletions(-)

-- 
1.9.3




More information about the Kimchi-devel mailing list