Unscoped federated user-specific commands

A federated user can authenticate with the v3unscopedsaml plugin and
list the domains and projects she is allowed to scope to.
This patch introduces the new commands 'federation domain list' and
'federation project list'.
Note that for these commands -and plugin- to be available, the lxml
library must be installed.

Change-Id: I2707b624befcfb0a01b40a094e12fd68a3ee7773
Co-Authored-By: Florent Flament <florent.flament-ext@cloudwatt.com>
This commit is contained in:
Matthieu Huin
2014-09-25 18:15:59 +02:00
committed by Marek Denis
parent ab5dad8bf0
commit 36ec334b6a
2 changed files with 4 additions and 0 deletions

View File

@@ -199,6 +199,7 @@ class FakeClientManager(object):
self.network = None
self.session = None
self.auth_ref = None
self.auth_plugin_name = None
class FakeModule(object):

View File

@@ -240,6 +240,9 @@ openstack.identity.v3 =
federation_protocol_set = openstackclient.identity.v3.federation_protocol:SetProtocol
federation_protocol_show = openstackclient.identity.v3.federation_protocol:ShowProtocol
federation_domain_list = openstackclient.identity.v3.unscoped_saml:ListAccessibleDomains
federation_project_list = openstackclient.identity.v3.unscoped_saml:ListAccessibleProjects
request_token_authorize = openstackclient.identity.v3.token:AuthorizeRequestToken
request_token_create = openstackclient.identity.v3.token:CreateRequestToken