-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtd-vocab-authorization--OAuth2SecurityScheme.json
63 lines (63 loc) · 1.96 KB
/
td-vocab-authorization--OAuth2SecurityScheme.json
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
{
"title": "td-vocab-authorization--OAuth2SecurityScheme",
"description": "authorization: URI of the authorization server. MAY be included. Type: anyURI.",
"$schema": "http://json-schema.org/draft-07/schema#",
"is-complex": true,
"type": "object",
"properties": {
"securityDefinitions": {
"type": "object",
"minProperties": 1,
"additionalProperties": {
"$ref": "#/definitions/securityScheme"
}
}
},
"required": ["securityDefinitions"],
"additionalProperties": true,
"definitions": {
"securityScheme": {
"if": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"proxy": {
"$ref": "#/definitions/url"
},
"scheme": {
"type": "string",
"enum": ["oauth2"]
},
"authorization": {
"$ref": "#/definitions/url"
},
"token": {
"$ref": "#/definitions/url"
},
"refresh": {
"$ref": "#/definitions/url"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"flow": {
"type": "string",
"enum": ["code"]
}
},
"required": ["scheme", "authorization"]
},
"then": {
"const": "td-vocab-authorization--OAuth2SecurityScheme=pass"
}
},
"url": {
"type": "string"
}
}
}