-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtd-security-oauth2-client-flow.json
More file actions
71 lines (71 loc) · 2.2 KB
/
td-security-oauth2-client-flow.json
File metadata and controls
71 lines (71 loc) · 2.2 KB
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
{
"title": "td-security-oauth2-client-flow",
"description": "For the client flow token MUST be included.",
"$schema ": "http://json-schema.org/draft/2019-09/schema#",
"is-complex": true,
"also": ["td-security-oauth2-client-flow-no-auth"],
"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"]
},
"token": {
"$ref": "#/definitions/url"
},
"refresh": {
"$ref": "#/definitions/url"
},
"scopes": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"flow": {
"type": "string",
"const": "client"
}
},
"required": ["scheme", "flow", "token"],
"not": {
"required": ["authorization"]
}
},
"then": {
"const": "td-security-oauth2-client-flow=pass"
}
},
"url": {
"type": "string"
}
}
}