@c8y/ngx-components 1023.90.1 → 1023.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/ai/agents/scada/index.d.ts +10 -0
  2. package/ai/agents/scada/index.d.ts.map +1 -0
  3. package/ai/ai-chat/index.d.ts +1 -1
  4. package/ai/ai-chat/index.d.ts.map +1 -1
  5. package/auth-configuration/index.d.ts +19 -1
  6. package/auth-configuration/index.d.ts.map +1 -1
  7. package/computed-asset-properties/index.d.ts +89 -1
  8. package/computed-asset-properties/index.d.ts.map +1 -1
  9. package/context-dashboard/index.d.ts +18 -8
  10. package/context-dashboard/index.d.ts.map +1 -1
  11. package/echart/index.d.ts +1 -1
  12. package/echart/models/index.d.ts +1 -1
  13. package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs +2 -2
  14. package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs.map +1 -1
  15. package/fesm2022/c8y-ngx-components-ai-agents-scada.mjs +893 -0
  16. package/fesm2022/c8y-ngx-components-ai-agents-scada.mjs.map +1 -0
  17. package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs +1 -0
  18. package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs.map +1 -1
  19. package/fesm2022/c8y-ngx-components-asset-properties.mjs +2 -2
  20. package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
  21. package/fesm2022/c8y-ngx-components-auth-configuration.mjs +73 -7
  22. package/fesm2022/c8y-ngx-components-auth-configuration.mjs.map +1 -1
  23. package/fesm2022/{c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-Cy9R6Ixb.mjs → c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-CHZX7ALq.mjs} +10 -9
  24. package/fesm2022/c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-CHZX7ALq.mjs.map +1 -0
  25. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-LrmlAh6V.mjs → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-DgWGXzEx.mjs} +2 -2
  26. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-LrmlAh6V.mjs.map → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-DgWGXzEx.mjs.map} +1 -1
  27. package/fesm2022/{c8y-ngx-components-computed-asset-properties-last-measurement-config.component-f1u1TcCl.mjs → c8y-ngx-components-computed-asset-properties-last-measurement-config.component-yfc45-l_.mjs} +2 -2
  28. package/fesm2022/{c8y-ngx-components-computed-asset-properties-last-measurement-config.component-f1u1TcCl.mjs.map → c8y-ngx-components-computed-asset-properties-last-measurement-config.component-yfc45-l_.mjs.map} +1 -1
  29. package/fesm2022/c8y-ngx-components-computed-asset-properties.mjs +1 -1
  30. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +44 -36
  31. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  32. package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
  33. package/fesm2022/c8y-ngx-components-echart.mjs +1 -1
  34. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  35. package/fesm2022/c8y-ngx-components-global-context.mjs +112 -22
  36. package/fesm2022/c8y-ngx-components-global-context.mjs.map +1 -1
  37. package/fesm2022/c8y-ngx-components-repository-configuration.mjs +292 -115
  38. package/fesm2022/c8y-ngx-components-repository-configuration.mjs.map +1 -1
  39. package/fesm2022/c8y-ngx-components-repository-firmware.mjs +2 -2
  40. package/fesm2022/c8y-ngx-components-repository-firmware.mjs.map +1 -1
  41. package/fesm2022/c8y-ngx-components-repository-software.mjs +1 -1
  42. package/fesm2022/c8y-ngx-components-repository-software.mjs.map +1 -1
  43. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs +2 -1
  44. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs.map +1 -1
  45. package/fesm2022/c8y-ngx-components-widgets-definitions-scada.mjs +169 -0
  46. package/fesm2022/c8y-ngx-components-widgets-definitions-scada.mjs.map +1 -0
  47. package/fesm2022/c8y-ngx-components-widgets-definitions.mjs +2 -1
  48. package/fesm2022/c8y-ngx-components-widgets-definitions.mjs.map +1 -1
  49. package/fesm2022/c8y-ngx-components-widgets-exports.mjs +8 -1
  50. package/fesm2022/c8y-ngx-components-widgets-exports.mjs.map +1 -1
  51. package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs +2 -2
  52. package/fesm2022/c8y-ngx-components-widgets-implementations-alarms.mjs.map +1 -1
  53. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +3 -3
  54. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  55. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-list.mjs +2 -2
  56. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-list.mjs.map +1 -1
  57. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +2 -2
  58. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs.map +1 -1
  59. package/fesm2022/c8y-ngx-components-widgets-implementations-events.mjs +2 -2
  60. package/fesm2022/c8y-ngx-components-widgets-implementations-events.mjs.map +1 -1
  61. package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs +90 -32
  62. package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs.map +1 -1
  63. package/fesm2022/c8y-ngx-components-widgets-implementations-kpi.mjs +2 -2
  64. package/fesm2022/c8y-ngx-components-widgets-implementations-kpi.mjs.map +1 -1
  65. package/fesm2022/c8y-ngx-components-widgets-implementations-scada.mjs +1698 -0
  66. package/fesm2022/c8y-ngx-components-widgets-implementations-scada.mjs.map +1 -0
  67. package/fesm2022/c8y-ngx-components.mjs +193 -40
  68. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  69. package/global-context/index.d.ts +58 -3
  70. package/global-context/index.d.ts.map +1 -1
  71. package/index.d.ts +77 -22
  72. package/index.d.ts.map +1 -1
  73. package/locales/de.po +170 -10
  74. package/locales/es.po +170 -10
  75. package/locales/fr.po +170 -10
  76. package/locales/ja_JP.po +162 -9
  77. package/locales/ko.po +170 -10
  78. package/locales/locales.pot +212 -7
  79. package/locales/nl.po +170 -10
  80. package/locales/pl.po +170 -10
  81. package/locales/pt_BR.po +170 -10
  82. package/locales/zh_CN.po +170 -10
  83. package/locales/zh_TW.po +170 -10
  84. package/package.json +1 -1
  85. package/repository/configuration/index.d.ts +64 -39
  86. package/repository/configuration/index.d.ts.map +1 -1
  87. package/widgets/cockpit-exports/index.d.ts +6 -0
  88. package/widgets/cockpit-exports/index.d.ts.map +1 -1
  89. package/widgets/definitions/index.d.ts +1 -0
  90. package/widgets/definitions/index.d.ts.map +1 -1
  91. package/widgets/definitions/scada/index.d.ts +6 -0
  92. package/widgets/definitions/scada/index.d.ts.map +1 -0
  93. package/widgets/device-management-exports/index.d.ts +6 -0
  94. package/widgets/device-management-exports/index.d.ts.map +1 -1
  95. package/widgets/exports/index.d.ts +8 -1
  96. package/widgets/exports/index.d.ts.map +1 -1
  97. package/widgets/implementations/html-widget/index.d.ts +30 -12
  98. package/widgets/implementations/html-widget/index.d.ts.map +1 -1
  99. package/widgets/implementations/scada/index.d.ts +415 -0
  100. package/widgets/implementations/scada/index.d.ts.map +1 -0
  101. package/fesm2022/c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-Cy9R6Ixb.mjs.map +0 -1
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { Input, Component, Injectable, EventEmitter, inject, NgModule, Output, ChangeDetectorRef, ElementRef, Renderer2, TemplateRef, ContentChild, ViewChild } from '@angular/core';
3
3
  import { map, catchError, tap, switchMap, shareReplay, take, filter, mergeAll, toArray } from 'rxjs/operators';
4
4
  import * as i2 from '@c8y/ngx-components';
