-
Notifications
You must be signed in to change notification settings - Fork 2
/
auth_config_schema.json
114 lines (114 loc) · 3.03 KB
/
auth_config_schema.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"$id": "https://github.com/inab/OEB_level2_data_migration/configuration-json-schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Schema that defines the configuration file for OEB_level2_data_migration",
"type": "object",
"properties": {
"authURI": {
"title": "OpenID Connect auth URI",
"description": "OpenID Connect authorization URI to the token endpoint",
"type": "string",
"format": "uri",
"minLength": 1
},
"clientId": {
"title": "OpenID Connect client id",
"description": "The client id registered at OpenID Connect server",
"type": "string",
"minLength": 1
},
"user": {
"title": "Username",
"description": "User to be used to request an OpenID access token",
"type": "string",
"minLength": 1
},
"pass": {
"title": "Password",
"description": "password to be used to request an OpenID access token",
"type": "string",
"minLength": 1
},
"storageServer": {
"title": "Storage server configuration options",
"description": "Perdurable storage server (B2SHARE, Zenodo) configuration options",
"type": "object",
"properties": {
"type": {
"title": "Type of storage server",
"description": "Type of storage server ('b2share' right now)",
"type": "string",
"minLength": 1,
"examples": [
"b2share"
]
},
"community": {
"title": "Community id",
"description": "In the case of B2SHARE, the community id (its UUID) where the dataset bundle will be hosted",
"type": "string"
},
"token": {
"title": "The submission token needed to obtain the authorization",
"description": "The submission token needed to obtain the authorization",
"type": "string",
"minLength": 1
},
"endpoint": {
"title": "Storage endpoint",
"description": "Storage endpoint used to submit the assessment dataset to a perdurable storage which is able to provide a persistent id (e.g. a DOI)",
"type": "string",
"format": "uri",
"minLength": 1
}
},
"required": [
"type",
"token",
"endpoint"
],
"additionalProperties": true
},
"graphqlURI": {
"title": "GraphQL query endpoint",
"description": "GraphQL query endpoint used to query and fetch the different datasets and events",
"type": "string",
"format": "uri",
"minLength": 1
},
"accessURI": {
"title": "OpenEBench access endpoint",
"description": "This endpoint is used to query existing identifiers, needed for validations",
"oneOf": [
{
"type": "string",
"format": "uri",
"minLength": 1
},
{
"type": "array",
"items": {
"type": "string",
"format": "uri",
"minLength": 1
},
"minItems": 1
}
]
},
"submissionURI": {
"title": "OpenEBench submission endpoint",
"description": "This endpoint is used to stage-in the datasets and events",
"type": "string",
"format": "uri",
"minLength": 1
}
},
"required": [
"storageServer",
"graphqlURI",
"submissionURI",
"accessURI"
],
"additionalProperties": false
}