@digipair/skill-keycloak 0.32.7 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs.js +14 -7
- package/index.esm.js +14 -7
- package/libs/engine/src/lib/alias.interface.d.ts +9 -0
- package/libs/engine/src/lib/engine.d.ts +1 -1
- package/package.json +1 -1
- package/schema.en.json +0 -377
package/index.cjs.js
CHANGED
@@ -23523,14 +23523,14 @@ function indent(str, spaces) {
|
|
23523
23523
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23524
23524
|
// match is required
|
23525
23525
|
if (!match) {
|
23526
|
-
return
|
23526
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23527
23527
|
v: nextMatch1
|
23528
23528
|
};
|
23529
23529
|
}
|
23530
23530
|
var token = match.token, offset = match.offset;
|
23531
23531
|
i1 += offset;
|
23532
23532
|
if (token === " ") {
|
23533
|
-
return
|
23533
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23534
23534
|
}
|
23535
23535
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
23536
23536
|
token
|
@@ -23549,7 +23549,7 @@ function indent(str, spaces) {
|
|
23549
23549
|
if (contextKeys.some(function(el) {
|
23550
23550
|
return el.startsWith(name);
|
23551
23551
|
})) {
|
23552
|
-
return
|
23552
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23553
23553
|
}
|
23554
23554
|
if (dateTimeIdentifiers.some(function(el) {
|
23555
23555
|
return el === name;
|
@@ -23568,9 +23568,9 @@ function indent(str, spaces) {
|
|
23568
23568
|
if (dateTimeIdentifiers.some(function(el) {
|
23569
23569
|
return el.startsWith(name);
|
23570
23570
|
})) {
|
23571
|
-
return
|
23571
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23572
23572
|
}
|
23573
|
-
return
|
23573
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23574
23574
|
v: nextMatch1
|
23575
23575
|
};
|
23576
23576
|
};
|
@@ -27360,7 +27360,8 @@ const globalInstance = typeof window === 'undefined' ? global : window;
|
|
27360
27360
|
var _globalInstance___DIGIPAIR_CONFIG__;
|
27361
27361
|
const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__) != null ? _globalInstance___DIGIPAIR_CONFIG__ : {
|
27362
27362
|
LIBRARIES: {},
|
27363
|
-
BASE_URL: 'https://cdn.jsdelivr.net/npm'
|
27363
|
+
BASE_URL: 'https://cdn.jsdelivr.net/npm',
|
27364
|
+
ALIAS: []
|
27364
27365
|
};
|
27365
27366
|
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
27366
27367
|
const isPinsSettings = (value)=>{
|
@@ -27397,7 +27398,13 @@ const applyTemplate = (value, context)=>{
|
|
27397
27398
|
};
|
27398
27399
|
const executePins = async (settingsOrigin, context = {})=>{
|
27399
27400
|
var _settings_conditions, _settings_conditions1;
|
27400
|
-
|
27401
|
+
let settings = await preparePinsSettings(settingsOrigin, context);
|
27402
|
+
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
27403
|
+
if (alias) {
|
27404
|
+
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
27405
|
+
settings
|
27406
|
+
});
|
27407
|
+
}
|
27401
27408
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27402
27409
|
const results = [];
|
27403
27410
|
for(let index = 0; index < settings.conditions.each.length; index++){
|
package/index.esm.js
CHANGED
@@ -23494,14 +23494,14 @@ function indent(str, spaces) {
|
|
23494
23494
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23495
23495
|
// match is required
|
23496
23496
|
if (!match) {
|
23497
|
-
return i = i1,
|
23497
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23498
23498
|
v: nextMatch1
|
23499
23499
|
};
|
23500
23500
|
}
|
23501
23501
|
var token = match.token, offset = match.offset;
|
23502
23502
|
i1 += offset;
|
23503
23503
|
if (token === " ") {
|
23504
|
-
return i = i1,
|
23504
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23505
23505
|
}
|
23506
23506
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
23507
23507
|
token
|
@@ -23520,7 +23520,7 @@ function indent(str, spaces) {
|
|
23520
23520
|
if (contextKeys.some(function(el) {
|
23521
23521
|
return el.startsWith(name);
|
23522
23522
|
})) {
|
23523
|
-
return i = i1,
|
23523
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23524
23524
|
}
|
23525
23525
|
if (dateTimeIdentifiers.some(function(el) {
|
23526
23526
|
return el === name;
|
@@ -23539,9 +23539,9 @@ function indent(str, spaces) {
|
|
23539
23539
|
if (dateTimeIdentifiers.some(function(el) {
|
23540
23540
|
return el.startsWith(name);
|
23541
23541
|
})) {
|
23542
|
-
return i = i1,
|
23542
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23543
23543
|
}
|
23544
|
-
return i = i1,
|
23544
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23545
23545
|
v: nextMatch1
|
23546
23546
|
};
|
23547
23547
|
};
|
@@ -27331,7 +27331,8 @@ const globalInstance = typeof window === 'undefined' ? global : window;
|
|
27331
27331
|
var _globalInstance___DIGIPAIR_CONFIG__;
|
27332
27332
|
const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__) != null ? _globalInstance___DIGIPAIR_CONFIG__ : {
|
27333
27333
|
LIBRARIES: {},
|
27334
|
-
BASE_URL: 'https://cdn.jsdelivr.net/npm'
|
27334
|
+
BASE_URL: 'https://cdn.jsdelivr.net/npm',
|
27335
|
+
ALIAS: []
|
27335
27336
|
};
|
27336
27337
|
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
27337
27338
|
const isPinsSettings = (value)=>{
|
@@ -27368,7 +27369,13 @@ const applyTemplate = (value, context)=>{
|
|
27368
27369
|
};
|
27369
27370
|
const executePins = async (settingsOrigin, context = {})=>{
|
27370
27371
|
var _settings_conditions, _settings_conditions1;
|
27371
|
-
|
27372
|
+
let settings = await preparePinsSettings(settingsOrigin, context);
|
27373
|
+
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
27374
|
+
if (alias) {
|
27375
|
+
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
27376
|
+
settings
|
27377
|
+
});
|
27378
|
+
}
|
27372
27379
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
27373
27380
|
const results = [];
|
27374
27381
|
for(let index = 0; index < settings.conditions.each.length; index++){
|
package/package.json
CHANGED
package/schema.en.json
DELETED
@@ -1,377 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"openapi": "3.0.0",
|
3
|
-
"info": {
|
4
|
-
"title": "@digipair/skill-keycloak",
|
5
|
-
"summary": "Display of secure web pages",
|
6
|
-
"description": "This skill encompasses the knowledge and use of web technologies necessary to develop and maintain websites secured by Keycloak.",
|
7
|
-
"version": "0.1.0",
|
8
|
-
"x-icon": "🔐"
|
9
|
-
},
|
10
|
-
"paths": {
|
11
|
-
"/executeFactory": {
|
12
|
-
"post": {
|
13
|
-
"summary": "In the factory",
|
14
|
-
"description": "Execution of a list of capabilities in the factory",
|
15
|
-
"tags": ["web"],
|
16
|
-
"metadata": [],
|
17
|
-
"parameters": [
|
18
|
-
{
|
19
|
-
"name": "execute",
|
20
|
-
"summary": "Execute",
|
21
|
-
"required": true,
|
22
|
-
"description": "List of capabilities to execute",
|
23
|
-
"schema": {
|
24
|
-
"type": "array",
|
25
|
-
"items": {
|
26
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
27
|
-
}
|
28
|
-
}
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"name": "secured",
|
32
|
-
"summary": "Secured",
|
33
|
-
"required": false,
|
34
|
-
"description": "Secures execution via a Keycloak token",
|
35
|
-
"schema": {
|
36
|
-
"type": "boolean"
|
37
|
-
}
|
38
|
-
}
|
39
|
-
]
|
40
|
-
}
|
41
|
-
},
|
42
|
-
"/login": {
|
43
|
-
"post": {
|
44
|
-
"summary": "User authentication",
|
45
|
-
"description": "User authentication on the website via the Keycloak server",
|
46
|
-
"tags": ["web"],
|
47
|
-
"metadata": [],
|
48
|
-
"parameters": []
|
49
|
-
}
|
50
|
-
},
|
51
|
-
"/logout": {
|
52
|
-
"post": {
|
53
|
-
"summary": "User logout",
|
54
|
-
"description": "User logout from the website via the Keycloak server",
|
55
|
-
"tags": ["web"],
|
56
|
-
"metadata": [],
|
57
|
-
"parameters": []
|
58
|
-
}
|
59
|
-
}
|
60
|
-
},
|
61
|
-
"components": {
|
62
|
-
"schemas": {
|
63
|
-
"SecuredInput": {
|
64
|
-
"type": "object",
|
65
|
-
"tags": ["boost"],
|
66
|
-
"summary": "Secure input",
|
67
|
-
"properties": {
|
68
|
-
"prompt": {
|
69
|
-
"type": "boolean"
|
70
|
-
},
|
71
|
-
"required": {
|
72
|
-
"type": "boolean"
|
73
|
-
},
|
74
|
-
"selector": {
|
75
|
-
"type": "string"
|
76
|
-
},
|
77
|
-
"url": {
|
78
|
-
"type": "string"
|
79
|
-
},
|
80
|
-
"inputs": {
|
81
|
-
"type": "array",
|
82
|
-
"items": {
|
83
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
84
|
-
}
|
85
|
-
}
|
86
|
-
},
|
87
|
-
"required": []
|
88
|
-
},
|
89
|
-
"SecuredStep": {
|
90
|
-
"type": "object",
|
91
|
-
"tags": ["boost"],
|
92
|
-
"summary": "Step",
|
93
|
-
"properties": {
|
94
|
-
"name": {
|
95
|
-
"summary": "Step name",
|
96
|
-
"type": "string"
|
97
|
-
},
|
98
|
-
"execute": {
|
99
|
-
"summary": "Actions to execute",
|
100
|
-
"type": "array",
|
101
|
-
"items": {
|
102
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
103
|
-
}
|
104
|
-
}
|
105
|
-
},
|
106
|
-
"required": ["name", "execute"]
|
107
|
-
}
|
108
|
-
}
|
109
|
-
},
|
110
|
-
"x-scene-blocks": {
|
111
|
-
"/page": {
|
112
|
-
"summary": "Secure web page",
|
113
|
-
"description": "Display of a web page secured by Keycloak.",
|
114
|
-
"tags": ["web", "service"],
|
115
|
-
"metadata": [],
|
116
|
-
"parameters": [
|
117
|
-
{
|
118
|
-
"name": "body",
|
119
|
-
"summary": "Content",
|
120
|
-
"required": true,
|
121
|
-
"description": "Content of the page",
|
122
|
-
"schema": {
|
123
|
-
"type": "array",
|
124
|
-
"items": {
|
125
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
126
|
-
}
|
127
|
-
}
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"name": "title",
|
131
|
-
"summary": "Title",
|
132
|
-
"required": false,
|
133
|
-
"description": "Title of the page",
|
134
|
-
"schema": {
|
135
|
-
"type": "string"
|
136
|
-
}
|
137
|
-
},
|
138
|
-
{
|
139
|
-
"name": "favicon",
|
140
|
-
"summary": "Page icon",
|
141
|
-
"required": false,
|
142
|
-
"description": "Icon of the page",
|
143
|
-
"schema": {
|
144
|
-
"type": "string"
|
145
|
-
}
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"name": "styleHtml",
|
149
|
-
"summary": "HTML CSS style",
|
150
|
-
"required": false,
|
151
|
-
"description": "CSS style of the HTML element",
|
152
|
-
"schema": {
|
153
|
-
"type": "string"
|
154
|
-
}
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"name": "styleBody",
|
158
|
-
"summary": "BODY CSS style",
|
159
|
-
"required": false,
|
160
|
-
"description": "CSS style of the BODY element",
|
161
|
-
"schema": {
|
162
|
-
"type": "string"
|
163
|
-
}
|
164
|
-
},
|
165
|
-
{
|
166
|
-
"name": "url",
|
167
|
-
"summary": "Keycloak address",
|
168
|
-
"required": false,
|
169
|
-
"description": "Address of the Keycloak server",
|
170
|
-
"schema": {
|
171
|
-
"type": "string"
|
172
|
-
}
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"name": "realm",
|
176
|
-
"summary": "Realm",
|
177
|
-
"required": false,
|
178
|
-
"description": "Realm of the Keycloak server",
|
179
|
-
"schema": {
|
180
|
-
"type": "string"
|
181
|
-
}
|
182
|
-
},
|
183
|
-
{
|
184
|
-
"name": "clientId",
|
185
|
-
"summary": "Client ID",
|
186
|
-
"required": false,
|
187
|
-
"description": "Client ID of the Keycloak server",
|
188
|
-
"schema": {
|
189
|
-
"type": "string"
|
190
|
-
}
|
191
|
-
},
|
192
|
-
{
|
193
|
-
"name": "factoryUrl",
|
194
|
-
"summary": "Factory address",
|
195
|
-
"required": false,
|
196
|
-
"description": "Address of the Digipair factory",
|
197
|
-
"schema": {
|
198
|
-
"type": "string"
|
199
|
-
}
|
200
|
-
},
|
201
|
-
{
|
202
|
-
"name": "factoryInitialize",
|
203
|
-
"summary": "During factory initialization",
|
204
|
-
"required": false,
|
205
|
-
"description": "Action triggered during factory initialization",
|
206
|
-
"schema": {
|
207
|
-
"type": "array",
|
208
|
-
"items": {
|
209
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
210
|
-
}
|
211
|
-
}
|
212
|
-
},
|
213
|
-
{
|
214
|
-
"name": "browserInitialize",
|
215
|
-
"summary": "During browser initialization",
|
216
|
-
"required": false,
|
217
|
-
"description": "Action triggered during browser initialization",
|
218
|
-
"schema": {
|
219
|
-
"type": "array",
|
220
|
-
"items": {
|
221
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
222
|
-
}
|
223
|
-
}
|
224
|
-
},
|
225
|
-
{
|
226
|
-
"name": "browserLoad",
|
227
|
-
"summary": "When the page is loaded",
|
228
|
-
"required": false,
|
229
|
-
"description": "Action triggered when the page is loaded in the browser",
|
230
|
-
"schema": {
|
231
|
-
"type": "array",
|
232
|
-
"items": {
|
233
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
234
|
-
}
|
235
|
-
}
|
236
|
-
},
|
237
|
-
{
|
238
|
-
"name": "unlogged",
|
239
|
-
"summary": "If the user is not authenticated",
|
240
|
-
"required": false,
|
241
|
-
"description": "Action triggered when the page is loaded in the browser if the user is not authenticated",
|
242
|
-
"schema": {
|
243
|
-
"type": "array",
|
244
|
-
"items": {
|
245
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
246
|
-
}
|
247
|
-
}
|
248
|
-
},
|
249
|
-
{
|
250
|
-
"name": "logged",
|
251
|
-
"summary": "If the user is authenticated",
|
252
|
-
"required": false,
|
253
|
-
"description": "Action triggered when the page is loaded in the browser if the user is authenticated",
|
254
|
-
"schema": {
|
255
|
-
"type": "array",
|
256
|
-
"items": {
|
257
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
258
|
-
}
|
259
|
-
}
|
260
|
-
}
|
261
|
-
]
|
262
|
-
},
|
263
|
-
"/service": {
|
264
|
-
"summary": "Secure web service",
|
265
|
-
"description": "Response to an HTTP call secured by Keycloak.",
|
266
|
-
"tags": ["service"],
|
267
|
-
"metadata": [],
|
268
|
-
"parameters": [
|
269
|
-
{
|
270
|
-
"name": "execute",
|
271
|
-
"summary": "Execute",
|
272
|
-
"required": true,
|
273
|
-
"description": "Commands to execute",
|
274
|
-
"schema": {
|
275
|
-
"type": "array",
|
276
|
-
"items": {
|
277
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
278
|
-
}
|
279
|
-
}
|
280
|
-
},
|
281
|
-
{
|
282
|
-
"name": "secured",
|
283
|
-
"summary": "Secured",
|
284
|
-
"required": false,
|
285
|
-
"description": "Access allowed only if a Keycloak token is provided",
|
286
|
-
"schema": {
|
287
|
-
"type": "string"
|
288
|
-
}
|
289
|
-
},
|
290
|
-
{
|
291
|
-
"name": "url",
|
292
|
-
"summary": "Keycloak address",
|
293
|
-
"required": false,
|
294
|
-
"description": "Address of the Keycloak server",
|
295
|
-
"schema": {
|
296
|
-
"type": "string"
|
297
|
-
}
|
298
|
-
},
|
299
|
-
{
|
300
|
-
"name": "realm",
|
301
|
-
"summary": "Realm",
|
302
|
-
"required": false,
|
303
|
-
"description": "Realm of the Keycloak server",
|
304
|
-
"schema": {
|
305
|
-
"type": "string"
|
306
|
-
}
|
307
|
-
}
|
308
|
-
]
|
309
|
-
},
|
310
|
-
"/boost": {
|
311
|
-
"summary": "Secure boost",
|
312
|
-
"description": "Boost offered by Digipair secured by Keycloak",
|
313
|
-
"tags": ["boost", "service"],
|
314
|
-
"metadata": [
|
315
|
-
{
|
316
|
-
"name": "selector",
|
317
|
-
"summary": "Selector",
|
318
|
-
"required": false,
|
319
|
-
"description": "CSS selector",
|
320
|
-
"schema": {
|
321
|
-
"type": "string"
|
322
|
-
}
|
323
|
-
},
|
324
|
-
{
|
325
|
-
"name": "url",
|
326
|
-
"summary": "RegEx Url",
|
327
|
-
"required": false,
|
328
|
-
"description": "RegEx url",
|
329
|
-
"schema": {
|
330
|
-
"type": "string"
|
331
|
-
}
|
332
|
-
}
|
333
|
-
],
|
334
|
-
"parameters": [
|
335
|
-
{
|
336
|
-
"name": "steps",
|
337
|
-
"summary": "Execute the following steps",
|
338
|
-
"required": true,
|
339
|
-
"description": "Execute the defined steps",
|
340
|
-
"schema": {
|
341
|
-
"type": "array",
|
342
|
-
"items": {
|
343
|
-
"$ref": "#/components/schemas/SecuredStep"
|
344
|
-
}
|
345
|
-
}
|
346
|
-
},
|
347
|
-
{
|
348
|
-
"name": "secured",
|
349
|
-
"summary": "Secured",
|
350
|
-
"required": false,
|
351
|
-
"description": "Access allowed only if a Keycloak token is provided",
|
352
|
-
"schema": {
|
353
|
-
"type": "string"
|
354
|
-
}
|
355
|
-
},
|
356
|
-
{
|
357
|
-
"name": "url",
|
358
|
-
"summary": "Keycloak address",
|
359
|
-
"required": false,
|
360
|
-
"description": "Address of the Keycloak server",
|
361
|
-
"schema": {
|
362
|
-
"type": "string"
|
363
|
-
}
|
364
|
-
},
|
365
|
-
{
|
366
|
-
"name": "realm",
|
367
|
-
"summary": "Realm",
|
368
|
-
"required": false,
|
369
|
-
"description": "Realm of the Keycloak server",
|
370
|
-
"schema": {
|
371
|
-
"type": "string"
|
372
|
-
}
|
373
|
-
}
|
374
|
-
]
|
375
|
-
}
|
376
|
-
}
|
377
|
-
}
|