python-openstackclient/openstackclient/identity
adrian-turjak 49f6032b69 Non-Admin can't list own projects
Due to a default Keystone policy until Newtown,
and the use of resource_find, non-admins are unable
to list their own projects.

This patch bypasses this problem while also introducing better
UX for non-admins wishing to get their project list.

'openstack project list' retains the default of 'list all projects'
but on a forbidden error will default instead to 'list my projects'.
This way for non-admins 'list my projects' feels like the default
without breaking the expected admin default.

Adding the '--my-projects' option allows admins to easily list their
own projects or allows non-admins to be explicit and bypass the
forbidden error fallback.

Change-Id: I1021276f69fbbf28e13e17c4e567d932fce7ed8b
Closes-Bug: #1627555
2017-03-20 14:40:56 +13:00
..
v2_0 Merge "Add sort support to project list" 2017-03-16 13:01:56 +00:00
v3 Non-Admin can't list own projects 2017-03-20 14:40:56 +13:00
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
client.py osc-lib: shell 2016-08-05 13:48:55 -05:00
common.py Add support for domain specific roles 2016-08-10 20:32:55 +00:00