@keycloakify/angular 0.0.1-rc.2 → 0.0.1-rc.3

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 (145) hide show
  1. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +3 -3
  2. package/login/components/field-errors/field-errors.component.mjs +3 -3
  3. package/login/components/group-label/group-label.component.mjs +3 -3
  4. package/login/components/input-field-by-type/input-field-by-type.component.mjs +4 -11
  5. package/login/components/input-tag/input-tag.component.mjs +3 -3
  6. package/login/components/input-tag-selects/input-tag-selects.component.mjs +3 -3
  7. package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +3 -3
  8. package/login/components/password-wrapper/password-wrapper.component.mjs +3 -3
  9. package/login/components/select-tag/select-tag.component.mjs +3 -3
  10. package/login/components/textarea-tag/textarea-tag.component.mjs +3 -3
  11. package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +4 -11
  12. package/login/containers/template.component.mjs +4 -5
  13. package/login/pages/code/code.component.mjs +3 -3
  14. package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +3 -3
  15. package/login/pages/delete-credential/delete-credential.component.mjs +3 -3
  16. package/login/pages/error/error.component.mjs +3 -3
  17. package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +3 -3
  18. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +4 -9
  19. package/login/pages/info/info.component.mjs +3 -3
  20. package/login/pages/login/login.component.mjs +5 -15
  21. package/login/pages/login-config-totp/login-config-totp.component.mjs +4 -11
  22. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +3 -3
  23. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +3 -3
  24. package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +3 -3
  25. package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +3 -3
  26. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +3 -3
  27. package/login/pages/login-otp/login-otp.component.mjs +3 -3
  28. package/login/pages/login-page-expired/login-page-expired.component.mjs +3 -3
  29. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +3 -3
  30. package/login/pages/login-password/login-password.component.mjs +4 -10
  31. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +4 -9
  32. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +3 -3
  33. package/login/pages/login-reset-otp/login-reset-otp.component.mjs +3 -3
  34. package/login/pages/login-reset-password/login-reset-password.component.mjs +3 -3
  35. package/login/pages/login-update-password/login-update-password.component.mjs +4 -11
  36. package/login/pages/login-update-profile/login-update-profile.component.mjs +4 -9
  37. package/login/pages/login-username/login-username.component.mjs +5 -14
  38. package/login/pages/login-verify-email/login-verify-email.component.mjs +3 -3
  39. package/login/pages/login-x509-info/login-x509-info.component.mjs +3 -3
  40. package/login/pages/logout-confirm/logout-confirm.component.mjs +3 -3
  41. package/login/pages/register/register.component.mjs +3 -3
  42. package/login/pages/saml-post-form/saml-post-form.component.mjs +3 -3
  43. package/login/pages/select-authenticator/select-authenticator.component.mjs +4 -10
  44. package/login/pages/terms/terms.component.mjs +3 -3
  45. package/login/pages/update-email/update-email.component.mjs +4 -10
  46. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +4 -10
  47. package/login/pages/webauthn-error/webauthn-error.component.mjs +4 -9
  48. package/login/pages/webauthn-register/webauthn-register.component.mjs +4 -9
  49. package/package.json +5 -5
  50. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +19 -19
  51. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +2 -12
  52. package/src/login/components/field-errors/field-errors.component.html +10 -10
  53. package/src/login/components/field-errors/field-errors.component.ts +1 -7
  54. package/src/login/components/group-label/group-label.component.html +25 -25
  55. package/src/login/components/group-label/group-label.component.ts +1 -8
  56. package/src/login/components/input-field-by-type/input-field-by-type.component.html +57 -57
  57. package/src/login/components/input-field-by-type/input-field-by-type.component.ts +3 -21
  58. package/src/login/components/input-tag/input-tag.component.html +41 -45
  59. package/src/login/components/input-tag/input-tag.component.ts +2 -13
  60. package/src/login/components/input-tag-selects/input-tag-selects.component.html +22 -22
  61. package/src/login/components/input-tag-selects/input-tag-selects.component.ts +3 -17
  62. package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +15 -15
  63. package/src/login/components/password-wrapper/password-wrapper.component.html +13 -13
  64. package/src/login/components/password-wrapper/password-wrapper.component.ts +2 -15
  65. package/src/login/components/select-tag/select-tag.component.html +26 -26
  66. package/src/login/components/select-tag/select-tag.component.ts +4 -19
  67. package/src/login/components/textarea-tag/textarea-tag.component.html +13 -15
  68. package/src/login/components/textarea-tag/textarea-tag.component.ts +2 -12
  69. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +71 -71
  70. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +4 -28
  71. package/src/login/containers/template.component.html +183 -183
  72. package/src/login/containers/template.component.ts +4 -22
  73. package/src/login/pages/code/code.component.html +21 -21
  74. package/src/login/pages/code/code.component.ts +1 -5
  75. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +44 -42
  76. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +2 -7
  77. package/src/login/pages/delete-credential/delete-credential.component.html +29 -29
  78. package/src/login/pages/delete-credential/delete-credential.component.ts +3 -14
  79. package/src/login/pages/error/error.component.html +20 -20
  80. package/src/login/pages/error/error.component.ts +1 -5
  81. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +31 -31
  82. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +3 -15
  83. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +36 -36
  84. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +4 -21
  85. package/src/login/pages/info/info.component.html +45 -45
  86. package/src/login/pages/info/info.component.ts +3 -15
  87. package/src/login/pages/login/login.component.html +194 -194
  88. package/src/login/pages/login/login.component.ts +5 -30
  89. package/src/login/pages/login-config-totp/login-config-totp.component.html +189 -179
  90. package/src/login/pages/login-config-totp/login-config-totp.component.ts +5 -26
  91. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +35 -35
  92. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +3 -14
  93. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +34 -34
  94. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +3 -16
  95. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +32 -30
  96. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +3 -14
  97. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +83 -81
  98. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +3 -14
  99. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +57 -57
  100. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +3 -16
  101. package/src/login/pages/login-otp/login-otp.component.html +96 -96
  102. package/src/login/pages/login-otp/login-otp.component.ts +2 -12
  103. package/src/login/pages/login-page-expired/login-page-expired.component.html +31 -31
  104. package/src/login/pages/login-page-expired/login-page-expired.component.ts +3 -14
  105. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +183 -181
  106. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +2 -9
  107. package/src/login/pages/login-password/login-password.component.html +82 -82
  108. package/src/login/pages/login-password/login-password.component.ts +3 -20
  109. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +142 -142
  110. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +4 -23
  111. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +67 -67
  112. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +4 -18
  113. package/src/login/pages/login-reset-otp/login-reset-otp.component.html +61 -59
  114. package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +2 -12
  115. package/src/login/pages/login-reset-password/login-reset-password.component.html +84 -84
  116. package/src/login/pages/login-reset-password/login-reset-password.component.ts +3 -14
  117. package/src/login/pages/login-update-password/login-update-password.component.html +107 -107
  118. package/src/login/pages/login-update-password/login-update-password.component.ts +5 -26
  119. package/src/login/pages/login-update-profile/login-update-profile.component.html +53 -53
  120. package/src/login/pages/login-update-profile/login-update-profile.component.ts +4 -21
  121. package/src/login/pages/login-username/login-username.component.html +146 -146
  122. package/src/login/pages/login-username/login-username.component.ts +4 -25
  123. package/src/login/pages/login-verify-email/login-verify-email.component.html +22 -22
  124. package/src/login/pages/login-verify-email/login-verify-email.component.ts +3 -14
  125. package/src/login/pages/login-x509-info/login-x509-info.component.html +96 -96
  126. package/src/login/pages/login-x509-info/login-x509-info.component.ts +2 -12
  127. package/src/login/pages/logout-confirm/logout-confirm.component.html +51 -51
  128. package/src/login/pages/logout-confirm/logout-confirm.component.ts +2 -12
  129. package/src/login/pages/register/register.component.html +113 -113
  130. package/src/login/pages/register/register.component.ts +2 -13
  131. package/src/login/pages/saml-post-form/saml-post-form.component.html +47 -48
  132. package/src/login/pages/saml-post-form/saml-post-form.component.ts +2 -14
  133. package/src/login/pages/select-authenticator/select-authenticator.component.html +43 -44
  134. package/src/login/pages/select-authenticator/select-authenticator.component.ts +4 -21
  135. package/src/login/pages/terms/terms.component.html +32 -32
  136. package/src/login/pages/terms/terms.component.ts +2 -12
  137. package/src/login/pages/update-email/update-email.component.html +52 -52
  138. package/src/login/pages/update-email/update-email.component.ts +3 -20
  139. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +146 -148
  140. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +5 -29
  141. package/src/login/pages/webauthn-error/webauthn-error.component.html +53 -53
  142. package/src/login/pages/webauthn-error/webauthn-error.component.ts +3 -18
  143. package/src/login/pages/webauthn-register/webauthn-register.component.html +73 -73
  144. package/src/login/pages/webauthn-register/webauthn-register.component.ts +4 -20
  145. package/src/tsconfig.json +0 -1
