-
Notifications
You must be signed in to change notification settings - Fork 6
/
security-context.json
91 lines (91 loc) · 2.08 KB
/
security-context.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
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
{
"$id": "https://www.eosc-life.eu/d7/WfExS-backend/Security-Context",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "WfExS-backend security context",
"description": "WfExS-backend security context file (EOSC-Life Demonstrator 7 JSON Schemas)",
"type": "object",
"definitions": {
"SecContext": {
"type": "object",
"oneOf": [
{
"properties": {
"username": {
"description": "The user name",
"type": "string",
"minLength": 1
},
"password": {
"description": "The user password associated to the username",
"type": "string",
"minLength": 0
}
},
"additionalProperties": true,
"required": [
"username",
"password"
]
},
{
"properties": {
"access_key": {
"type": "string",
"minLength": 1
},
"secret_key": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": true,
"required": [
"access_key",
"secret_key"
]
},
{
"properties": {
"token": {
"description": "The authentication token",
"type": "string",
"minLength": 1
},
"token_header": {
"description": "On HTTP, the authentication token is used to fill-in an 'Authentication: Bearer ' header. Sometimes authentication through tokens require using custom headers, like it happens with SevenBridges",
"type": "string",
"minLength": 1
}
},
"additionalProperties": true,
"required": [
"token"
]
}
],
"properties": {
"method": {
"type": "string",
"enum": [ "GET", "POST" ],
"default": "GET"
},
"headers": {
"description": "Custom headers to be used on the request",
"type": "object"
}
},
"minProperties": 1
}
},
"patternProperties": {
"^[^:;]+$": {
"title": "Security context by name",
"$ref": "#/definitions/SecContext"
},
"^[a-z][a-z0-9+.-]*:.*$": {
"title": "Security context by prefix",
"$ref": "#/definitions/SecContext"
}
},
"additionalProperties": false
}