5
- import { FormGroupComponent, C8yTranslatePipe, Permissions, C8yTranslateDirective, RequiredInputPlaceholderDirective, MinValidationDirective, MaxValidationDirective, MessagesComponent, MessageDirective, TitleComponent, BreadcrumbComponent, BreadcrumbItemComponent, ActionBarItemComponent, IconDirective, HelpComponent, CoreModule, hookRoute, DefaultValidationDirective, memoize, SelectLegacyComponent, MoNamePipe, EmptyStateComponent, Status, TabsService, NavigatorNode, hookTab, hookNavigator, hookPatternMessages } from '@c8y/ngx-components';
5
+ import { FormGroupComponent, C8yTranslatePipe, Permissions, C8yTranslateDirective, RequiredInputPlaceholderDirective, MinValidationDirective, MaxValidationDirective, MessagesComponent, MessageDirective, TitleComponent, BreadcrumbComponent, BreadcrumbItemComponent, ActionBarItemComponent, IconDirective, HelpComponent, CoreModule, hookRoute, DefaultValidationDirective, memoize, DropAreaComponent, SelectLegacyComponent, MoNamePipe, EmptyStateComponent, Status, TabsService, NavigatorNode, hookTab, hookNavigator, hookPatternMessages } from '@c8y/ngx-components';
6
6
  import * as i1$1 from '@c8y/client';
7
7
  import { TenantLoginOptionType, TfaStrategy, GrantType, UserManagementSource, TenantLoginOptionsService } from '@c8y/client';
8
8
  import * as i1 from '@angular/forms';
@@ -1289,6 +1289,12 @@ class CustomConfigurationMapper {
1289
1289
  externalTokenConfig: templateModel.externalTokenConfig.toExternalTokenConfig(),
1290
1290
  useIdToken: templateModel.useIdToken
1291
1291
  };
1292
+ if (templateModel.mtlsCertificatePem) {
1293
+ ssoConfiguration.mtlsCertificatePem = templateModel.mtlsCertificatePem;
1294
+ }
1295
+ if (templateModel.mtlsPrivateKeyPem) {
1296
+ ssoConfiguration.mtlsPrivateKeyPem = templateModel.mtlsPrivateKeyPem;
1297
+ }
1292
1298
  return ssoConfiguration;
1293
1299
  }
1294
1300
  mapTo(ssoConfiguration) {
@@ -1312,7 +1318,9 @@ class CustomConfigurationMapper {
1312
1318
  visibleOnLoginPage: ssoConfiguration.visibleOnLoginPage,
1313
1319
  certificateType: CertificateType.CUSTOM,
1314
1320
  externalTokenConfig: new ExternalToken(ssoConfiguration.externalTokenConfig),
1315
- useIdToken: ssoConfiguration.useIdToken
1321
+ useIdToken: ssoConfiguration.useIdToken,
1322
+ mtlsCertificatePem: ssoConfiguration.mtlsCertificatePem || '',
1323
+ mtlsPrivateKeyPem: ssoConfiguration.mtlsPrivateKeyPem || ''
1316
1324
  };
1317
1325
  }
1318
1326
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CustomConfigurationMapper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -1513,11 +1521,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
1513
1521
  }] } });
1514
1522
 
