-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-elements.json
750 lines (750 loc) · 26.9 KB
/
custom-elements.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
{
"version": "experimental",
"tags": [
{
"name": "api-authorization-method",
"path": "./api-authorization-method.js",
"description": "An element that renders various authorization methods.\n\n## Development\n\nThe element mixes in multiple mixins from `src/` directory.\nEach mixin support an authorization method. When selection change (the `type`\nproperty) a render function from corresponding mixin is called.",
"attributes": [
{
"name": "descriptionOpened",
"description": "When set the \"description\" of the security definition is rendered.",
"type": "boolean"
},
{
"name": "type",
"description": "Authorization method type.\n\nSupported types are (case insensitive, spaces sensitive):\n\n- Basic\n- Client certificate\n- Digest\n- NTLM\n- OAuth 1\n- OAuth 2\n\nDepending on selected type different properties are used.\nFor example Basic type only uses `username` and `password` properties,\nwhile NTLM also uses `domain` property.\n\nSee readme file for detailed list of properties depending on selected type.",
"type": "string"
},
{
"name": "readOnly",
"description": "When set the editor is in read only mode.",
"type": "boolean"
},
{
"name": "disabled",
"description": "When set the inputs are disabled",
"type": "boolean"
},
{
"name": "compatibility",
"description": "Enables compatibility with Anypoint components.",
"type": "boolean"
},
{
"name": "outlined",
"description": "Enables Material Design outlined style",
"type": "boolean"
},
{
"name": "narrow",
"description": "Renders mobile friendly view.",
"type": "boolean"
},
{
"name": "username",
"type": "string"
},
{
"name": "password",
"type": "string"
},
{
"name": "redirectUri",
"type": "string"
},
{
"name": "accessTokenUri",
"type": "string"
},
{
"name": "authorizationUri",
"type": "string"
},
{
"name": "domain",
"description": "Authorization domain\n\nUsed in the following types:\n- NTLM",
"type": "string | undefined"
},
{
"name": "algorithm",
"description": "The algorithm used to hash the response for Digest authorization.\n\nIt can be either `MD5` or `MD5-sess`.\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "qop",
"description": "The quality of protection value for the digest response.\nEither '', 'auth' or 'auth-int'\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "nc",
"description": "Nonce count - increments with each request used with the same nonce\n\nUsed in the following types:\n- Digest",
"type": "number"
},
{
"name": "cnonce",
"description": "Client nonce\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "opaque",
"description": "A string of data specified by the server\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "response",
"description": "Hashed response to server challenge\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "httpMethod",
"description": "Request HTTP method\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "requestUrl",
"description": "Current request URL.\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "requestBody",
"description": "Current request body.\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "consumerKey",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "consumerSecret",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "token",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "tokenSecret",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "timestamp",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "nonce",
"description": "Server issued nonce for Digest authorization.\n\nUsed in the following types:\n- Digest\n- OAuth 1",
"type": "string"
},
{
"name": "realm",
"description": "Server issued realm for Digest authorization.\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "signatureMethod",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "requestTokenUri",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "authTokenMethod",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "authParamsLocation",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "grantType",
"description": "Selected authorization grand type.",
"type": "string"
},
{
"name": "clientId",
"description": "The client ID for the auth token.",
"type": "string"
},
{
"name": "clientSecret",
"description": "The client secret. It to be used when selected server flow.",
"type": "string"
},
{
"name": "preventCustomScopes",
"description": "If true then the `oauth2-scope-selector` will disallow to add a scope that is not\nin the `allowedScopes` list. Has no effect if the `allowedScopes` is not set.",
"type": "boolean"
},
{
"name": "accessToken",
"description": "When the user authorized the app it should be set to the token value.\nThis element do not perform authorization. Other elements must intercept\nthe token request event and perform the authorization.",
"type": "string"
},
{
"name": "tokenType",
"description": "By default it is \"bearer\" as the only one defined in OAuth 2.0 spec.\nIf the token response contains `tokenType` property then this value is updated.",
"type": "string | undefined"
},
{
"name": "advanced",
"description": "If set it renders authorization url, token url and scopes as advanced options\nwhich are then invisible by default. User can oen setting using the UI.",
"type": "boolean | undefined"
},
{
"name": "advancedOpened",
"description": "If true then the advanced options are opened.",
"type": "boolean | undefined"
},
{
"name": "noGrantType",
"description": "If set, the response type selector is hidden from the UI.",
"type": "boolean | undefined"
},
{
"name": "oauthDeliveryMethod",
"description": "Informs about what filed of the authenticated request the token property should be set.\nBy default the value is `header` which corresponds to the `authorization` by default,\nbut it is configured by the `deliveryName` property.\n\nThis can be used by the AMF model when the API spec defines where the access token should be\nput in the authenticated request.",
"type": "\"header\" | \"query\" | \"body\" | undefined",
"default": "\"header\""
},
{
"name": "oauthDeliveryName",
"description": "The name of the authenticated request property that carries the token.\nBy default it is `authorization` which corresponds to `header` value of the `deliveryMethod` property.\n\nBy setting both `deliveryMethod` and `deliveryName` you instruct the application (assuming it reads this values)\nwhere to put the authorization token.",
"type": "string | undefined",
"default": "\"authorization\""
},
{
"name": "baseUri",
"description": "The base URI to use to construct the correct URLs to the authorization endpoints.\n\nWhen the paths are relative then base URI is added to the path.\nRelative paths must start with '/'.\n\nNote, URL processing is happening internally in the component. The produced authorize event\nwill have base URI already applied.",
"type": "string | undefined"
},
{
"name": "noPkce",
"description": "When this property is set then the PKCE option is not rendered for the \n`authorization_code`. This is mainly meant to be used by the `api-authorization-method`\nto keep this control disabled and override generated settings when the API spec\nsays that the PKCE is supported.",
"type": "boolean | undefined"
},
{
"name": "pkce",
"description": "Whether or not the PKCE extension is enabled for this authorization configuration.\nNote, PKCE, per the spec, is only available for `authorization_code` grantType.",
"type": "boolean"
}
],
"properties": [
{
"name": "security",
"description": "A security model generated by the AMF parser."
},
{
"name": "descriptionOpened",
"attribute": "descriptionOpened",
"description": "When set the \"description\" of the security definition is rendered.",
"type": "boolean"
},
{
"name": "styles",
"type": "CSSResult"
},
{
"name": "type",
"attribute": "type",
"description": "Authorization method type.\n\nSupported types are (case insensitive, spaces sensitive):\n\n- Basic\n- Client certificate\n- Digest\n- NTLM\n- OAuth 1\n- OAuth 2\n\nDepending on selected type different properties are used.\nFor example Basic type only uses `username` and `password` properties,\nwhile NTLM also uses `domain` property.\n\nSee readme file for detailed list of properties depending on selected type.",
"type": "string"
},
{
"name": "readOnly",
"attribute": "readOnly",
"description": "When set the editor is in read only mode.",
"type": "boolean"
},
{
"name": "disabled",
"attribute": "disabled",
"description": "When set the inputs are disabled",
"type": "boolean"
},
{
"name": "compatibility",
"attribute": "compatibility",
"description": "Enables compatibility with Anypoint components.",
"type": "boolean"
},
{
"name": "outlined",
"attribute": "outlined",
"description": "Enables Material Design outlined style",
"type": "boolean"
},
{
"name": "narrow",
"attribute": "narrow",
"description": "Renders mobile friendly view.",
"type": "boolean"
},
{
"name": "authorizing",
"description": "Used in the following types:\n- OAuth 1\n- OAuth 2",
"type": "boolean | null"
},
{
"name": "username",
"attribute": "username",
"type": "string"
},
{
"name": "password",
"attribute": "password",
"type": "string"
},
{
"name": "redirectUri",
"attribute": "redirectUri",
"type": "string"
},
{
"name": "accessTokenUri",
"attribute": "accessTokenUri",
"type": "string"
},
{
"name": "authorizationUri",
"attribute": "authorizationUri",
"type": "string"
},
{
"name": "onchange",
"type": "EventListener | null"
},
{
"name": "eventsTarget",
"description": "By default the element listens on the `window` object. If this value is set,\nthen all events listeners will be attached to this object instead of `window`.",
"type": "EventTarget"
},
{
"name": "domain",
"attribute": "domain",
"description": "Authorization domain\n\nUsed in the following types:\n- NTLM",
"type": "string | undefined"
},
{
"name": "algorithm",
"attribute": "algorithm",
"description": "The algorithm used to hash the response for Digest authorization.\n\nIt can be either `MD5` or `MD5-sess`.\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "qop",
"attribute": "qop",
"description": "The quality of protection value for the digest response.\nEither '', 'auth' or 'auth-int'\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "nc",
"attribute": "nc",
"description": "Nonce count - increments with each request used with the same nonce\n\nUsed in the following types:\n- Digest",
"type": "number"
},
{
"name": "cnonce",
"attribute": "cnonce",
"description": "Client nonce\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "opaque",
"attribute": "opaque",
"description": "A string of data specified by the server\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "response",
"attribute": "response",
"description": "Hashed response to server challenge\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "httpMethod",
"attribute": "httpMethod",
"description": "Request HTTP method\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "requestUrl",
"attribute": "requestUrl",
"description": "Current request URL.\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "requestBody",
"attribute": "requestBody",
"description": "Current request body.\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "consumerKey",
"attribute": "consumerKey",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "consumerSecret",
"attribute": "consumerSecret",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "token",
"attribute": "token",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "tokenSecret",
"attribute": "tokenSecret",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "timestamp",
"attribute": "timestamp",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "nonce",
"attribute": "nonce",
"description": "Server issued nonce for Digest authorization.\n\nUsed in the following types:\n- Digest\n- OAuth 1",
"type": "string"
},
{
"name": "realm",
"attribute": "realm",
"description": "Server issued realm for Digest authorization.\n\nUsed in the following types:\n- Digest",
"type": "string"
},
{
"name": "signatureMethod",
"attribute": "signatureMethod",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "requestTokenUri",
"attribute": "requestTokenUri",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "authTokenMethod",
"attribute": "authTokenMethod",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "authParamsLocation",
"attribute": "authParamsLocation",
"description": "Used by OAuth 1",
"type": "string"
},
{
"name": "signatureMethods",
"description": "Used by OAuth 1",
"type": "string[]"
},
{
"name": "isCustomGrantType",
"type": "boolean"
},
{
"name": "clientIdRequired",
"type": "boolean"
},
{
"name": "oauth2ClientSecretRendered",
"type": "boolean"
},
{
"name": "oauth2AuthorizationUriRendered",
"type": "boolean"
},
{
"name": "oauth2AccessTokenUriRendered",
"type": "boolean"
},
{
"name": "oauth2PasswordRendered",
"type": "boolean"
},
{
"name": "grantType",
"attribute": "grantType",
"description": "Selected authorization grand type.",
"type": "string"
},
{
"name": "clientId",
"attribute": "clientId",
"description": "The client ID for the auth token.",
"type": "string"
},
{
"name": "clientSecret",
"attribute": "clientSecret",
"description": "The client secret. It to be used when selected server flow.",
"type": "string"
},
{
"name": "scopes",
"description": "List of user selected scopes.\nIt can be pre-populated with list of scopes (array of strings).",
"type": "string[]"
},
{
"name": "allowedScopes",
"description": "List of pre-defined scopes to choose from. It will be passed to the `oauth2-scope-selector`\nelement.",
"type": "string[]"
},
{
"name": "preventCustomScopes",
"attribute": "preventCustomScopes",
"description": "If true then the `oauth2-scope-selector` will disallow to add a scope that is not\nin the `allowedScopes` list. Has no effect if the `allowedScopes` is not set.",
"type": "boolean"
},
{
"name": "accessToken",
"attribute": "accessToken",
"description": "When the user authorized the app it should be set to the token value.\nThis element do not perform authorization. Other elements must intercept\nthe token request event and perform the authorization.",
"type": "string"
},
{
"name": "tokenType",
"attribute": "tokenType",
"description": "By default it is \"bearer\" as the only one defined in OAuth 2.0 spec.\nIf the token response contains `tokenType` property then this value is updated.",
"type": "string | undefined"
},
{
"name": "grantTypes",
"description": "Currently available response types.",
"type": "GrantType[] | undefined"
},
{
"name": "advanced",
"attribute": "advanced",
"description": "If set it renders authorization url, token url and scopes as advanced options\nwhich are then invisible by default. User can oen setting using the UI.",
"type": "boolean | undefined"
},
{
"name": "advancedOpened",
"attribute": "advancedOpened",
"description": "If true then the advanced options are opened.",
"type": "boolean | undefined"
},
{
"name": "noGrantType",
"attribute": "noGrantType",
"description": "If set, the response type selector is hidden from the UI.",
"type": "boolean | undefined"
},
{
"name": "oauthDeliveryMethod",
"attribute": "oauthDeliveryMethod",
"description": "Informs about what filed of the authenticated request the token property should be set.\nBy default the value is `header` which corresponds to the `authorization` by default,\nbut it is configured by the `deliveryName` property.\n\nThis can be used by the AMF model when the API spec defines where the access token should be\nput in the authenticated request.",
"type": "\"header\" | \"query\" | \"body\" | undefined",
"default": "\"header\""
},
{
"name": "oauthDeliveryName",
"attribute": "oauthDeliveryName",
"description": "The name of the authenticated request property that carries the token.\nBy default it is `authorization` which corresponds to `header` value of the `deliveryMethod` property.\n\nBy setting both `deliveryMethod` and `deliveryName` you instruct the application (assuming it reads this values)\nwhere to put the authorization token.",
"type": "string | undefined",
"default": "\"authorization\""
},
{
"name": "baseUri",
"attribute": "baseUri",
"description": "The base URI to use to construct the correct URLs to the authorization endpoints.\n\nWhen the paths are relative then base URI is added to the path.\nRelative paths must start with '/'.\n\nNote, URL processing is happening internally in the component. The produced authorize event\nwill have base URI already applied.",
"type": "string | undefined"
},
{
"name": "lastErrorMessage",
"description": "The error message returned by the authorization library.\nIt renders error dialog when an error ocurred. \nIt is automatically cleared when the user request the token again.",
"type": "string | undefined"
},
{
"name": "noPkce",
"attribute": "noPkce",
"description": "When this property is set then the PKCE option is not rendered for the \n`authorization_code`. This is mainly meant to be used by the `api-authorization-method`\nto keep this control disabled and override generated settings when the API spec\nsays that the PKCE is supported.",
"type": "boolean | undefined"
},
{
"name": "pkce",
"attribute": "pkce",
"description": "Whether or not the PKCE extension is enabled for this authorization configuration.\nNote, PKCE, per the spec, is only available for `authorization_code` grantType.",
"type": "boolean"
},
{
"name": "ns",
"description": "A namespace for AMF model.",
"type": "Namespace"
},
{
"name": "amf",
"description": "Generated AMF json/ld model form the API spec.\nThe element assumes the object of the first array item to be a\ntype of `\"http://raml.org/vocabularies/document#Document`\non AMF vocabulary.\n\nIt is only usefult for the element to resolve references.",
"type": "object | object[] | undefined"
}
],
"events": [
{
"name": "change",
"description": "When authorization state change"
}
]
},
{
"name": "api-authorization",
"path": "./api-authorization.js",
"description": "An element that renders various authorization methods.\n\n## Development\n\nThe element mixes in multiple mixins from `src/` directory.\nEach mixin support an authorization method. When selection change (the `type`\nproperty) a render function from corresponding mixin is called.",
"attributes": [
{
"name": "selected",
"type": "number"
},
{
"name": "compatibility",
"type": "boolean"
},
{
"name": "outlined",
"type": "boolean"
},
{
"name": "readOnly",
"type": "boolean"
},
{
"name": "disabled",
"type": "boolean"
},
{
"name": "invalid",
"type": "boolean"
},
{
"name": "redirectUri",
"type": "string"
},
{
"name": "httpMethod",
"type": "string"
},
{
"name": "requestUrl",
"type": "string"
},
{
"name": "requestBody",
"type": "string"
}
],
"properties": [
{
"name": "styles",
"type": "CSSResult"
},
{
"name": "selected",
"attribute": "selected",
"type": "number"
},
{
"name": "security",
"description": "A security model generated by the AMF parser.",
"type": "array"
},
{
"name": "methods",
"type": "array"
},
{
"name": "compatibility",
"attribute": "compatibility",
"type": "boolean"
},
{
"name": "outlined",
"attribute": "outlined",
"type": "boolean"
},
{
"name": "readOnly",
"attribute": "readOnly",
"type": "boolean"
},
{
"name": "disabled",
"attribute": "disabled",
"type": "boolean"
},
{
"name": "invalid",
"attribute": "invalid",
"type": "boolean"
},
{
"name": "redirectUri",
"attribute": "redirectUri",
"type": "string"
},
{
"name": "httpMethod",
"attribute": "httpMethod",
"type": "string"
},
{
"name": "requestUrl",
"attribute": "requestUrl",
"type": "string"
},
{
"name": "requestBody",
"attribute": "requestBody",
"type": "string"
},
{
"name": "onchange",
"type": "EventListener"
},
{
"name": "selectedMethods",
"type": "array"
},
{
"name": "selectedSchemes",
"type": "array"
},
{
"name": "settings",
"type": "ApiAuthorizationSettings[]"
},
{
"name": "ns",
"description": "A namespace for AMF model.",
"type": "Namespace"
},
{
"name": "amf",
"description": "Generated AMF json/ld model form the API spec.\nThe element assumes the object of the first array item to be a\ntype of `\"http://raml.org/vocabularies/document#Document`\non AMF vocabulary.\n\nIt is only usefult for the element to resolve references.",
"type": "object | object[] | undefined"
}
]
}
]
}