-
Notifications
You must be signed in to change notification settings - Fork 45
/
Org.OData.Authorization.V1.xml
191 lines (167 loc) · 10.6 KB
/
Org.OData.Authorization.V1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?xml version="1.0" encoding="utf-8"?>
<!--
Technical Committee:
OASIS Open Data Protocol (OData) TC
https://www.oasis-open.org/committees/odata
Chairs:
- Ralf Handl ([email protected]), SAP SE
- Ram Jeyaraman ([email protected]), Microsoft
Editors:
- Ralf Handl ([email protected]), SAP SE
- Ram Jeyaraman ([email protected]), Microsoft
- Michael Pizzo ([email protected]), Microsoft
Additional artifacts:
This vocabulary is one component of a Work Product that also includes the following vocabulary components:
- OData Core Vocabulary. Latest version: https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml.
- OData Measures Vocabulary. Latest version: https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Measures.V1.xml.
- OData Capabilities Vocabulary. Latest version: https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml.
- OData Validation Vocabulary. Latest version: https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.xml.
- OData Aggregation Vocabulary. Latest version: https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Aggregation.V1.xml.
- OData Authorization Vocabulary. Latest version: https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Authorization.V1.xml.
Related work:
This vocabulary replaces or supersedes:
- None
This vocabulary is related to:
- OData Version 4.01 Part 1: Protocol. Latest version: http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html.
- OData Version 4.01 Part 2: URL Conventions. Latest version: http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html.
- OData Common Schema Definition Language (CSDL) JSON Representation Version 4.01. Latest version: http://docs.oasis-open.org/odata/odata-csdl-json/v4.01/odata-csdl-json-v4.01.html.
- OData Common Schema Definition Language (CSDL) XML Representation Version 4.01. Latest version: http://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/odata-csdl-xml-v4.01.html.
- OData JSON Format Version 4.01. Latest version: http://docs.oasis-open.org/odata/odata-json-format/v4.01/odata-json-format-v4.01.html.
- OData Extension for Data Aggregation Version 4.0. Latest version: http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/odata-data-aggregation-ext-v4.0.html.
Abstract:
This document contains terms for describing a web authorization flow.
-->
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml">
<edmx:Include Namespace="Org.OData.Core.V1" Alias="Core" />
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Org.OData.Authorization.V1" Alias="Authorization">
<Annotation Term="Core.Description" String="The Authorization Vocabulary provides terms for describing authorization requirements of the service" />
<Annotation Term="Core.Links">
<Collection>
<Record>
<PropertyValue Property="rel" String="latest-version" />
<PropertyValue Property="href" String="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Authorization.V1.xml" />
</Record>
<Record>
<PropertyValue Property="rel" String="alternate" />
<PropertyValue Property="href" String="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Authorization.V1.json" />
</Record>
<Record>
<PropertyValue Property="rel" String="describedby" />
<PropertyValue Property="href" String="https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Authorization.V1.md" />
</Record>
</Collection>
</Annotation>
<Term Name="SecuritySchemes" Type="Collection(Authorization.SecurityScheme)" Nullable="false" AppliesTo="EntityContainer">
<Annotation Term="Core.Description" String="At least one of the specified security schemes are required to make a request against the service" />
</Term>
<ComplexType Name="SecurityScheme">
<Property Name="Authorization" Type="Authorization.SchemeName" Nullable="false">
<Annotation Term="Core.Description" String="The name of a required authorization scheme" />
</Property>
<Property Name="RequiredScopes" Type="Collection(Edm.String)" Nullable="false">
<Annotation Term="Core.Description" String="The names of scopes required from this authorization scheme" />
</Property>
</ComplexType>
<Term Name="Authorizations" Type="Collection(Authorization.Authorization)" Nullable="false" AppliesTo="EntityContainer">
<Annotation Term="Core.Description" String="Lists the methods supported by the service to authorize access" />
</Term>
<ComplexType Name="Authorization" Abstract="true">
<Annotation Term="Core.Description" String="Base type for all Authorization types" />
<Property Name="Name" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Name that can be used to reference the authorization scheme" />
</Property>
<Property Name="Description" Type="Edm.String" Nullable="true">
<Annotation Term="Core.Description" String="Description of the authorization scheme" />
</Property>
</ComplexType>
<ComplexType Name="OpenIDConnect" BaseType="Authorization.Authorization">
<Property Name="IssuerUrl" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Issuer location for the OpenID Provider. Configuration information can be obtained by appending `/.well-known/openid-configuration` to this Url." />
<Annotation Term="Core.IsURL" />
</Property>
</ComplexType>
<ComplexType Name="Http" BaseType="Authorization.Authorization">
<Property Name="Scheme" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="HTTP Authorization scheme to be used in the Authorization header, as per RFC7235" />
</Property>
<Property Name="BearerFormat" Type="Edm.String" Nullable="true">
<Annotation Term="Core.Description" String="Format of the bearer token" />
</Property>
</ComplexType>
<ComplexType Name="OAuthAuthorization" BaseType="Authorization.Authorization" Abstract="true">
<Property Name="Scopes" Type="Collection(Authorization.AuthorizationScope)" Nullable="false">
<Annotation Term="Core.Description" String="Available scopes" />
</Property>
<Property Name="RefreshUrl" Type="Edm.String" Nullable="true">
<Annotation Term="Core.Description" String="Refresh Url" />
<Annotation Term="Core.IsURL" />
</Property>
</ComplexType>
<ComplexType Name="OAuth2ClientCredentials" BaseType="Authorization.OAuthAuthorization">
<Property Name="TokenUrl" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Token Url" />
<Annotation Term="Core.IsURL" />
</Property>
</ComplexType>
<ComplexType Name="OAuth2Implicit" BaseType="Authorization.OAuthAuthorization">
<Annotation Term="Core.Description" String="Security note: OAuth2 implicit grant is considered to be not secure and should not be used by clients, see [OAuth 2.0 Security Best Current Practice](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics.html#name-implicit-grant)." />
<Property Name="AuthorizationUrl" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Authorization URL" />
<Annotation Term="Core.IsURL" />
</Property>
</ComplexType>
<ComplexType Name="OAuth2Password" BaseType="Authorization.OAuthAuthorization">
<Property Name="TokenUrl" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Token Url" />
<Annotation Term="Core.IsURL" />
</Property>
</ComplexType>
<ComplexType Name="OAuth2AuthCode" BaseType="Authorization.OAuthAuthorization">
<Property Name="AuthorizationUrl" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Authorization URL" />
<Annotation Term="Core.IsURL" />
</Property>
<Property Name="TokenUrl" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Token Url" />
<Annotation Term="Core.IsURL" />
</Property>
</ComplexType>
<ComplexType Name="AuthorizationScope">
<Property Name="Scope" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Scope name" />
</Property>
<Property Name="Grant" Type="Edm.String" Nullable="true">
<Annotation Term="Core.Description" String="Identity that has access to the scope or can grant access to the scope." />
</Property>
<Property Name="Description" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="Description of the scope" />
</Property>
</ComplexType>
<ComplexType Name="ApiKey" BaseType="Authorization.Authorization">
<Property Name="KeyName" Type="Edm.String" Nullable="false">
<Annotation Term="Core.Description" String="The name of the header or query parameter" />
</Property>
<Property Name="Location" Type="Authorization.KeyLocation" Nullable="false">
<Annotation Term="Core.Description" String="Whether the API Key is passed in the header or as a query option" />
</Property>
</ComplexType>
<EnumType Name="KeyLocation">
<Member Name="Header">
<Annotation Term="Core.Description" String="API Key is passed in the header" />
</Member>
<Member Name="QueryOption">
<Annotation Term="Core.Description" String="API Key is passed as a query option" />
</Member>
<Member Name="Cookie">
<Annotation Term="Core.Description" String="API Key is passed as a cookie" />
</Member>
</EnumType>
<TypeDefinition Name="SchemeName" UnderlyingType="Edm.String">
<Annotation Term="Core.Description" String="The name of the authorization scheme." />
</TypeDefinition>
</Schema>
</edmx:DataServices>
</edmx:Edmx>