1515
1523
  class BasicConfigurationComponent {
1524
+ get isMtlsPrivateKeyEncrypted() {
1525
+ const value = this.templateModel?.mtlsPrivateKeyPem;
1526
+ return !!value && !value.includes('-----BEGIN');
1527
+ }
1516
1528
  constructor(tenantService) {
1517
1529
  this.tenantService = tenantService;
1518
1530
  this.REDIRECT_TO_THE_USER_INTERFACE_APPLICATION_TOOLTIP = gettext("The redirect URL is automatically set to the application used by the user. In case of an error, it will be correctly displayed on the application's page.");
1531
+ this.MTLS_ENABLED_TOOLTIP = gettext('Use a client certificate (mTLS) instead of a client secret to authenticate the platform with the authorization server. Use this option only if the authorization server enforces certificate-based client authentication.');
1532
+ this.MTLS_CERTIFICATE_TOOLTIP = gettext('Public X.509 client certificate in PEM format, issued for this tenant by a CA trusted by your authorization server. Accepted file extension: .pem.');
1533
+ this.MTLS_PRIVATE_KEY_TOOLTIP = gettext('Private key matching the client certificate, in PEM format (PKCS#8). The platform encrypts the key at rest after the first save and will return only an encrypted value on subsequent loads. Accepted file extensions: .pem, .key.');
1519
1534
  this.flowControlledByUI = false;
1520
1535
  this.redirectToPlatform = '';
1536
+ this.mtlsEnabled = false;
1537
+ this.mtlsCertificateFile = [];
1538
+ this.mtlsPrivateKeyFile = [];
1539
+ this.stashedMtls = {
1540
+ mtlsCertificatePem: '',
1541
+ mtlsPrivateKeyPem: ''
1542
+ };
1521
1543
  }
1522
1544
  shouldShow(field) {
1523
1545
  return field in this.templateModel;
@@ -1531,9 +1553,44 @@ class BasicConfigurationComponent {
1531
1553
  };
1532
1554
  this.redirectToPlatform = this.templateModel.redirectToPlatform || '';
1533
1555
  this.flowControlledByUI = !this.templateModel.redirectToPlatform;
1556
+ this.mtlsEnabled = !!(this.templateModel.mtlsCertificatePem || this.templateModel.mtlsPrivateKeyPem);
1557
+ }
1558
+ onMtlsEnabledChange() {
1559
+ if (this.mtlsEnabled) {
1560
+ this.templateModel.mtlsCertificatePem = this.stashedMtls.mtlsCertificatePem;
1561
+ this.templateModel.mtlsPrivateKeyPem = this.stashedMtls.mtlsPrivateKeyPem;
1562
+ }
1563
+ else {
1564
+ this.stashedMtls = {
1565
+ mtlsCertificatePem: this.templateModel.mtlsCertificatePem || '',
1566
+ mtlsPrivateKeyPem: this.templateModel.mtlsPrivateKeyPem || ''
1567
+ };
1568
+ this.templateModel.mtlsCertificatePem = '';
1569
+ this.templateModel.mtlsPrivateKeyPem = '';
1570
+ }
1571
+ }
1572
+ uploadMtlsCertificate(dropped) {
1573
+ // c8y-drop-area emits dropped=null once on NgModel init; ignore when nothing was set.
1574
+ if (!dropped?.length && !this.mtlsCertificateFile?.length)
1575
+ return;
1576
+ this.readPemFile(dropped, content => (this.templateModel.mtlsCertificatePem = content));
1577
+ }
1578
+ uploadMtlsPrivateKey(dropped) {
1579
+ if (!dropped?.length && !this.mtlsPrivateKeyFile?.length)
1580
+ return;
1581
+ this.readPemFile(dropped, content => (this.templateModel.mtlsPrivateKeyPem = content));
1582
+ }
1583
+ readPemFile(dropped, onLoaded) {
1584
+ if (!dropped?.length) {
1585
+ onLoaded('');
1586
+ return;
1587
+ }
1588
+ const reader = new FileReader();
1589
+ reader.onload = () => onLoaded(reader.result);
1590
+ reader.readAsText(dropped[0].file);
1534
1591
  }
1535
1592
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BasicConfigurationComponent, deps: [{ token: i1$1.TenantService }], target: i0.ɵɵFactoryTarget.Component }); }
1536
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: BasicConfigurationComponent, isStandalone: true, selector: "c8y-basic-configuration", inputs: { templateModel: "templateModel" }, usesOnChanges: true, ngImport: i0, template: "<fieldset class=\"p-24\">\n <div class=\"row\">\n <div class=\"col-xs-12 col-sm-3 col-md-2 m-b-xs-8\">\n <div\n class=\"h4 text-normal text-right text-left-xs\"\n translate\n >\n Basic\n </div>\n </div>\n\n <div\n class=\"col-xs-12 col-sm-9 col-md-10 col-lg-9\"\n *ngIf=\"templateModel\"\n >\n <div class=\"row\">\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('keyCloakAddress')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"keyCloakAddress\"\n translate\n >\n Keycloak address\n </label>\n <input\n class=\"form-control\"\n id=\"keyCloakAddress\"\n name=\"keyCloakAddress\"\n type=\"url\"\n required\n [(ngModel)]=\"templateModel.keyCloakAddress\"\n [placeholder]=\"'e.g. {{ example }}' | translate : { example: 'https://example.de' }\"\n />\n </c8y-form-group>\n </div>\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('aadAddress')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"aadAddress\"\n translate\n >\n Azure AD address\n </label>\n <input\n class=\"form-control\"\n id=\"aadAddress\"\n name=\"aadAddress\"\n type=\"url\"\n required\n [(ngModel)]=\"templateModel.aadAddress\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate : { example: 'https://login.microsoftonline.de' }\n \"\n />\n </c8y-form-group>\n </div>\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('tenant')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"tenant\"\n translate\n >\n Tenant\n </label>\n <input\n class=\"form-control\"\n id=\"tenant\"\n name=\"tenant\"\n required\n [(ngModel)]=\"templateModel.tenant\"\n [placeholder]=\"'e.g. {{ example }}' | translate : { example: 'c8y.onmicrosoft.de' }\"\n />\n </c8y-form-group>\n </div>\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('applicationId')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"applicationId\"\n translate\n >\n Application ID\n </label>\n <input\n class=\"form-control\"\n id=\"applicationId\"\n name=\"applicationId\"\n required\n [(ngModel)]=\"templateModel.applicationId\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('realmName')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"realmName\"\n translate\n >\n Realm name\n </label>\n <input\n class=\"form-control\"\n id=\"realmName\"\n name=\"realmName\"\n required\n [(ngModel)]=\"templateModel.realmName\"\n />\n </c8y-form-group>\n </div>\n </div>\n\n <div class=\"row\" *ngIf=\"shouldShow('redirectToPlatform')\">\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"redirectToPlatform\"\n >\n {{ 'Redirect URL' | translate }}\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"helpContent\"\n placement=\"bottom\"\n triggers=\"focus\"\n type=\"button\"\n [adaptivePosition]=\"false\"\n *ngIf=\"\n !flowControlledByUI &&\n redirectToPlatformWarningParams &&\n templateModel.redirectToPlatform !=\n redirectToPlatformWarningParams.defaultRedirectUrl\n \"\n ></button>\n <ng-template #helpContent>\n <span\n ngNonBindable\n translate\n [translateParams]=\"redirectToPlatformWarningParams\"\n >\n For correct application behavior you can use only \"{{ host }}\" or \"{{\n defaultRedirectUrl\n }}\", the latter one is recommended.\n </span>\n </ng-template>\n </label>\n <input\n class=\"form-control\"\n id=\"redirectToPlatform\"\n name=\"redirectToPlatform\"\n type=\"url\"\n [required]=\"!flowControlledByUI\"\n [disabled]=\"flowControlledByUI\"\n [(ngModel)]=\"templateModel.redirectToPlatform\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example:\n redirectToPlatformWarningParams?.defaultRedirectUrl ||\n 'https://tenant.domain.com'\n }\n \"\n />\n </c8y-form-group>\n </div>\n <div class=\"col-sm-6\">\n <div\n class=\"form-group\"\n >\n <label\n class=\"c8y-switch m-t-24\"\n title=\"{{ 'Redirect to the user interface application`SSO authentication`' | translate }}\"\n for=\"flowControlledByUI\"\n >\n <input\n type=\"checkbox\"\n name=\"flowControlledByUI\"\n id=\"flowControlledByUI\"\n [(ngModel)]=\"flowControlledByUI\"\n (change)=\"templateModel.redirectToPlatform = flowControlledByUI ? '' : redirectToPlatform\"\n />\n <span></span>\n <span class=\"control-label\">{{ 'Redirect to the user interface application`SSO authentication`' | translate }}</span>\n <button\n type=\"button\"\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ REDIRECT_TO_THE_USER_INTERFACE_APPLICATION_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n ></button>\n </label>\n </div>\n </div>\n <div class=\"col-sm-12\">\n <div *ngIf=\"flowControlledByUI && redirectToPlatform != ''\">\n <div class=\"alert alert-warning max-width-100 m-b-32\"\n ngNonBindable\n translate\n [translateParams]=\"{\n redirectURI: '<tenant_domain>/apps/*'\n }\">\n Make sure that \"Valid Redirect URIs\" in the authorization server is set to \"{{ redirectURI }}\" or to the full URIs of the used applications if the authorization server does not support patterns.\n </div>\n </div>\n <div *ngIf=\"!flowControlledByUI && redirectToPlatform === ''\">\n <div class=\"alert alert-warning max-width-100 m-b-32\"\n ngNonBindable\n translate\n [translateParams]=\"{\n redirectURI: '<tenant_domain>/tenant/oauth'\n }\">\n Make sure that \"Valid Redirect URIs\" in the authorization server is set to \"{{ redirectURI }}\".\n </div>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('clientSecret')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"clientSecret\"\n translate\n >\n Client secret\n </label>\n <input\n class=\"form-control\"\n id=\"clientSecret\"\n name=\"clientSecret\"\n required\n [(ngModel)]=\"templateModel.clientSecret\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('clientId')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"clientId\"\n translate\n >\n Client ID\n </label>\n <input\n class=\"form-control\"\n id=\"clientId\"\n name=\"clientId\"\n required\n [(ngModel)]=\"templateModel.clientId\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate : { example: '254234981c-78a8-4588\u2026' }\n \"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('issuer')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"issuer\"\n translate\n >\n Token issuer\n </label>\n <input\n class=\"form-control\"\n id=\"issuer\"\n name=\"issuer\"\n required\n [(ngModel)]=\"templateModel.issuer\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate : { example: 'https://login.microsoftonline.de/237652-3727' }\n \"\n />\n </c8y-form-group>\n </div>\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('scopeId')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"scopeId\"\n translate\n >\n Scope ID\n </label>\n <input\n class=\"form-control\"\n id=\"scopeId\"\n name=\"scopeId\"\n [(ngModel)]=\"templateModel.scopeId\"\n [placeholder]=\"'e.g. {{ example }}' | translate: { example: '237652-3727' }\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('buttonName')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"buttonName\"\n translate\n >\n Button name\n </label>\n <input\n class=\"form-control\"\n id=\"buttonName\"\n name=\"buttonName\"\n required\n [(ngModel)]=\"templateModel.buttonName\"\n [placeholder]=\"'e.g. Log in with Azure AD' | translate\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('providerName')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"providerName\"\n translate\n >\n Provider name\n </label>\n <input\n class=\"form-control\"\n id=\"providerName\"\n name=\"providerName\"\n required\n [(ngModel)]=\"templateModel.providerName\"\n [placeholder]=\"'e.g. {{ example }}' | translate : { example: 'Azure AD' }\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('audience')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"audience\"\n translate\n >\n Audience\n </label>\n <input\n class=\"form-control\"\n id=\"audience\"\n name=\"audience\"\n required\n [(ngModel)]=\"templateModel.audience\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate : { example: 'https://test.example.com' }\n \"\n />\n </c8y-form-group>\n </div>\n </div>\n\n <div\n class=\"row\"\n *ngIf=\"shouldShow('visibleOnLoginPage')\"\n >\n <div class=\"col-sm-6\">\n <label\n class=\"c8y-switch\"\n title=\"{{ 'Visible on login page' | translate }}\"\n for=\"visibleOnLoginPage\"\n >\n <input\n id=\"visibleOnLoginPage\"\n name=\"visibleOnLoginPage\"\n type=\"checkbox\"\n [(ngModel)]=\"templateModel.visibleOnLoginPage\"\n />\n <span></span>\n <span class=\"control-label\">{{ 'Visible on login page' | translate }}</span>\n </label>\n </div>\n </div>\n </div>\n </div>\n</fieldset>\n", dependencies: [{ kind: "directive", type: C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FormGroupComponent, selector: "c8y-form-group", inputs: ["hasError", "hasWarning", "hasSuccess", "novalidation", "status"] }, { kind: "directive", type: RequiredInputPlaceholderDirective, selector: "input[required], input[formControlName]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] }); }
1593
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: BasicConfigurationComponent, isStandalone: true, selector: "c8y-basic-configuration", inputs: { templateModel: "templateModel" }, usesOnChanges: true, ngImport: i0, template: "<fieldset class=\"p-24\">\n <div class=\"row\">\n <div class=\"col-xs-12 col-sm-3 col-md-2 m-b-xs-8\">\n <div\n class=\"h4 text-normal text-right text-left-xs\"\n translate\n >\n Basic\n </div>\n </div>\n\n @if (templateModel) {\n <div class=\"col-xs-12 col-sm-9 col-md-10 col-lg-9\">\n <div class=\"row\">\n @if (shouldShow('keyCloakAddress')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"keyCloakAddress\"\n translate\n >\n Keycloak address\n </label>\n <input\n class=\"form-control\"\n id=\"keyCloakAddress\"\n name=\"keyCloakAddress\"\n type=\"url\"\n required\n [(ngModel)]=\"templateModel.keyCloakAddress\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate: { example: 'https://example.de' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n @if (shouldShow('aadAddress')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"aadAddress\"\n translate\n >\n Azure AD address\n </label>\n <input\n class=\"form-control\"\n id=\"aadAddress\"\n name=\"aadAddress\"\n type=\"url\"\n required\n [(ngModel)]=\"templateModel.aadAddress\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate: { example: 'https://login.microsoftonline.de' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n @if (shouldShow('tenant')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"tenant\"\n translate\n >\n Tenant\n </label>\n <input\n class=\"form-control\"\n id=\"tenant\"\n name=\"tenant\"\n required\n [(ngModel)]=\"templateModel.tenant\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate: { example: 'c8y.onmicrosoft.de' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n @if (shouldShow('applicationId')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"applicationId\"\n translate\n >\n Application ID\n </label>\n <input\n class=\"form-control\"\n id=\"applicationId\"\n name=\"applicationId\"\n required\n [(ngModel)]=\"templateModel.applicationId\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('realmName')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"realmName\"\n translate\n >\n Realm name\n </label>\n <input\n class=\"form-control\"\n id=\"realmName\"\n name=\"realmName\"\n required\n [(ngModel)]=\"templateModel.realmName\"\n />\n </c8y-form-group>\n </div>\n }\n </div>\n\n @if (shouldShow('redirectToPlatform')) {\n <div class=\"row\">\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"redirectToPlatform\"\n >\n {{ 'Redirect URL' | translate }}\n @if (\n !flowControlledByUI &&\n redirectToPlatformWarningParams &&\n templateModel.redirectToPlatform !==\n redirectToPlatformWarningParams.defaultRedirectUrl\n ) {\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"helpContent\"\n placement=\"bottom\"\n triggers=\"focus\"\n type=\"button\"\n [adaptivePosition]=\"false\"\n ></button>\n }\n <ng-template #helpContent>\n <span\n ngNonBindable\n translate\n [translateParams]=\"redirectToPlatformWarningParams\"\n >\n For correct application behavior you can use only \"{{ host }}\" or \"{{\n defaultRedirectUrl\n }}\", the latter one is recommended.\n </span>\n </ng-template>\n </label>\n <input\n class=\"form-control\"\n id=\"redirectToPlatform\"\n name=\"redirectToPlatform\"\n type=\"url\"\n [required]=\"!flowControlledByUI\"\n [disabled]=\"flowControlledByUI\"\n [(ngModel)]=\"templateModel.redirectToPlatform\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example:\n redirectToPlatformWarningParams?.defaultRedirectUrl ||\n 'https://tenant.domain.com'\n }\n \"\n />\n </c8y-form-group>\n </div>\n <div class=\"col-sm-6\">\n <div class=\"form-group\">\n <label\n class=\"c8y-switch m-t-24\"\n title=\"{{\n 'Redirect to the user interface application`SSO authentication`' | translate\n }}\"\n for=\"flowControlledByUI\"\n >\n <input\n id=\"flowControlledByUI\"\n name=\"flowControlledByUI\"\n type=\"checkbox\"\n [(ngModel)]=\"flowControlledByUI\"\n (change)=\"\n templateModel.redirectToPlatform = flowControlledByUI\n ? ''\n : redirectToPlatform\n \"\n />\n <span></span>\n <span class=\"control-label\">{{\n 'Redirect to the user interface application`SSO authentication`' | translate\n }}</span>\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ REDIRECT_TO_THE_USER_INTERFACE_APPLICATION_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </label>\n </div>\n </div>\n <div class=\"col-sm-12\">\n @if (flowControlledByUI && redirectToPlatform !== '') {\n <div>\n <div\n class=\"alert alert-warning max-width-100 m-b-32\"\n ngNonBindable\n translate\n [translateParams]=\"{\n redirectURI: '<tenant_domain>/apps/*'\n }\"\n >\n Make sure that \"Valid Redirect URIs\" in the authorization server is set to \"{{\n redirectURI\n }}\" or to the full URIs of the used applications if the authorization server\n does not support patterns.\n </div>\n </div>\n }\n @if (!flowControlledByUI && redirectToPlatform === '') {\n <div>\n <div\n class=\"alert alert-warning max-width-100 m-b-32\"\n ngNonBindable\n translate\n [translateParams]=\"{\n redirectURI: '<tenant_domain>/tenant/oauth'\n }\"\n >\n Make sure that \"Valid Redirect URIs\" in the authorization server is set to \"{{\n redirectURI\n }}\".\n </div>\n </div>\n }\n </div>\n </div>\n }\n <div class=\"row\">\n @if (shouldShow('clientSecret')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"clientSecret\"\n translate\n >\n Client secret\n </label>\n <input\n class=\"form-control\"\n id=\"clientSecret\"\n name=\"clientSecret\"\n required\n [(ngModel)]=\"templateModel.clientSecret\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('clientId')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"clientId\"\n translate\n >\n Client ID\n </label>\n <input\n class=\"form-control\"\n id=\"clientId\"\n name=\"clientId\"\n required\n [(ngModel)]=\"templateModel.clientId\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate: { example: '254234981c-78a8-4588\u2026' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('issuer')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"issuer\"\n translate\n >\n Token issuer\n </label>\n <input\n class=\"form-control\"\n id=\"issuer\"\n name=\"issuer\"\n required\n [(ngModel)]=\"templateModel.issuer\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate: { example: 'https://login.microsoftonline.de/237652-3727' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n @if (shouldShow('scopeId')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"scopeId\"\n translate\n >\n Scope ID\n </label>\n <input\n class=\"form-control\"\n id=\"scopeId\"\n name=\"scopeId\"\n [(ngModel)]=\"templateModel.scopeId\"\n [placeholder]=\"'e.g. {{ example }}' | translate: { example: '237652-3727' }\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('buttonName')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"buttonName\"\n translate\n >\n Button name\n </label>\n <input\n class=\"form-control\"\n id=\"buttonName\"\n name=\"buttonName\"\n required\n [(ngModel)]=\"templateModel.buttonName\"\n [placeholder]=\"'e.g. Log in with Azure AD' | translate\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('providerName')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"providerName\"\n translate\n >\n Provider name\n </label>\n <input\n class=\"form-control\"\n id=\"providerName\"\n name=\"providerName\"\n required\n [(ngModel)]=\"templateModel.providerName\"\n [placeholder]=\"'e.g. {{ example }}' | translate: { example: 'Azure AD' }\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('audience')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"audience\"\n translate\n >\n Audience\n </label>\n <input\n class=\"form-control\"\n id=\"audience\"\n name=\"audience\"\n required\n [(ngModel)]=\"templateModel.audience\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate: { example: 'https://test.example.com' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n </div>\n\n @if (shouldShow('mtlsCertificatePem')) {\n <div class=\"row\">\n <div class=\"col-sm-12\">\n <label\n class=\"c8y-switch m-b-16\"\n title=\"{{ 'Enable mTLS authentication' | translate }}\"\n for=\"mtlsEnabled\"\n >\n <input\n id=\"mtlsEnabled\"\n name=\"mtlsEnabled\"\n type=\"checkbox\"\n [(ngModel)]=\"mtlsEnabled\"\n (change)=\"onMtlsEnabledChange()\"\n />\n <span></span>\n <span class=\"control-label\">{{ 'Enable mTLS authentication' | translate }}</span>\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ MTLS_ENABLED_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </label>\n </div>\n <div\n class=\"col-sm-12\"\n [class.hidden]=\"!mtlsEnabled\"\n >\n <div class=\"row\">\n <div class=\"col-sm-6\">\n <fieldset class=\"c8y-fieldset\">\n <legend>\n {{ 'Certificate (PEM)' | translate }}\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ MTLS_CERTIFICATE_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </legend>\n <c8y-form-group>\n <textarea\n class=\"form-control m-b-8 text-monospace\"\n [class.hidden]=\"!templateModel.mtlsCertificatePem\"\n aria-label=\"{{ 'Currently saved certificate' | translate }}\"\n id=\"mtlsCertificatePem\"\n name=\"mtlsCertificatePem\"\n rows=\"4\"\n readonly\n [(ngModel)]=\"templateModel.mtlsCertificatePem\"\n [required]=\"mtlsEnabled\"\n ></textarea>\n @let mtlsAddCertificateLabel = 'Drop file here' | translate;\n @let mtlsReplaceCertificateLabel =\n 'Drop a new certificate to replace' | translate;\n <c8y-drop-area\n class=\"drop-area-sm\"\n [title]=\"'Drop the certificate in PEM format.' | translate\"\n name=\"mtlsCertificateFile\"\n [(ngModel)]=\"mtlsCertificateFile\"\n [message]=\"\n templateModel.mtlsCertificatePem\n ? mtlsReplaceCertificateLabel\n : mtlsAddCertificateLabel\n \"\n data-cy=\"c8y-sso-mtls--certificate-drop-area\"\n (dropped)=\"uploadMtlsCertificate($event)\"\n [maxAllowedFiles]=\"1\"\n [maxFileSizeInMegaBytes]=\"1\"\n [accept]=\"'.pem'\"\n ></c8y-drop-area>\n </c8y-form-group>\n </fieldset>\n </div>\n <div class=\"col-sm-6\">\n <fieldset class=\"c8y-fieldset\">\n <legend>\n {{ 'Private key (PEM)' | translate }}\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ MTLS_PRIVATE_KEY_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </legend>\n <c8y-form-group>\n <textarea\n class=\"form-control m-b-8 text-monospace\"\n [class.hidden]=\"!templateModel.mtlsPrivateKeyPem\"\n aria-label=\"{{ 'Currently saved private key' | translate }}\"\n id=\"mtlsPrivateKeyPem\"\n name=\"mtlsPrivateKeyPem\"\n rows=\"{{ templateModel.mtlsPrivateKeyPem ? '3' : '4' }}\"\n readonly\n [(ngModel)]=\"templateModel.mtlsPrivateKeyPem\"\n [required]=\"mtlsEnabled\"\n ></textarea>\n @let mtlsAddPrivateKeyLabel = 'Drop file here' | translate;\n @let mtlsReplacePrivateKeyLabel =\n 'Drop a new private key to replace' | translate;\n <c8y-drop-area\n class=\"drop-area-sm\"\n [title]=\"'Drop the private key in PEM format.' | translate\"\n name=\"mtlsPrivateKeyFile\"\n [(ngModel)]=\"mtlsPrivateKeyFile\"\n [message]=\"\n templateModel.mtlsPrivateKeyPem\n ? mtlsReplacePrivateKeyLabel\n : mtlsAddPrivateKeyLabel\n \"\n data-cy=\"c8y-sso-mtls--private-key-drop-area\"\n (dropped)=\"uploadMtlsPrivateKey($event)\"\n [maxAllowedFiles]=\"1\"\n [maxFileSizeInMegaBytes]=\"1\"\n [accept]=\"'.pem,.key'\"\n ></c8y-drop-area>\n\n @if (templateModel.mtlsPrivateKeyPem) {\n <small class=\"text-muted d-flex a-i-center gap-4 m-t-4\">\n <i\n class=\"text-info\"\n c8yIcon=\"info-circle\"\n aria-hidden=\"true\"\n ></i>\n @if (isMtlsPrivateKeyEncrypted) {\n <span translate>\n The private key is encrypted for security reasons.\n </span>\n } @else {\n <span translate>\n The private key will be encrypted on the server after saving.\n </span>\n }\n </small>\n }\n </c8y-form-group>\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n }\n\n @if (shouldShow('visibleOnLoginPage')) {\n <div class=\"row\">\n <div class=\"col-sm-6\">\n <label\n class=\"c8y-switch\"\n title=\"{{ 'Visible on login page' | translate }}\"\n for=\"visibleOnLoginPage\"\n >\n <input\n id=\"visibleOnLoginPage\"\n name=\"visibleOnLoginPage\"\n type=\"checkbox\"\n [(ngModel)]=\"templateModel.visibleOnLoginPage\"\n />\n <span></span>\n <span class=\"control-label\">{{ 'Visible on login page' | translate }}</span>\n </label>\n </div>\n </div>\n }\n </div>\n }\n </div>\n</fieldset>\n", dependencies: [{ kind: "directive", type: C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "component", type: FormGroupComponent, selector: "c8y-form-group", inputs: ["hasError", "hasWarning", "hasSuccess", "novalidation", "status"] }, { kind: "directive", type: RequiredInputPlaceholderDirective, selector: "input[required], input[formControlName]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "component", type: DropAreaComponent, selector: "c8y-drop-area", inputs: ["formControl", "title", "message", "icon", "loadingMessage", "forceHideList", "alwaysShow", "clickToOpen", "loading", "progress", "maxAllowedFiles", "files", "maxFileSizeInMegaBytes", "accept"], outputs: ["dropped"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] }); }
1537
1594
  }
1538
1595
  __decorate([
1539
1596
  memoize(),
@@ -1545,13 +1602,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
1545
1602
  type: Component,
1546
1603
  args: [{ selector: 'c8y-basic-configuration', viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], imports: [
1547
1604
  C8yTranslateDirective,
1548
- NgIf,
1549
1605
  FormGroupComponent,
1550
1606
  RequiredInputPlaceholderDirective,
1551
1607
  FormsModule,
1552
1608
  PopoverDirective,
1553
- C8yTranslatePipe
1554
- ], template: "<fieldset class=\"p-24\">\n <div class=\"row\">\n <div class=\"col-xs-12 col-sm-3 col-md-2 m-b-xs-8\">\n <div\n class=\"h4 text-normal text-right text-left-xs\"\n translate\n >\n Basic\n </div>\n </div>\n\n <div\n class=\"col-xs-12 col-sm-9 col-md-10 col-lg-9\"\n *ngIf=\"templateModel\"\n >\n <div class=\"row\">\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('keyCloakAddress')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"keyCloakAddress\"\n translate\n >\n Keycloak address\n </label>\n <input\n class=\"form-control\"\n id=\"keyCloakAddress\"\n name=\"keyCloakAddress\"\n type=\"url\"\n required\n [(ngModel)]=\"templateModel.keyCloakAddress\"\n [placeholder]=\"'e.g. {{ example }}' | translate : { example: 'https://example.de' }\"\n />\n </c8y-form-group>\n </div>\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('aadAddress')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"aadAddress\"\n translate\n >\n Azure AD address\n </label>\n <input\n class=\"form-control\"\n id=\"aadAddress\"\n name=\"aadAddress\"\n type=\"url\"\n required\n [(ngModel)]=\"templateModel.aadAddress\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate : { example: 'https://login.microsoftonline.de' }\n \"\n />\n </c8y-form-group>\n </div>\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('tenant')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"tenant\"\n translate\n >\n Tenant\n </label>\n <input\n class=\"form-control\"\n id=\"tenant\"\n name=\"tenant\"\n required\n [(ngModel)]=\"templateModel.tenant\"\n [placeholder]=\"'e.g. {{ example }}' | translate : { example: 'c8y.onmicrosoft.de' }\"\n />\n </c8y-form-group>\n </div>\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('applicationId')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"applicationId\"\n translate\n >\n Application ID\n </label>\n <input\n class=\"form-control\"\n id=\"applicationId\"\n name=\"applicationId\"\n required\n [(ngModel)]=\"templateModel.applicationId\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('realmName')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"realmName\"\n translate\n >\n Realm name\n </label>\n <input\n class=\"form-control\"\n id=\"realmName\"\n name=\"realmName\"\n required\n [(ngModel)]=\"templateModel.realmName\"\n />\n </c8y-form-group>\n </div>\n </div>\n\n <div class=\"row\" *ngIf=\"shouldShow('redirectToPlatform')\">\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"redirectToPlatform\"\n >\n {{ 'Redirect URL' | translate }}\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"helpContent\"\n placement=\"bottom\"\n triggers=\"focus\"\n type=\"button\"\n [adaptivePosition]=\"false\"\n *ngIf=\"\n !flowControlledByUI &&\n redirectToPlatformWarningParams &&\n templateModel.redirectToPlatform !=\n redirectToPlatformWarningParams.defaultRedirectUrl\n \"\n ></button>\n <ng-template #helpContent>\n <span\n ngNonBindable\n translate\n [translateParams]=\"redirectToPlatformWarningParams\"\n >\n For correct application behavior you can use only \"{{ host }}\" or \"{{\n defaultRedirectUrl\n }}\", the latter one is recommended.\n </span>\n </ng-template>\n </label>\n <input\n class=\"form-control\"\n id=\"redirectToPlatform\"\n name=\"redirectToPlatform\"\n type=\"url\"\n [required]=\"!flowControlledByUI\"\n [disabled]=\"flowControlledByUI\"\n [(ngModel)]=\"templateModel.redirectToPlatform\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example:\n redirectToPlatformWarningParams?.defaultRedirectUrl ||\n 'https://tenant.domain.com'\n }\n \"\n />\n </c8y-form-group>\n </div>\n <div class=\"col-sm-6\">\n <div\n class=\"form-group\"\n >\n <label\n class=\"c8y-switch m-t-24\"\n title=\"{{ 'Redirect to the user interface application`SSO authentication`' | translate }}\"\n for=\"flowControlledByUI\"\n >\n <input\n type=\"checkbox\"\n name=\"flowControlledByUI\"\n id=\"flowControlledByUI\"\n [(ngModel)]=\"flowControlledByUI\"\n (change)=\"templateModel.redirectToPlatform = flowControlledByUI ? '' : redirectToPlatform\"\n />\n <span></span>\n <span class=\"control-label\">{{ 'Redirect to the user interface application`SSO authentication`' | translate }}</span>\n <button\n type=\"button\"\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ REDIRECT_TO_THE_USER_INTERFACE_APPLICATION_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n ></button>\n </label>\n </div>\n </div>\n <div class=\"col-sm-12\">\n <div *ngIf=\"flowControlledByUI && redirectToPlatform != ''\">\n <div class=\"alert alert-warning max-width-100 m-b-32\"\n ngNonBindable\n translate\n [translateParams]=\"{\n redirectURI: '<tenant_domain>/apps/*'\n }\">\n Make sure that \"Valid Redirect URIs\" in the authorization server is set to \"{{ redirectURI }}\" or to the full URIs of the used applications if the authorization server does not support patterns.\n </div>\n </div>\n <div *ngIf=\"!flowControlledByUI && redirectToPlatform === ''\">\n <div class=\"alert alert-warning max-width-100 m-b-32\"\n ngNonBindable\n translate\n [translateParams]=\"{\n redirectURI: '<tenant_domain>/tenant/oauth'\n }\">\n Make sure that \"Valid Redirect URIs\" in the authorization server is set to \"{{ redirectURI }}\".\n </div>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('clientSecret')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"clientSecret\"\n translate\n >\n Client secret\n </label>\n <input\n class=\"form-control\"\n id=\"clientSecret\"\n name=\"clientSecret\"\n required\n [(ngModel)]=\"templateModel.clientSecret\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('clientId')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"clientId\"\n translate\n >\n Client ID\n </label>\n <input\n class=\"form-control\"\n id=\"clientId\"\n name=\"clientId\"\n required\n [(ngModel)]=\"templateModel.clientId\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate : { example: '254234981c-78a8-4588\u2026' }\n \"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('issuer')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"issuer\"\n translate\n >\n Token issuer\n </label>\n <input\n class=\"form-control\"\n id=\"issuer\"\n name=\"issuer\"\n required\n [(ngModel)]=\"templateModel.issuer\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate : { example: 'https://login.microsoftonline.de/237652-3727' }\n \"\n />\n </c8y-form-group>\n </div>\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('scopeId')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"scopeId\"\n translate\n >\n Scope ID\n </label>\n <input\n class=\"form-control\"\n id=\"scopeId\"\n name=\"scopeId\"\n [(ngModel)]=\"templateModel.scopeId\"\n [placeholder]=\"'e.g. {{ example }}' | translate: { example: '237652-3727' }\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('buttonName')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"buttonName\"\n translate\n >\n Button name\n </label>\n <input\n class=\"form-control\"\n id=\"buttonName\"\n name=\"buttonName\"\n required\n [(ngModel)]=\"templateModel.buttonName\"\n [placeholder]=\"'e.g. Log in with Azure AD' | translate\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('providerName')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"providerName\"\n translate\n >\n Provider name\n </label>\n <input\n class=\"form-control\"\n id=\"providerName\"\n name=\"providerName\"\n required\n [(ngModel)]=\"templateModel.providerName\"\n [placeholder]=\"'e.g. {{ example }}' | translate : { example: 'Azure AD' }\"\n />\n </c8y-form-group>\n </div>\n\n <div\n class=\"col-sm-6\"\n *ngIf=\"shouldShow('audience')\"\n >\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"audience\"\n translate\n >\n Audience\n </label>\n <input\n class=\"form-control\"\n id=\"audience\"\n name=\"audience\"\n required\n [(ngModel)]=\"templateModel.audience\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate : { example: 'https://test.example.com' }\n \"\n />\n </c8y-form-group>\n </div>\n </div>\n\n <div\n class=\"row\"\n *ngIf=\"shouldShow('visibleOnLoginPage')\"\n >\n <div class=\"col-sm-6\">\n <label\n class=\"c8y-switch\"\n title=\"{{ 'Visible on login page' | translate }}\"\n for=\"visibleOnLoginPage\"\n >\n <input\n id=\"visibleOnLoginPage\"\n name=\"visibleOnLoginPage\"\n type=\"checkbox\"\n [(ngModel)]=\"templateModel.visibleOnLoginPage\"\n />\n <span></span>\n <span class=\"control-label\">{{ 'Visible on login page' | translate }}</span>\n </label>\n </div>\n </div>\n </div>\n </div>\n</fieldset>\n" }]
1609
+ C8yTranslatePipe,
1610
+ DropAreaComponent,
1611
+ IconDirective
1612
+ ], template: "<fieldset class=\"p-24\">\n <div class=\"row\">\n <div class=\"col-xs-12 col-sm-3 col-md-2 m-b-xs-8\">\n <div\n class=\"h4 text-normal text-right text-left-xs\"\n translate\n >\n Basic\n </div>\n </div>\n\n @if (templateModel) {\n <div class=\"col-xs-12 col-sm-9 col-md-10 col-lg-9\">\n <div class=\"row\">\n @if (shouldShow('keyCloakAddress')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"keyCloakAddress\"\n translate\n >\n Keycloak address\n </label>\n <input\n class=\"form-control\"\n id=\"keyCloakAddress\"\n name=\"keyCloakAddress\"\n type=\"url\"\n required\n [(ngModel)]=\"templateModel.keyCloakAddress\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate: { example: 'https://example.de' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n @if (shouldShow('aadAddress')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"aadAddress\"\n translate\n >\n Azure AD address\n </label>\n <input\n class=\"form-control\"\n id=\"aadAddress\"\n name=\"aadAddress\"\n type=\"url\"\n required\n [(ngModel)]=\"templateModel.aadAddress\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate: { example: 'https://login.microsoftonline.de' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n @if (shouldShow('tenant')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"tenant\"\n translate\n >\n Tenant\n </label>\n <input\n class=\"form-control\"\n id=\"tenant\"\n name=\"tenant\"\n required\n [(ngModel)]=\"templateModel.tenant\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate: { example: 'c8y.onmicrosoft.de' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n @if (shouldShow('applicationId')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"applicationId\"\n translate\n >\n Application ID\n </label>\n <input\n class=\"form-control\"\n id=\"applicationId\"\n name=\"applicationId\"\n required\n [(ngModel)]=\"templateModel.applicationId\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('realmName')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"realmName\"\n translate\n >\n Realm name\n </label>\n <input\n class=\"form-control\"\n id=\"realmName\"\n name=\"realmName\"\n required\n [(ngModel)]=\"templateModel.realmName\"\n />\n </c8y-form-group>\n </div>\n }\n </div>\n\n @if (shouldShow('redirectToPlatform')) {\n <div class=\"row\">\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"redirectToPlatform\"\n >\n {{ 'Redirect URL' | translate }}\n @if (\n !flowControlledByUI &&\n redirectToPlatformWarningParams &&\n templateModel.redirectToPlatform !==\n redirectToPlatformWarningParams.defaultRedirectUrl\n ) {\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"helpContent\"\n placement=\"bottom\"\n triggers=\"focus\"\n type=\"button\"\n [adaptivePosition]=\"false\"\n ></button>\n }\n <ng-template #helpContent>\n <span\n ngNonBindable\n translate\n [translateParams]=\"redirectToPlatformWarningParams\"\n >\n For correct application behavior you can use only \"{{ host }}\" or \"{{\n defaultRedirectUrl\n }}\", the latter one is recommended.\n </span>\n </ng-template>\n </label>\n <input\n class=\"form-control\"\n id=\"redirectToPlatform\"\n name=\"redirectToPlatform\"\n type=\"url\"\n [required]=\"!flowControlledByUI\"\n [disabled]=\"flowControlledByUI\"\n [(ngModel)]=\"templateModel.redirectToPlatform\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate\n : {\n example:\n redirectToPlatformWarningParams?.defaultRedirectUrl ||\n 'https://tenant.domain.com'\n }\n \"\n />\n </c8y-form-group>\n </div>\n <div class=\"col-sm-6\">\n <div class=\"form-group\">\n <label\n class=\"c8y-switch m-t-24\"\n title=\"{{\n 'Redirect to the user interface application`SSO authentication`' | translate\n }}\"\n for=\"flowControlledByUI\"\n >\n <input\n id=\"flowControlledByUI\"\n name=\"flowControlledByUI\"\n type=\"checkbox\"\n [(ngModel)]=\"flowControlledByUI\"\n (change)=\"\n templateModel.redirectToPlatform = flowControlledByUI\n ? ''\n : redirectToPlatform\n \"\n />\n <span></span>\n <span class=\"control-label\">{{\n 'Redirect to the user interface application`SSO authentication`' | translate\n }}</span>\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ REDIRECT_TO_THE_USER_INTERFACE_APPLICATION_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </label>\n </div>\n </div>\n <div class=\"col-sm-12\">\n @if (flowControlledByUI && redirectToPlatform !== '') {\n <div>\n <div\n class=\"alert alert-warning max-width-100 m-b-32\"\n ngNonBindable\n translate\n [translateParams]=\"{\n redirectURI: '<tenant_domain>/apps/*'\n }\"\n >\n Make sure that \"Valid Redirect URIs\" in the authorization server is set to \"{{\n redirectURI\n }}\" or to the full URIs of the used applications if the authorization server\n does not support patterns.\n </div>\n </div>\n }\n @if (!flowControlledByUI && redirectToPlatform === '') {\n <div>\n <div\n class=\"alert alert-warning max-width-100 m-b-32\"\n ngNonBindable\n translate\n [translateParams]=\"{\n redirectURI: '<tenant_domain>/tenant/oauth'\n }\"\n >\n Make sure that \"Valid Redirect URIs\" in the authorization server is set to \"{{\n redirectURI\n }}\".\n </div>\n </div>\n }\n </div>\n </div>\n }\n <div class=\"row\">\n @if (shouldShow('clientSecret')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"clientSecret\"\n translate\n >\n Client secret\n </label>\n <input\n class=\"form-control\"\n id=\"clientSecret\"\n name=\"clientSecret\"\n required\n [(ngModel)]=\"templateModel.clientSecret\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('clientId')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"clientId\"\n translate\n >\n Client ID\n </label>\n <input\n class=\"form-control\"\n id=\"clientId\"\n name=\"clientId\"\n required\n [(ngModel)]=\"templateModel.clientId\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate: { example: '254234981c-78a8-4588\u2026' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('issuer')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"issuer\"\n translate\n >\n Token issuer\n </label>\n <input\n class=\"form-control\"\n id=\"issuer\"\n name=\"issuer\"\n required\n [(ngModel)]=\"templateModel.issuer\"\n [placeholder]=\"\n 'e.g. {{ example }}'\n | translate: { example: 'https://login.microsoftonline.de/237652-3727' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n @if (shouldShow('scopeId')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"scopeId\"\n translate\n >\n Scope ID\n </label>\n <input\n class=\"form-control\"\n id=\"scopeId\"\n name=\"scopeId\"\n [(ngModel)]=\"templateModel.scopeId\"\n [placeholder]=\"'e.g. {{ example }}' | translate: { example: '237652-3727' }\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('buttonName')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"buttonName\"\n translate\n >\n Button name\n </label>\n <input\n class=\"form-control\"\n id=\"buttonName\"\n name=\"buttonName\"\n required\n [(ngModel)]=\"templateModel.buttonName\"\n [placeholder]=\"'e.g. Log in with Azure AD' | translate\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('providerName')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"providerName\"\n translate\n >\n Provider name\n </label>\n <input\n class=\"form-control\"\n id=\"providerName\"\n name=\"providerName\"\n required\n [(ngModel)]=\"templateModel.providerName\"\n [placeholder]=\"'e.g. {{ example }}' | translate: { example: 'Azure AD' }\"\n />\n </c8y-form-group>\n </div>\n }\n\n @if (shouldShow('audience')) {\n <div class=\"col-sm-6\">\n <c8y-form-group>\n <label\n class=\"control-label\"\n for=\"audience\"\n translate\n >\n Audience\n </label>\n <input\n class=\"form-control\"\n id=\"audience\"\n name=\"audience\"\n required\n [(ngModel)]=\"templateModel.audience\"\n [placeholder]=\"\n 'e.g. {{ example }}' | translate: { example: 'https://test.example.com' }\n \"\n />\n </c8y-form-group>\n </div>\n }\n </div>\n\n @if (shouldShow('mtlsCertificatePem')) {\n <div class=\"row\">\n <div class=\"col-sm-12\">\n <label\n class=\"c8y-switch m-b-16\"\n title=\"{{ 'Enable mTLS authentication' | translate }}\"\n for=\"mtlsEnabled\"\n >\n <input\n id=\"mtlsEnabled\"\n name=\"mtlsEnabled\"\n type=\"checkbox\"\n [(ngModel)]=\"mtlsEnabled\"\n (change)=\"onMtlsEnabledChange()\"\n />\n <span></span>\n <span class=\"control-label\">{{ 'Enable mTLS authentication' | translate }}</span>\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ MTLS_ENABLED_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </label>\n </div>\n <div\n class=\"col-sm-12\"\n [class.hidden]=\"!mtlsEnabled\"\n >\n <div class=\"row\">\n <div class=\"col-sm-6\">\n <fieldset class=\"c8y-fieldset\">\n <legend>\n {{ 'Certificate (PEM)' | translate }}\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ MTLS_CERTIFICATE_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </legend>\n <c8y-form-group>\n <textarea\n class=\"form-control m-b-8 text-monospace\"\n [class.hidden]=\"!templateModel.mtlsCertificatePem\"\n aria-label=\"{{ 'Currently saved certificate' | translate }}\"\n id=\"mtlsCertificatePem\"\n name=\"mtlsCertificatePem\"\n rows=\"4\"\n readonly\n [(ngModel)]=\"templateModel.mtlsCertificatePem\"\n [required]=\"mtlsEnabled\"\n ></textarea>\n @let mtlsAddCertificateLabel = 'Drop file here' | translate;\n @let mtlsReplaceCertificateLabel =\n 'Drop a new certificate to replace' | translate;\n <c8y-drop-area\n class=\"drop-area-sm\"\n [title]=\"'Drop the certificate in PEM format.' | translate\"\n name=\"mtlsCertificateFile\"\n [(ngModel)]=\"mtlsCertificateFile\"\n [message]=\"\n templateModel.mtlsCertificatePem\n ? mtlsReplaceCertificateLabel\n : mtlsAddCertificateLabel\n \"\n data-cy=\"c8y-sso-mtls--certificate-drop-area\"\n (dropped)=\"uploadMtlsCertificate($event)\"\n [maxAllowedFiles]=\"1\"\n [maxFileSizeInMegaBytes]=\"1\"\n [accept]=\"'.pem'\"\n ></c8y-drop-area>\n </c8y-form-group>\n </fieldset>\n </div>\n <div class=\"col-sm-6\">\n <fieldset class=\"c8y-fieldset\">\n <legend>\n {{ 'Private key (PEM)' | translate }}\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n popover=\"{{ MTLS_PRIVATE_KEY_TOOLTIP | translate }}\"\n placement=\"right\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n ></button>\n </legend>\n <c8y-form-group>\n <textarea\n class=\"form-control m-b-8 text-monospace\"\n [class.hidden]=\"!templateModel.mtlsPrivateKeyPem\"\n aria-label=\"{{ 'Currently saved private key' | translate }}\"\n id=\"mtlsPrivateKeyPem\"\n name=\"mtlsPrivateKeyPem\"\n rows=\"{{ templateModel.mtlsPrivateKeyPem ? '3' : '4' }}\"\n readonly\n [(ngModel)]=\"templateModel.mtlsPrivateKeyPem\"\n [required]=\"mtlsEnabled\"\n ></textarea>\n @let mtlsAddPrivateKeyLabel = 'Drop file here' | translate;\n @let mtlsReplacePrivateKeyLabel =\n 'Drop a new private key to replace' | translate;\n <c8y-drop-area\n class=\"drop-area-sm\"\n [title]=\"'Drop the private key in PEM format.' | translate\"\n name=\"mtlsPrivateKeyFile\"\n [(ngModel)]=\"mtlsPrivateKeyFile\"\n [message]=\"\n templateModel.mtlsPrivateKeyPem\n ? mtlsReplacePrivateKeyLabel\n : mtlsAddPrivateKeyLabel\n \"\n data-cy=\"c8y-sso-mtls--private-key-drop-area\"\n (dropped)=\"uploadMtlsPrivateKey($event)\"\n [maxAllowedFiles]=\"1\"\n [maxFileSizeInMegaBytes]=\"1\"\n [accept]=\"'.pem,.key'\"\n ></c8y-drop-area>\n\n @if (templateModel.mtlsPrivateKeyPem) {\n <small class=\"text-muted d-flex a-i-center gap-4 m-t-4\">\n <i\n class=\"text-info\"\n c8yIcon=\"info-circle\"\n aria-hidden=\"true\"\n ></i>\n @if (isMtlsPrivateKeyEncrypted) {\n <span translate>\n The private key is encrypted for security reasons.\n </span>\n } @else {\n <span translate>\n The private key will be encrypted on the server after saving.\n </span>\n }\n </small>\n }\n </c8y-form-group>\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n }\n\n @if (shouldShow('visibleOnLoginPage')) {\n <div class=\"row\">\n <div class=\"col-sm-6\">\n <label\n class=\"c8y-switch\"\n title=\"{{ 'Visible on login page' | translate }}\"\n for=\"visibleOnLoginPage\"\n >\n <input\n id=\"visibleOnLoginPage\"\n name=\"visibleOnLoginPage\"\n type=\"checkbox\"\n [(ngModel)]=\"templateModel.visibleOnLoginPage\"\n />\n <span></span>\n <span class=\"control-label\">{{ 'Visible on login page' | translate }}</span>\n </label>\n </div>\n </div>\n }\n </div>\n }\n </div>\n</fieldset>\n" }]
1555
1613
  }], ctorParameters: () => [{ type: i1$1.TenantService }], propDecorators: { templateModel: [{
1556
1614
  type: Input
1557
1615
  }], shouldShow: [] } });
