-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconnector-spec.json
202 lines (202 loc) · 4.01 KB
/
connector-spec.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
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
192
193
194
195
196
197
198
199
200
201
202
{
"name": "discourse-connector",
"commands": [
"std:test-connection",
"std:account:create",
"std:account:read",
"std:account:list",
"std:account:update",
"std:account:delete",
"std:entitlement:list",
"std:entitlement:read",
"std:account:disable"
],
"sourceConfig": [
{
"type": "menu",
"label": "Configuration",
"items": [
{
"sectionTitle": "Base Configuration",
"type": "section",
"items": [
{
"key": "apiKey",
"type": "text",
"label": "API Key",
"required": true
},
{
"key": "apiUsername",
"type": "text",
"label": "API Username",
"required": true
},
{
"key": "baseUrl",
"type": "text",
"label": "Base URL",
"helpText": "Base URL of the Discourse instance",
"placeholder": "https://mydomain.com",
"required": true
},
{
"key": "primaryGroup",
"type": "text",
"label": "Primary Group",
"helpText": "The primary group that contains the users to be managed by this connector.",
"required": true
},
{
"key": "employeeIdFieldId",
"type": "text",
"label": "Employee Id Field Id",
"helpText": "The id of the employee Id field in the Discourse custom fields table",
"required": true
}
]
}
]
}
],
"accountSchema": {
"displayAttribute": "username",
"identityAttribute": "id",
"groupAttribute": "groups",
"attributes": [
{
"name": "username",
"type": "string",
"description": "The username of the account"
},
{
"name": "employeeId",
"type": "string",
"description": "The internal employee ID of the account used for correlation with internal hr systems"
},
{
"name": "id",
"type": "string",
"description": "The unique identifier of the account"
},
{
"name": "email",
"type": "string",
"description": "Email address of the account"
},
{
"name": "name",
"type": "string",
"description": "display name of the account"
},
{
"name": "title",
"type": "string",
"description": "The title of the user account"
},
{
"name": "groups",
"type": "string",
"entitlement": true,
"managed": true,
"multi": true,
"description": "The groups the user belongs to"
}
]
},
"entitlementSchemas": [
{
"type": "group",
"displayAttribute": "name",
"identityAttribute": "id",
"attributes": [
{
"name": "id",
"type": "string",
"description": "Unique ID of the group and its name (ex. 1:admin)"
},
{
"name": "name",
"type": "string",
"description": "The name of the group (ex. admin)"
}
]
}
],
"accountCreateTemplate": {
"fields": [
{
"key": "email",
"label": "Email",
"type": "string",
"required": true,
"initialValue": {
"type": "identityAttribute",
"attributes": {
"name": "email"
}
}
},
{
"key": "employeeId",
"label": "Employee ID",
"type": "string",
"required": true,
"initialValue": {
"type": "identityAttribute",
"attributes": {
"name": "employeeID"
}
}
},
{
"key": "username",
"label": "Username",
"type": "string",
"required": true,
"initialValue": {
"type": "identityAttribute",
"attributes": {
"name": "uid"
}
}
},
{
"key": "name",
"label": "Name",
"type": "string",
"required": true,
"initialValue": {
"type": "identityAttribute",
"attributes": {
"name": "displayName"
}
}
},
{
"key": "password",
"label": "Password",
"type": "string",
"required": false,
"initialValue": {
"type": "generator",
"attributes": {
"name": "Create Password"
}
}
},
{
"key": "title",
"label": "Title",
"type": "string",
"required": false,
"initialValue": {
"type": "identityAttribute",
"attributes": {
"name": "jobTitle"
}
}
}
]
}
}