@@ -4,187 +4,197 @@
4
4
  @let mode = kcContext.mode;
5
5
  @let isAppInitiatedAction = kcContext.isAppInitiatedAction;
6
6
  <kc-login-template
7
- [displayInfo]="displayInfo"
8
- [bodyClassName]="bodyClassName()"
9
- [displayMessage]="displayMessage"
10
- [displayRequiredFields]="displayRequiredFields()"
11
- [documentTitle]="documentTitle()"
7
+ [displayInfo]="displayInfo"
8
+ [bodyClassName]="bodyClassName()"
9
+ [displayMessage]="displayMessage"
10
+ [displayRequiredFields]="displayRequiredFields()"
11
+ [documentTitle]="documentTitle()"
12
12
  >
13
- <ng-container headerNode>
14
- {{ 'loginTotpStep1' | msgStr }}
15
- </ng-container>
16
- <ng-container content>
17
- <ol id="kc-totp-settings">
18
- <li>
19
- <p>{{ 'loginTotpStep1' | msgStr }}</p>
20
- <ul id="kc-totp-supported-apps">
21
- @for (app of totp.supportedApplications; track app) {
22
- <li>{{ app | advancedMsgStr }}</li>
23
- }
24
- </ul>
25
- </li>
26
- @if (kcContext.mode === 'manual') {
27
- <li>
28
- <p>{{ 'loginTotpManualStep2' | msgStr }}</p>
29
- <p>
30
- <span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
31
- </p>
32
- <p>
33
- <a
34
- href="{{ totp.qrUrl }}"
35
- id="mode-barcode"
36
- >
37
- {{ 'loginTotpScanBarcode' | msgStr }}
38
- </a>
39
- </p>
40
- </li>
41
- <li>
42
- <p>{{ 'loginTotpManualStep3' | msgStr }}</p>
43
- <p></p>
44
- <ul>
45
- <li id="kc-totp-type">
46
- {{ 'loginTotpType' | msgStr }}: {{ 'loginTotp.' + totp.policy.type | advancedMsgStr }}
13
+ <ng-container headerNode>
14
+ {{ 'loginTotpStep1' | msgStr }}
15
+ </ng-container>
16
+ <ng-container content>
17
+ <ol id="kc-totp-settings">
18
+ <li>
19
+ <p>{{ 'loginTotpStep1' | msgStr }}</p>
20
+ <ul id="kc-totp-supported-apps">
21
+ @for (app of totp.supportedApplications; track app) {
22
+ <li>{{ app | advancedMsgStr }}</li>
23
+ }
24
+ </ul>
47
25
  </li>
48
- <li id="kc-totp-algorithm">{{ 'loginTotpAlgorithm' | msgStr }}: {{ totp.policy.getAlgorithmKey() }}</li>
49
- <li id="kc-totp-digits">{{ 'loginTotpDigits' | msgStr }}: {{ totp.policy.digits }}</li>
50
- @if (totp.policy.type === 'totp') {
51
- <li id="kc-totp-period">{{ 'loginTotpInterval' | msgStr }}: {{ totp.policy.period }}</li>
26
+ @if (kcContext.mode === 'manual') {
27
+ <li>
28
+ <p>{{ 'loginTotpManualStep2' | msgStr }}</p>
29
+ <p>
30
+ <span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
31
+ </p>
32
+ <p>
33
+ <a
34
+ href="{{ totp.qrUrl }}"
35
+ id="mode-barcode"
36
+ >
37
+ {{ 'loginTotpScanBarcode' | msgStr }}
38
+ </a>
39
+ </p>
40
+ </li>
41
+ <li>
42
+ <p>{{ 'loginTotpManualStep3' | msgStr }}</p>
43
+ <p></p>
44
+ <ul>
45
+ <li id="kc-totp-type">
46
+ {{ 'loginTotpType' | msgStr }}:
47
+ {{ 'loginTotp.' + totp.policy.type | advancedMsgStr }}
48
+ </li>
49
+ <li id="kc-totp-algorithm">
50
+ {{ 'loginTotpAlgorithm' | msgStr }}:
51
+ {{ totp.policy.getAlgorithmKey() }}
52
+ </li>
53
+ <li id="kc-totp-digits">{{ 'loginTotpDigits' | msgStr }}: {{ totp.policy.digits }}</li>
54
+ @if (totp.policy.type === 'totp') {
55
+ <li id="kc-totp-period">
56
+ {{ 'loginTotpInterval' | msgStr }}:
57
+ {{ totp.policy.period }}
58
+ </li>
59
+ } @else {
60
+ <li id="kc-totp-counter">
61
+ {{ 'loginTotpCounter' | msgStr }}:
62
+ {{ totp.policy.initialCounter }}
63
+ </li>
64
+ }
65
+ </ul>
66
+ </li>
52
67
  } @else {
53
- <li id="kc-totp-counter">{{ 'loginTotpCounter' | msgStr }}: {{ totp.policy.initialCounter }}</li>
68
+ <li>
69
+ <p>{{ 'loginTotpStep2' | msgStr }}</p>
70
+ <img
71
+ id="kc-totp-secret-qr-code"
72
+ src="{{ 'data:image/png;base64, ' + totp.totpSecretQrCode }}"
73
+ alt="Figure: Barcode"
74
+ />
75
+ <br />
76
+ <p>
77
+ <a
78
+ href="{{ totp.manualUrl }}"
79
+ id="mode-manual"
80
+ >
81
+ {{ 'loginTotpUnableToScan' | msgStr }}
82
+ </a>
83
+ </p>
84
+ </li>
54
85
  }
55
- </ul>
56
- </li>
57
- } @else {
58
- <li>
59
- <p>{{ 'loginTotpStep2' | msgStr }}</p>
60
- <img
61
- id="kc-totp-secret-qr-code"
62
- src="{{ 'data:image/png;base64, ' + totp.totpSecretQrCode }}"
63
- alt="Figure: Barcode"
64
- />
65
- <br />
66
- <p>
67
- <a
68
- href="{{ totp.manualUrl }}"
69
- id="mode-manual"
70
- >
71
- {{ 'loginTotpUnableToScan' | msgStr }}
72
- </a>
73
- </p>
74
- </li>
75
- }
76
- <li>
77
- <p>{{ 'loginTotpStep3' | msgStr }}</p>
78
- <p>{{ 'loginTotpStep3DeviceName' | msgStr }}</p>
79
- </li>
80
- </ol>
81
- <form
82
- [action]="url.loginAction"
83
- [kcClass]="'kcFormClass'"
84
- id="kc-totp-settings-form"
85
- method="post"
86
- >
87
- <div [kcClass]="'kcFormGroupClass'">
88
- <div [kcClass]="'kcInputWrapperClass'">
89
- <label
90
- for="totp"
91
- [kcClass]="'kcLabelClass'"
92
- >
93
- {{ 'authenticatorCode' | msgStr }}
94
- </label>
95
- <span class="required">*</span>
96
- </div>
97
- <div [kcClass]="'kcInputWrapperClass'">
98
- <input
99
- type="text"
100
- id="totp"
101
- name="totp"
102
- autoComplete="off"
103
- [kcClass]="'kcInputClass'"
104
- [attr.aria-invalid]="messagesPerField.existsError('totp')"
105
- />
106
- @if (messagesPerField.existsError('totp')) {
107
- <span
108
- id="input-error-otp-code"
109
- [kcClass]="'kcInputErrorMessageClass'"
110
- aria-live="polite"
111
- [innerHTML]="messagesPerField.get('totp') | kcSanitize: 'html'"
112
- ></span>
113
- }
114
- </div>
115
- <input
116
- type="hidden"
117
- id="totpSecret"
118
- name="totpSecret"
119
- [value]="totp.totpSecret"
120
- />
121
- @if (mode) {
122
- <input
123
- type="hidden"
124
- id="mode"
125
- [value]="mode"
126
- />
127
- }
128
- </div>
129
- <div [kcClass]="'kcFormGroupClass'">
130
- <div [kcClass]="'kcInputWrapperClass'">
131
- <label
132
- for="userLabel"
133
- [kcClass]="'kcLabelClass'"
134
- >
135
- {{ 'loginTotpDeviceName' | msgStr }}
136
- </label>
137
- @if (totp.otpCredentials.length >= 1) {
138
- <span class="required">*</span>
139
- }
140
- </div>
141
- <div [kcClass]="'kcInputWrapperClass'">
142
- <input
143
- type="text"
144
- id="userLabel"
145
- name="userLabel"
146
- autoComplete="off"
147
- [kcClass]="'kcInputClass'"
148
- [attr.aria-invalid]="messagesPerField.existsError('userLabel')"
149
- />
150
- @if (messagesPerField.existsError('userLabel')) {
151
- <span
152
- id="input-error-otp-label"
153
- [kcClass]="'kcInputErrorMessageClass'"
154
- aria-live="polite"
155
- [innerHTML]="messagesPerField.get('userLabel') | kcSanitize: 'html'"
156
- ></span>
157
- }
158
- </div>
159
- </div>
160
- <div [kcClass]="'kcFormGroupClass'">
161
- <kc-logout-other-sessions />
162
- </div>
163
-
164
- @if (isAppInitiatedAction) {
165
- <input
166
- type="submit"
167
- [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
168
- id="saveTOTPBtn"
169
- [value]="'doSubmit' | msgStr"
170
- />
171
- <button
172
- type="submit"
173
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass', 'kcButtonLargeClass']"
174
- id="cancelTOTPBtn"
175
- name="cancel-aia"
176
- [value]="true"
86
+ <li>
87
+ <p>{{ 'loginTotpStep3' | msgStr }}</p>
88
+ <p>{{ 'loginTotpStep3DeviceName' | msgStr }}</p>
89
+ </li>
90
+ </ol>
91
+ <form
92
+ [action]="url.loginAction"
93
+ [kcClass]="'kcFormClass'"
94
+ id="kc-totp-settings-form"
95
+ method="post"
177
96
  >
178
- {{ 'doCancel' | msgStr }}
179
- </button>
180
- } @else {
181
- <input
182
- type="submit"
183
- [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
184
- id="saveTOTPBtn"
185
- [value]="'doSubmit' | msgStr"
186
- />
187
- }
188
- </form> </ng-container
189
- ></kc-login-template>
190
- >
97
+ <div [kcClass]="'kcFormGroupClass'">
98
+ <div [kcClass]="'kcInputWrapperClass'">
99
+ <label
100
+ for="totp"
101
+ [kcClass]="'kcLabelClass'"
102
+ >
103
+ {{ 'authenticatorCode' | msgStr }}
104
+ </label>
105
+ <span class="required">*</span>
106
+ </div>
107
+ <div [kcClass]="'kcInputWrapperClass'">
108
+ <input
109
+ type="text"
110
+ id="totp"
111
+ name="totp"
112
+ autoComplete="off"
113
+ [kcClass]="'kcInputClass'"
114
+ [attr.aria-invalid]="messagesPerField.existsError('totp')"
115
+ />
116
+ @if (messagesPerField.existsError('totp')) {
117
+ <span
118
+ id="input-error-otp-code"
119
+ [kcClass]="'kcInputErrorMessageClass'"
120
+ aria-live="polite"
121
+ [innerHTML]="messagesPerField.get('totp') | kcSanitize: 'html'"
122
+ ></span>
123
+ }
124
+ </div>
125
+ <input
126
+ type="hidden"
127
+ id="totpSecret"
128
+ name="totpSecret"
129
+ [value]="totp.totpSecret"
130
+ />
131
+ @if (mode) {
132
+ <input
133
+ type="hidden"
134
+ id="mode"
135
+ [value]="mode"
136
+ />
137
+ }
138
+ </div>
139
+ <div [kcClass]="'kcFormGroupClass'">
140
+ <div [kcClass]="'kcInputWrapperClass'">
141
+ <label
142
+ for="userLabel"
143
+ [kcClass]="'kcLabelClass'"
144
+ >
145
+ {{ 'loginTotpDeviceName' | msgStr }}
146
+ </label>
147
+ @if (totp.otpCredentials.length >= 1) {
148
+ <span class="required">*</span>
149
+ }
150
+ </div>
151
+ <div [kcClass]="'kcInputWrapperClass'">
152
+ <input
153
+ type="text"
154
+ id="userLabel"
155
+ name="userLabel"
156
+ autoComplete="off"
157
+ [kcClass]="'kcInputClass'"
158
+ [attr.aria-invalid]="messagesPerField.existsError('userLabel')"
159
+ />
160
+ @if (messagesPerField.existsError('userLabel')) {
161
+ <span
162
+ id="input-error-otp-label"
163
+ [kcClass]="'kcInputErrorMessageClass'"
164
+ aria-live="polite"
165
+ [innerHTML]="messagesPerField.get('userLabel') | kcSanitize: 'html'"
166
+ ></span>
167
+ }
168
+ </div>
169
+ </div>
170
+ <div [kcClass]="'kcFormGroupClass'">
171
+ <kc-logout-other-sessions />
172
+ </div>
173
+
174
+ @if (isAppInitiatedAction) {
175
+ <input
176
+ type="submit"
177
+ [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
178
+ id="saveTOTPBtn"
179
+ [value]="'doSubmit' | msgStr"
180
+ />
181
+ <button
182
+ type="submit"
183
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass', 'kcButtonLargeClass']"
184
+ id="cancelTOTPBtn"
185
+ name="cancel-aia"
186
+ [value]="true"
187
+ >
188
+ {{ 'doCancel' | msgStr }}
189
+ </button>
190
+ } @else {
191
+ <input
192
+ type="submit"
193
+ [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
194
+ id="saveTOTPBtn"
195
+ [value]="'doSubmit' | msgStr"
196
+ />
197
+ }
198
+ </form>
199
+ </ng-container>
200
+ </kc-login-template>
@@ -1,15 +1,5 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- Component,
4
- forwardRef,
5
- inject,
6
- input
7
- } from '@angular/core';
8
- import {
9
- CLASSES,
10
- KC_CONTEXT,
11
- USE_DEFAULT_CSS
12
- } from '@keycloakify/angular/lib/public-api';
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
2
+ import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
13
3
  import { ClassKey } from 'keycloakify/login/lib/kcClsx';
14
4
  import { KcContext } from 'keycloakify/login/KcContext';
15
5
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
@@ -22,14 +12,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
22
12
 
23
13
  @Component({
24
14
  standalone: true,
25
- imports: [
26
- TemplateComponent,
27
- MsgStrPipe,
28
- AdvancedMsgStrPipe,
29
- KcClassDirective,
30
- KcSanitizePipe,
31
- LogoutOtherSessionsComponent
32
- ],
15
+ imports: [TemplateComponent, MsgStrPipe, AdvancedMsgStrPipe, KcClassDirective, KcSanitizePipe, LogoutOtherSessionsComponent],
33
16
  selector: 'kc-root',
34
17
  templateUrl: 'login-config-totp.component.html',
35
18
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -41,8 +24,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
41
24
  ]
42
25
  })
43
26
  export class LoginConfigTotpComponent extends ComponentReference {
44
- kcContext =
45
- inject<Extract<KcContext, { pageId: 'login-config-totp.ftl' }>>(KC_CONTEXT);
27
+ kcContext = inject<Extract<KcContext, { pageId: 'login-config-totp.ftl' }>>(KC_CONTEXT);
46
28
 
47
29
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
48
30
  override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
@@ -50,8 +32,5 @@ export class LoginConfigTotpComponent extends ComponentReference {
50
32
  documentTitle = input<string>();
51
33
  bodyClassName = input<string>();
52
34
  displayInfo: boolean = false;
53
- displayMessage: boolean = this.kcContext.messagesPerField.existsError(
54
- 'totp',
55
- 'userLabel'
56
- );
35
+ displayMessage: boolean = this.kcContext.messagesPerField.existsError('totp', 'userLabel');
57
36
  }
@@ -1,41 +1,41 @@
1
1
  @let url = kcContext.url;
2
2
  @let idpAlias = kcContext.idpAlias;
3
3
  <kc-login-template
4
- [displayInfo]="displayInfo"
5
- [bodyClassName]="bodyClassName()"
6
- [displayMessage]="displayMessage"
7
- [displayRequiredFields]="displayRequiredFields()"
8
- [documentTitle]="documentTitle()"
4
+ [displayInfo]="displayInfo"
5
+ [bodyClassName]="bodyClassName()"
6
+ [displayMessage]="displayMessage"
7
+ [displayRequiredFields]="displayRequiredFields()"
8
+ [documentTitle]="documentTitle()"
9
9
  >
10
- <ng-container headerNode>
11
- {{ 'confirmLinkIdpTitle' | msgStr }}
12
- </ng-container>
13
- <ng-container content>
14
- <form
15
- id="kc-register-form"
16
- [action]="url.loginAction"
17
- method="post"
18
- >
19
- <div [kcClass]="'kcFormGroupClass'">
20
- <button
21
- type="submit"
22
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
23
- name="submitAction"
24
- id="updateProfile"
25
- value="updateProfile"
10
+ <ng-container headerNode>
11
+ {{ 'confirmLinkIdpTitle' | msgStr }}
12
+ </ng-container>
13
+ <ng-container content>
14
+ <form
15
+ id="kc-register-form"
16
+ [action]="url.loginAction"
17
+ method="post"
26
18
  >
27
- {{ 'confirmLinkIdpReviewProfile' | msgStr }}
28
- </button>
29
- <button
30
- type="submit"
31
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
32
- name="submitAction"
33
- id="linkAccount"
34
- value="linkAccount"
35
- >
36
- {{ 'confirmLinkIdpContinue' | msgStr: idpAlias }}
37
- </button>
38
- </div>
39
- </form>
40
- </ng-container>
19
+ <div [kcClass]="'kcFormGroupClass'">
20
+ <button
21
+ type="submit"
22
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
23
+ name="submitAction"
24
+ id="updateProfile"
25
+ value="updateProfile"
26
+ >
27
+ {{ 'confirmLinkIdpReviewProfile' | msgStr }}
28
+ </button>
29
+ <button
30
+ type="submit"
31
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
32
+ name="submitAction"
33
+ id="linkAccount"
34
+ value="linkAccount"
35
+ >
36
+ {{ 'confirmLinkIdpContinue' | msgStr: idpAlias }}
37
+ </button>
38
+ </div>
39
+ </form>
40
+ </ng-container>
41
41
  </kc-login-template>
@@ -1,15 +1,5 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- Component,
4
- forwardRef,
5
- inject,
6
- input
7
- } from '@angular/core';
8
- import {
9
- CLASSES,
10
- KC_CONTEXT,
11
- USE_DEFAULT_CSS
12
- } from '@keycloakify/angular/lib/public-api';
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
2
+ import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
13
3
  import { ClassKey } from 'keycloakify/login/lib/kcClsx';
14
4
  import { KcContext } from 'keycloakify/login/KcContext';
15
5
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
@@ -31,8 +21,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
31
21
  ]
32
22
  })
