From 5f4ed9b70555d8dcef3c4e824ec8637fae9a8f32 Mon Sep 17 00:00:00 2001 From: Yogeshwar Srikrishnan Date: Wed, 21 Sep 2011 16:45:36 -0500 Subject: Adding tenantid to user roles and endpoints. Change-Id: I7c468d3d0862a72195cc27dfbb907b4136eff0c0 --- keystone/content/common/samples/auth.json | 13 +++++++++++-- keystone/content/common/samples/auth.xml | 10 ++++++++-- keystone/content/common/samples/authwithgroups.json | 9 +++++++-- keystone/content/common/samples/authwithgroups.xml | 8 +++++--- keystone/content/common/samples/endpoint.json | 1 + keystone/content/common/samples/endpoint.xml | 1 + keystone/content/common/samples/endpoints.json | 5 +++++ keystone/content/common/samples/endpoints.xml | 6 ++++++ keystone/content/common/samples/validatetoken.json | 7 ++++++- keystone/content/common/samples/validatetoken.xml | 6 ++---- keystone/content/common/xsd/endpoints.xsd | 13 ++++++++++++- 11 files changed, 64 insertions(+), 15 deletions(-) diff --git a/keystone/content/common/samples/auth.json b/keystone/content/common/samples/auth.json index d18e8e6a..09863be6 100644 --- a/keystone/content/common/samples/auth.json +++ b/keystone/content/common/samples/auth.json @@ -1,5 +1,5 @@ { - "auth":{ + "access":{ "token":{ "id":"asdasdasd-adsasdads-asdasdasd-adsadsasd", "expires":"2010-11-01T03:32:15-05:00" @@ -10,7 +10,12 @@ "roles":[{ "id":"234", "name":"compute:admin" - } + }, + { + "id":"235", + "name":"object-store:admin", + "tenantId":"1" + } ], "roles_links":[] }, @@ -18,6 +23,7 @@ "name":"Cloud Servers", "type":"compute", "endpoints":[{ + "tenantId":"1", "publicURL":"https://compute.north.host/v1/1234", "internalURL":"https://compute.north.host/v1/1234", "region":"North", @@ -26,6 +32,7 @@ "versionList":"https://compute.north.host/" }, { + "tenantId":"2", "publicURL":"https://compute.north.host/v1.1/3456", "internalURL":"https://compute.north.host/v1.1/3456", "region":"North", @@ -40,6 +47,7 @@ "name":"Cloud Files", "type":"object-store", "endpoints":[{ + "tenantId":"11", "publicURL":"https://compute.north.host/v1/blah-blah", "internalURL":"https://compute.north.host/v1/blah-blah", "region":"South", @@ -48,6 +56,7 @@ "versionList":"uri" }, { + "tenantId":"2", "publicURL":"https://compute.north.host/v1.1/blah-blah", "internalURL":"https://compute.north.host/v1.1/blah-blah", "region":"South", diff --git a/keystone/content/common/samples/auth.xml b/keystone/content/common/samples/auth.xml index 62d7baf6..de188fee 100644 --- a/keystone/content/common/samples/auth.xml +++ b/keystone/content/common/samples/auth.xml @@ -6,22 +6,25 @@ xmlns="http://docs.openstack.org/identity/api/v2.0"> + + list="https://north.compute.public.com/" + tenantId="1"/> @@ -41,6 +45,7 @@ xmlns="http://docs.openstack.org/identity/api/v2.0"> list="https://north.object-store.public.com/" /> @@ -52,6 +57,7 @@ xmlns="http://docs.openstack.org/identity/api/v2.0"> - + - - + + + diff --git a/keystone/content/common/samples/endpoint.json b/keystone/content/common/samples/endpoint.json index 1f597408..e65fc36b 100644 --- a/keystone/content/common/samples/endpoint.json +++ b/keystone/content/common/samples/endpoint.json @@ -1,6 +1,7 @@ { "endpoint": { "id": 1, + "tenantId":1, "region": "North", "type": "compute", "publicURL": "https://compute.north.public.com/v1", diff --git a/keystone/content/common/samples/endpoint.xml b/keystone/content/common/samples/endpoint.xml index dc4b0111..cd09b24a 100644 --- a/keystone/content/common/samples/endpoint.xml +++ b/keystone/content/common/samples/endpoint.xml @@ -2,6 +2,7 @@ - - + + diff --git a/keystone/content/common/xsd/endpoints.xsd b/keystone/content/common/xsd/endpoints.xsd index 5f230761..acc82d72 100644 --- a/keystone/content/common/xsd/endpoints.xsd +++ b/keystone/content/common/xsd/endpoints.xsd @@ -14,7 +14,7 @@ xmlns:atom="http://www.w3.org/2005/Atom" targetNamespace="http://docs.openstack.org/identity/api/v2.0" > - + @@ -136,6 +136,17 @@ + + + +

+ Tenant id to which the endpoints belong. +

+
+
+
-- cgit