- Check that a token is valid and that it belongs to a particular user
+ Check that a token is valid and that it belongs to a supplied tenant
and return the permissions relevant to a particular client.
@@ -264,7 +264,7 @@
- Check that a token is valid and that it belongs to a particular user
+ Check that a token is valid and that it belongs to a particular tenant
(For performance).
diff --git a/keystone/content/common/samples/credentials.json b/keystone/content/common/samples/credentials.json
new file mode 100644
index 00000000..66f77cfa
--- /dev/null
+++ b/keystone/content/common/samples/credentials.json
@@ -0,0 +1,13 @@
+{
+ "credentials": {
+ "values": [
+ {
+ "passwordCredentials": {
+ "username": "test_user",
+ "password": "mypass"
+ }
+ }
+ ],
+ "links": []
+ }
+}
diff --git a/keystone/content/common/samples/credentials.xml b/keystone/content/common/samples/credentials.xml
new file mode 100644
index 00000000..1d6a7cb1
--- /dev/null
+++ b/keystone/content/common/samples/credentials.xml
@@ -0,0 +1,5 @@
+
+
+
+
\ No newline at end of file
diff --git a/keystone/content/common/samples/endpointTemplates.json b/keystone/content/common/samples/endpointTemplates.json
index adf7fa63..f7638570 100644
--- a/keystone/content/common/samples/endpointTemplates.json
+++ b/keystone/content/common/samples/endpointTemplates.json
@@ -1,54 +1,61 @@
{
-"OS-KSCATALOG:endpointsTemplates": [
- {
- "id": 1,
- "region": "North",
- "global": true,
- "type": "compute",
- "publicURL": "https://compute.north.public.com/v1",
- "internalURL": "https://compute.north.internal.com/v1",
- "versionId": "1",
- "versionInfo": "https://compute.north.public.com/v1/",
- "versionList": "https://compute.north.public.com/",
- "enabled": true
- }, {
- "id": 2,
- "region": "South",
- "type": "compute",
- "publicURL": "https://compute.south.public.com/v1",
- "internalURL": "https://compute.south.internal.com/v1",
- "versionId": "1",
- "versionInfo": "https://compute.south.public.com/v1/",
- "versionList": "https://compute.south.public.com/",
- "enabled": false
- }, {
- "id": 3,
- "region": "North",
- "global": true,
- "type": "object-store",
- "publicURL": "https://object-store.north.public.com/v1.0",
- "versionId": "1.0",
- "versionInfo": "https://object-store.north.public.com/v1.0/",
- "versionList": "https://object-store.north.public.com/",
- "enabled": true
- }, {
- "id": 4,
- "region": "South",
- "type": "object-store",
- "publicURL": "https://object-store.south.public.com/v2",
- "versionId": "2",
- "versionInfo": "https://object-store.south.public.com/v2/",
- "versionList": "https://object-store.south.public.com/",
- "enabled": true
- }, {
- "id": 5,
- "global": true,
- "type": "OS-DNS:DNS",
- "publicURL": "https://dns.public.com/v3.2",
- "versionId": "1.0",
- "versionInfo": "https://dns.public.com/v1.0/",
- "versionList": "https://dns.public.com/",
- "enabled": true
+ "OS-KSCATALOG:endpointsTemplates": {
+ "values": [
+ {
+ "id": 1,
+ "region": "North",
+ "global": true,
+ "type": "compute",
+ "publicURL": "https://compute.north.public.com/v1",
+ "internalURL": "https://compute.north.internal.com/v1",
+ "versionId": "1",
+ "versionInfo": "https://compute.north.public.com/v1/",
+ "versionList": "https://compute.north.public.com/",
+ "enabled": true
+ },
+ {
+ "id": 2,
+ "region": "South",
+ "type": "compute",
+ "publicURL": "https://compute.south.public.com/v1",
+ "internalURL": "https://compute.south.internal.com/v1",
+ "versionId": "1",
+ "versionInfo": "https://compute.south.public.com/v1/",
+ "versionList": "https://compute.south.public.com/",
+ "enabled": false
+ },
+ {
+ "id": 3,
+ "region": "North",
+ "global": true,
+ "type": "object-store",
+ "publicURL": "https://object-store.north.public.com/v1.0",
+ "versionId": "1.0",
+ "versionInfo": "https://object-store.north.public.com/v1.0/",
+ "versionList": "https://object-store.north.public.com/",
+ "enabled": true
+ },
+ {
+ "id": 4,
+ "region": "South",
+ "type": "object-store",
+ "publicURL": "https://object-store.south.public.com/v2",
+ "versionId": "2",
+ "versionInfo": "https://object-store.south.public.com/v2/",
+ "versionList": "https://object-store.south.public.com/",
+ "enabled": true
+ },
+ {
+ "id": 5,
+ "global": true,
+ "type": "OS-DNS:DNS",
+ "publicURL": "https://dns.public.com/v3.2",
+ "versionId": "1.0",
+ "versionInfo": "https://dns.public.com/v1.0/",
+ "versionList": "https://dns.public.com/",
+ "enabled": true
+ }
+ ],
+ "links": []
}
- ]
}
diff --git a/keystone/content/common/samples/norequestbody.txt b/keystone/content/common/samples/norequestbody.txt
new file mode 100644
index 00000000..c6a777d5
--- /dev/null
+++ b/keystone/content/common/samples/norequestbody.txt
@@ -0,0 +1 @@
+This operation does not require a request body.
diff --git a/keystone/content/common/samples/noresponsebody.txt b/keystone/content/common/samples/noresponsebody.txt
new file mode 100644
index 00000000..96e583f9
--- /dev/null
+++ b/keystone/content/common/samples/noresponsebody.txt
@@ -0,0 +1 @@
+This operation does not return a response body.
diff --git a/keystone/content/common/samples/passwordcredentials.json b/keystone/content/common/samples/passwordcredentials.json
new file mode 100644
index 00000000..f405fa79
--- /dev/null
+++ b/keystone/content/common/samples/passwordcredentials.json
@@ -0,0 +1,6 @@
+{
+ "passwordCredentials": {
+ "username": "test_user",
+ "password": "mypass"
+ }
+}
diff --git a/keystone/content/common/samples/passwordcredentials.xml b/keystone/content/common/samples/passwordcredentials.xml
new file mode 100644
index 00000000..86e4d9fe
--- /dev/null
+++ b/keystone/content/common/samples/passwordcredentials.xml
@@ -0,0 +1,4 @@
+
+
+
--
cgit