33
23
  export class LoginIdpLinkConfirmComponent extends ComponentReference {
34
- kcContext =
35
- inject<Extract<KcContext, { pageId: 'login-idp-link-confirm.ftl' }>>(KC_CONTEXT);
24
+ kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-confirm.ftl' }>>(KC_CONTEXT);
36
25
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
37
26
  override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
38
27
  displayRequiredFields = input(false);
@@ -2,39 +2,39 @@
2
2
  @let idpDisplayName = kcContext.idpDisplayName;
3
3
 
4
4
  <kc-login-template
5
- [displayInfo]="displayInfo"
6
- [bodyClassName]="bodyClassName()"
7
- [displayMessage]="displayMessage"
8
- [displayRequiredFields]="displayRequiredFields()"
9
- [documentTitle]="documentTitle()"
5
+ [displayInfo]="displayInfo"
6
+ [bodyClassName]="bodyClassName()"
7
+ [displayMessage]="displayMessage"
8
+ [displayRequiredFields]="displayRequiredFields()"
9
+ [documentTitle]="documentTitle()"
10
10
  >
11
- <ng-container headerNode>
12
- {{ 'confirmOverrideIdpTitle' | msgStr }}
13
- </ng-container>
14
- <ng-container content>
15
- <form
16
- id="kc-register-form"
17
- [action]="url.loginAction"
18
- method="post"
19
- >
20
- {{ 'pageExpiredMsg1' | msgStr }}
21
- <a
22
- id="loginRestartLink"
23
- [href]="url.loginRestartFlowUrl"
24
- >
25
- {{ 'doClickHere' | msgStr }}
26
- </a>
27
- <br />
28
- <br />
29
- <button
30
- type="submit"
31
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
32
- name="submitAction"
33
- id="confirmOverride"
34
- value="confirmOverride"
35
- >
36
- {{ 'confirmOverrideIdpContinue' | msgStr: idpDisplayName }}
37
- </button>
38
- </form>
39
- </ng-container>
11
+ <ng-container headerNode>
12
+ {{ 'confirmOverrideIdpTitle' | msgStr }}
13
+ </ng-container>
14
+ <ng-container content>
15
+ <form
16
+ id="kc-register-form"
17
+ [action]="url.loginAction"
18
+ method="post"
19
+ >
20
+ {{ 'pageExpiredMsg1' | msgStr }}
21
+ <a
22
+ id="loginRestartLink"
23
+ [href]="url.loginRestartFlowUrl"
24
+ >
25
+ {{ 'doClickHere' | msgStr }}
26
+ </a>
27
+ <br />
28
+ <br />
29
+ <button
30
+ type="submit"
31
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
32
+ name="submitAction"
33
+ id="confirmOverride"
34
+ value="confirmOverride"
35
+ >
36
+ {{ 'confirmOverrideIdpContinue' | msgStr: idpDisplayName }}
37
+ </button>
38
+ </form>
39
+ </ng-container>
40
40
  </kc-login-template>
@@ -1,15 +1,5 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- Component,
4
- forwardRef,
5
- inject,
6
- input
7
- } from '@angular/core';
8
- import {
9
- CLASSES,
10
- KC_CONTEXT,
11
- USE_DEFAULT_CSS
12
- } from '@keycloakify/angular/lib/public-api';
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
2
+ import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
13
3
  import { ClassKey } from 'keycloakify/login/lib/kcClsx';
14
4
  import { KcContext } from 'keycloakify/login/KcContext';
15
5
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
@@ -31,10 +21,7 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
31
21
  ]
32
22
  })
33
23
  export class LoginIdpLinkConfirmOverrideComponent extends ComponentReference {
34
- kcContext =
35
- inject<Extract<KcContext, { pageId: 'login-idp-link-confirm-override.ftl' }>>(
36
- KC_CONTEXT
37
- );
24
+ kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-confirm-override.ftl' }>>(KC_CONTEXT);
38
25
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
39
26
  override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
40
27
  displayRequiredFields = input(false);