1
<?xml version="1.0" encoding="UTF-8"?>
2
<?xml-stylesheet type="text/xsl" href="../xslt/schema.xslt"?>
4
<!-- (C) 2011 OpenStack LLC., All Rights Reserved -->
7
elementFormDefault="qualified"
8
attributeFormDefault="unqualified"
9
xmlns="http://www.w3.org/2001/XMLSchema"
10
xmlns:identity="http://docs.openstack.org/identity/api/v2.0"
11
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
12
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
13
xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
14
xmlns:atom="http://www.w3.org/2005/Atom"
15
targetNamespace="http://docs.openstack.org/identity/api/v2.0"
17
<include schemaLocation="roles.xsd"/>
18
<include schemaLocation="user.xsd"/>
21
<element name="access" type="identity:AuthenticateResponse"/>
23
<!-- Complex Types -->
24
<complexType name="Token">
26
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
28
A token is an arbitrary bit of text that is used to access
29
resources. Each token has a scope which describes which
30
resources are accessible with it. A token may be
31
revoked at anytime and is valid for a finite duration.
34
While Keystone supports token-based authentication in this release,
35
the intention is for it to support additional protocols in the
36
future. The desire is for it to be an integration service, and not
37
a full-fledged identity store and management solution.
43
<xsdxt:code type="application/xml" href="../samples/token.xml" />
46
<xsdxt:code type="application/json" href="../samples/token.json" />
52
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
54
<attribute name="expires" type="xsd:dateTime" use="required"/>
55
<attribute name="id" type="xsd:string" use="required"/>
56
<anyAttribute namespace="##other" processContents="lax"/>
59
<complexType name="AuthenticateResponse">
61
<element name="token" type="identity:Token"/>
62
<element name="user" type="identity:UserForAuthenticateResponse"/>
63
<element name="serviceCatalog" type="identity:ServiceCatalog"/>
64
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
66
<anyAttribute namespace="##other" processContents="lax"/>
69
<complexType name="UserForAuthenticateResponse">
71
<element name="roles" type="identity:RoleList" />
72
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
74
<attribute name="username" type="xsd:string"/>
75
<anyAttribute namespace="##other" processContents="lax"/>
77
<complexType name="ServiceCatalog">
79
<xsd:documentation xml:lang="EN" xmlns="http://www.w3.org/1999/xhtml">
81
The service catalog lists the services you have access to
85
We optimized for future flexibility around the hierarchy. So we
86
left the design as a flat list of endpoints with attributes and the
87
consumer can categorize as they need.
88
This results in potential duplication (such as with the version/@list)
89
but we acceopt that normalization cost in order to not force an
90
artificial hierarchy (suchas on region, which can be optional).
97
<xsdxt:code type="application/xml" href="../samples/services.xml" />
100
<xsdxt:code type="application/json" href="../samples/services.json" />
106
<element name="service" type="identity:ServiceCategory" minOccurs="1" maxOccurs="unbounded">
110
xmlns="http://www.w3.org/1999/xhtml">
118
<anyAttribute namespace="##other" processContents="lax"/>
120
<complexType name="ServiceCategory">
122
<element name="endpoint" type="identity:EndpointForService" minOccurs="1" maxOccurs="unbounded">
126
xmlns="http://www.w3.org/1999/xhtml">
134
<attribute name="type" type="xsd:string" use="required">
138
xmlns="http://www.w3.org/1999/xhtml">
140
The OpenStack-registered type (e.g. 'compute', 'object-store', etc).
145
<attribute name="name" type="xsd:string" use="optional">
149
xmlns="http://www.w3.org/1999/xhtml">
151
The commercial service name (e.g. 'My Nova Cloud Servers').
156
<anyAttribute namespace="##other" processContents="lax"/>
158
<complexType name="EndpointForService">
159
<attribute name="region" type="xsd:string" use="optional">
163
xmlns="http://www.w3.org/1999/xhtml">
165
The name of the region where the endpoint
166
lives. Example: airport codes; LHR (UK),
172
<attribute name="publicURL" type="xsd:anyURI" use="required">
176
xmlns="http://www.w3.org/1999/xhtml">
178
The publically accessible service URL.
183
<attribute name="internalURL" type="xsd:anyURI" use="optional">
187
xmlns="http://www.w3.org/1999/xhtml">
189
A service URL, accessible only locally within that
190
cloud (generally over a high bandwidth, low latency,
191
free of charge link).
196
<attribute name="adminURL" type="xsd:anyURI" use="optional">
200
xmlns="http://www.w3.org/1999/xhtml">
202
An Admin URL (used for administration using privileged
203
calls). This may expose
204
additional functionality not found in the public and
210
<anyAttribute namespace="##other" processContents="lax"/>