@@ -2393,6 +2451,12 @@ class KeyCloakConfigurationMapper {
2393
2451
  externalTokenConfig: templateModel.externalTokenConfig.toExternalTokenConfig(),
2394
2452
  useIdToken: templateModel.useIdToken
2395
2453
  };
2454
+ if (templateModel.mtlsCertificatePem) {
2455
+ ssoConfiguration.mtlsCertificatePem = templateModel.mtlsCertificatePem;
2456
+ }
2457
+ if (templateModel.mtlsPrivateKeyPem) {
2458
+ ssoConfiguration.mtlsPrivateKeyPem = templateModel.mtlsPrivateKeyPem;
2459
+ }
2396
2460
  return ssoConfiguration;
2397
2461
  }
2398
2462
  mapTo(ssoConfiguration) {
@@ -2411,7 +2475,9 @@ class KeyCloakConfigurationMapper {
2411
2475
  visibleOnLoginPage: ssoConfiguration.visibleOnLoginPage,
2412
2476
  accessTokenToUserDataMappings: ssoConfiguration.accessTokenToUserDataMappings,
2413
2477
  externalTokenConfig: new ExternalToken(ssoConfiguration.externalTokenConfig),
2414
- useIdToken: ssoConfiguration.useIdToken
2478
+ useIdToken: ssoConfiguration.useIdToken,
2479
+ mtlsCertificatePem: ssoConfiguration.mtlsCertificatePem || '',
2480
+ mtlsPrivateKeyPem: ssoConfiguration.mtlsPrivateKeyPem || ''
2415
2481
  };
2416
2482
  }
2417
2483
  getKeyCloakAddressFromUrl(url) {