@keycloakify/angular 0.0.1-rc.17 → 0.0.1-rc.19
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.
- package/account/containers/template/template.component.d.ts +18 -5
- package/account/pages/account/account.component.d.ts +3 -2
- package/account/pages/applications/applications.component.d.ts +3 -2
- package/account/pages/federatedIdentity/federatedIdentity.component.d.ts +3 -2
- package/account/pages/log/log.component.d.ts +3 -2
- package/account/pages/password/password.component.d.ts +3 -2
- package/account/pages/sessions/sessions.component.d.ts +3 -2
- package/account/pages/totp/totp.component.d.ts +3 -2
- package/esm2022/account/containers/template/template.component.mjs +42 -9
- package/esm2022/account/directives/kc-class/kc-class.directive.mjs +3 -3
- package/esm2022/account/pages/account/account.component.mjs +8 -7
- package/esm2022/account/pages/applications/applications.component.mjs +8 -7
- package/esm2022/account/pages/federatedIdentity/federatedIdentity.component.mjs +8 -7
- package/esm2022/account/pages/log/log.component.mjs +8 -7
- package/esm2022/account/pages/password/password.component.mjs +9 -7
- package/esm2022/account/pages/sessions/sessions.component.mjs +8 -7
- package/esm2022/account/pages/totp/totp.component.mjs +8 -7
- package/esm2022/account/providers/keycloakify-angular/keycloakify-angular.providers.mjs +2 -1
- package/esm2022/account/services/account-resource-injector/account-resource-injector.service.mjs +3 -3
- package/esm2022/account/services/i18n/i18n.service.mjs +3 -3
- package/esm2022/lib/directives/attributes/attributes.directive.mjs +3 -3
- package/esm2022/lib/pipes/input-type/input-type.pipe.mjs +3 -3
- package/esm2022/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.mjs +3 -3
- package/esm2022/lib/pipes/kc-sanitize/kc-sanitize.pipe.mjs +3 -3
- package/esm2022/lib/pipes/to-array/to-array.pipe.mjs +3 -3
- package/esm2022/lib/pipes/to-number/to-number.pipe.mjs +3 -3
- package/esm2022/lib/services/resource-injector/resource-injector.service.mjs +3 -3
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +5 -5
- package/esm2022/login/components/field-errors/field-errors.component.mjs +6 -6
- package/esm2022/login/components/group-label/group-label.component.mjs +3 -3
- package/esm2022/login/components/input-field-by-type/input-field-by-type.component.mjs +6 -6
- package/esm2022/login/components/input-tag/input-tag.component.mjs +6 -6
- package/esm2022/login/components/input-tag-selects/input-tag-selects.component.mjs +3 -3
- package/esm2022/login/components/logout-other-sessions/logout-other-sessions.component.mjs +3 -3
- package/esm2022/login/components/password-wrapper/password-wrapper.component.mjs +6 -6
- package/esm2022/login/components/select-tag/select-tag.component.mjs +3 -3
- package/esm2022/login/components/textarea-tag/textarea-tag.component.mjs +3 -3
- package/esm2022/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +6 -6
- package/esm2022/login/containers/template/template.component.mjs +83 -15
- package/esm2022/login/directives/kc-class/kc-class.directive.mjs +5 -5
- package/esm2022/login/pages/code/code.component.mjs +16 -10
- package/esm2022/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +14 -8
- package/esm2022/login/pages/delete-credential/delete-credential.component.mjs +12 -11
- package/esm2022/login/pages/error/error.component.mjs +16 -10
- package/esm2022/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +14 -12
- package/esm2022/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +14 -13
- package/esm2022/login/pages/info/info.component.mjs +13 -12
- package/esm2022/login/pages/login/login.component.mjs +15 -14
- package/esm2022/login/pages/login-config-totp/login-config-totp.component.mjs +14 -13
- package/esm2022/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +13 -16
- package/esm2022/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +13 -16
- package/esm2022/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +12 -15
- package/esm2022/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +13 -15
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +12 -11
- package/esm2022/login/pages/login-otp/login-otp.component.mjs +13 -12
- package/esm2022/login/pages/login-page-expired/login-page-expired.component.mjs +12 -11
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +13 -8
- package/esm2022/login/pages/login-password/login-password.component.mjs +15 -13
- package/esm2022/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +14 -13
- package/esm2022/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +14 -13
- package/esm2022/login/pages/login-reset-otp/login-reset-otp.component.mjs +13 -12
- package/esm2022/login/pages/login-reset-password/login-reset-password.component.mjs +13 -12
- package/esm2022/login/pages/login-update-password/login-update-password.component.mjs +13 -12
- package/esm2022/login/pages/login-update-profile/login-update-profile.component.mjs +13 -12
- package/esm2022/login/pages/login-username/login-username.component.mjs +14 -13
- package/esm2022/login/pages/login-verify-email/login-verify-email.component.mjs +12 -11
- package/esm2022/login/pages/login-x509-info/login-x509-info.component.mjs +12 -11
- package/esm2022/login/pages/logout-confirm/logout-confirm.component.mjs +12 -15
- package/esm2022/login/pages/register/register.component.mjs +16 -15
- package/esm2022/login/pages/saml-post-form/saml-post-form.component.mjs +16 -17
- package/esm2022/login/pages/select-authenticator/select-authenticator.component.mjs +13 -12
- package/esm2022/login/pages/terms/terms.component.mjs +12 -11
- package/esm2022/login/pages/update-email/update-email.component.mjs +14 -17
- package/esm2022/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +12 -11
- package/esm2022/login/pages/webauthn-error/webauthn-error.component.mjs +13 -12
- package/esm2022/login/pages/webauthn-register/webauthn-register.component.mjs +12 -11
- package/esm2022/login/providers/keycloakify-angular/keycloakify-angular.providers.mjs +2 -1
- package/esm2022/login/services/i18n/i18n.service.mjs +3 -3
- package/esm2022/login/services/login-resource-injector/login-resource-injector.service.mjs +3 -3
- package/esm2022/login/services/submit/submit.service.mjs +4 -4
- package/esm2022/login/services/user-profile-form/user-profile-form.service.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-containers-template.mjs +42 -9
- package/fesm2022/keycloakify-angular-account-containers-template.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-account.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-log.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-password.mjs +8 -6
- package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs +7 -6
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs +1 -0
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +5 -5
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-containers-template.mjs +83 -15
- package/fesm2022/keycloakify-angular-login-containers-template.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-code.mjs +15 -9
- package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +13 -7
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-error.mjs +15 -9
- package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +13 -11
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +13 -12
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-info.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +13 -12
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +12 -15
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +12 -15
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +11 -14
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +12 -14
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +12 -7
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +14 -12
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +13 -12
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +13 -12
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +13 -12
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login.mjs +14 -13
- package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +11 -14
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-register.mjs +15 -14
- package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +15 -16
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +13 -16
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +12 -11
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +11 -10
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs +1 -0
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-submit.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-submit.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +3 -3
- package/login/containers/template/template.component.d.ts +25 -9
- package/login/directives/kc-class/kc-class.directive.d.ts +1 -1
- package/login/pages/code/code.component.d.ts +12 -3
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +11 -2
- package/login/pages/delete-credential/delete-credential.component.d.ts +9 -5
- package/login/pages/error/error.component.d.ts +11 -2
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +9 -5
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +10 -7
- package/login/pages/info/info.component.d.ts +9 -5
- package/login/pages/login/login.component.d.ts +10 -6
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +9 -5
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +8 -7
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +8 -7
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +8 -7
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +8 -7
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +9 -5
- package/login/pages/login-otp/login-otp.component.d.ts +9 -5
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +9 -5
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +11 -3
- package/login/pages/login-password/login-password.component.d.ts +10 -5
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +9 -5
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +9 -5
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +9 -5
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +9 -5
- package/login/pages/login-update-password/login-update-password.component.d.ts +9 -5
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +9 -6
- package/login/pages/login-username/login-username.component.d.ts +10 -6
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +9 -5
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +9 -5
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +8 -7
- package/login/pages/register/register.component.d.ts +11 -8
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +10 -7
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +9 -5
- package/login/pages/terms/terms.component.d.ts +9 -5
- package/login/pages/update-email/update-email.component.d.ts +9 -9
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +10 -6
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +9 -5
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +10 -6
- package/package.json +8 -8
- package/src/account/containers/template/template.component.html +16 -11
- package/src/account/containers/template/template.component.ts +54 -7
- package/src/account/pages/account/account.component.html +139 -143
- package/src/account/pages/account/account.component.ts +4 -3
- package/src/account/pages/applications/applications.component.html +128 -136
- package/src/account/pages/applications/applications.component.ts +4 -3
- package/src/account/pages/federatedIdentity/federatedIdentity.component.html +84 -88
- package/src/account/pages/federatedIdentity/federatedIdentity.component.ts +4 -3
- package/src/account/pages/log/log.component.html +35 -39
- package/src/account/pages/log/log.component.ts +4 -3
- package/src/account/pages/password/password.component.html +109 -113
- package/src/account/pages/password/password.component.ts +6 -3
- package/src/account/pages/sessions/sessions.component.html +52 -56
- package/src/account/pages/sessions/sessions.component.ts +4 -3
- package/src/account/pages/totp/totp.component.html +234 -238
- package/src/account/pages/totp/totp.component.ts +4 -3
- package/src/account/providers/keycloakify-angular/keycloakify-angular.providers.ts +1 -0
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +2 -2
- package/src/login/components/field-errors/field-errors.component.html +1 -1
- package/src/login/components/input-field-by-type/input-field-by-type.component.html +6 -6
- package/src/login/components/input-tag/input-tag.component.html +2 -2
- package/src/login/components/password-wrapper/password-wrapper.component.html +2 -2
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +7 -11
- package/src/login/containers/template/template.component.html +29 -15
- package/src/login/containers/template/template.component.ts +100 -12
- package/src/login/directives/kc-class/kc-class.directive.ts +1 -2
- package/src/login/pages/code/code.component.html +19 -23
- package/src/login/pages/code/code.component.ts +18 -6
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +41 -45
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +16 -4
- package/src/login/pages/delete-credential/delete-credential.component.html +29 -31
- package/src/login/pages/delete-credential/delete-credential.component.ts +16 -9
- package/src/login/pages/error/error.component.html +20 -22
- package/src/login/pages/error/error.component.ts +17 -5
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +25 -34
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +17 -9
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +29 -38
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +18 -12
- package/src/login/pages/info/info.component.html +39 -48
- package/src/login/pages/info/info.component.ts +17 -10
- package/src/login/pages/login/login.component.html +184 -194
- package/src/login/pages/login/login.component.ts +20 -12
- package/src/login/pages/login-config-totp/login-config-totp.component.html +181 -190
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -10
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +27 -37
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +15 -14
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +26 -36
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +15 -14
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +24 -34
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +15 -14
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +75 -84
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +15 -14
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +49 -58
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +15 -9
- package/src/login/pages/login-otp/login-otp.component.html +89 -98
- package/src/login/pages/login-otp/login-otp.component.ts +16 -9
- package/src/login/pages/login-page-expired/login-page-expired.component.html +26 -33
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +15 -9
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +181 -188
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +15 -5
- package/src/login/pages/login-password/login-password.component.html +73 -80
- package/src/login/pages/login-password/login-password.component.ts +17 -9
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +136 -145
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +17 -9
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +60 -68
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +16 -9
- package/src/login/pages/login-reset-otp/login-reset-otp.component.html +53 -60
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +15 -8
- package/src/login/pages/login-reset-password/login-reset-password.component.html +77 -86
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +16 -9
- package/src/login/pages/login-update-password/login-update-password.component.html +98 -108
- package/src/login/pages/login-update-password/login-update-password.component.ts +15 -8
- package/src/login/pages/login-update-profile/login-update-profile.component.html +44 -53
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +17 -10
- package/src/login/pages/login-username/login-username.component.html +138 -148
- package/src/login/pages/login-username/login-username.component.ts +16 -9
- package/src/login/pages/login-verify-email/login-verify-email.component.html +17 -25
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +15 -9
- package/src/login/pages/login-x509-info/login-x509-info.component.html +85 -94
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +15 -9
- package/src/login/pages/logout-confirm/logout-confirm.component.html +39 -49
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +15 -14
- package/src/login/pages/register/register.component.html +100 -110
- package/src/login/pages/register/register.component.ts +19 -12
- package/src/login/pages/saml-post-form/saml-post-form.component.html +39 -48
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +19 -13
- package/src/login/pages/select-authenticator/select-authenticator.component.html +36 -44
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +16 -9
- package/src/login/pages/terms/terms.component.html +25 -34
- package/src/login/pages/terms/terms.component.ts +16 -9
- package/src/login/pages/update-email/update-email.component.html +44 -53
- package/src/login/pages/update-email/update-email.component.ts +16 -15
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +134 -145
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +16 -9
- package/src/login/pages/webauthn-error/webauthn-error.component.html +45 -55
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +16 -9
- package/src/login/pages/webauthn-register/webauthn-register.component.html +65 -75
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +16 -9
- package/src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts +1 -0
- package/src/login/services/submit/submit.service.ts +1 -1
- package/src/tsconfig.lib.json +0 -12
- package/src/tsconfig.lib.prod.json +0 -10
|
@@ -4,255 +4,251 @@
|
|
|
4
4
|
@let stateChecker = kcContext.stateChecker;
|
|
5
5
|
@let totp = kcContext.totp;
|
|
6
6
|
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<span class="required">*</span>
|
|
16
|
-
{{ i18n.msgStr('requiredFields') }}
|
|
17
|
-
</div>
|
|
18
|
-
}
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="col-md-10">
|
|
9
|
+
<h2>{{ i18n.msgStr('authenticatorTitle') }}</h2>
|
|
10
|
+
</div>
|
|
11
|
+
@if (totp.otpCredentials.length) {
|
|
12
|
+
<div class="subtitle col-md-2">
|
|
13
|
+
<span class="required">*</span>
|
|
14
|
+
{{ i18n.msgStr('requiredFields') }}
|
|
19
15
|
</div>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
}
|
|
17
|
+
</div>
|
|
18
|
+
@if (totp.enabled) {
|
|
19
|
+
<table class="table table-bordered table-striped">
|
|
20
|
+
<thead>
|
|
21
|
+
@if (totp.otpCredentials.length > 1) {
|
|
22
|
+
<tr>
|
|
23
|
+
<th [colSpan]="4">{{ i18n.msgStr('configureAuthenticators') }}</th>
|
|
24
|
+
</tr>
|
|
25
|
+
} @else {
|
|
26
|
+
<tr>
|
|
27
|
+
<th [colSpan]="3">{{ i18n.msgStr('configureAuthenticators') }}</th>
|
|
28
|
+
</tr>
|
|
29
|
+
}
|
|
30
|
+
</thead>
|
|
31
|
+
<tbody>
|
|
32
|
+
@for (credential of totp.otpCredentials; track credential; let index = $index) {
|
|
33
|
+
<tr>
|
|
34
|
+
<td class="provider">{{ i18n.msgStr('mobile') }}</td>
|
|
23
35
|
@if (totp.otpCredentials.length > 1) {
|
|
24
|
-
<
|
|
25
|
-
<th [colSpan]="4">{{ i18n.msgStr('configureAuthenticators') }}</th>
|
|
26
|
-
</tr>
|
|
27
|
-
} @else {
|
|
28
|
-
<tr>
|
|
29
|
-
<th [colSpan]="3">{{ i18n.msgStr('configureAuthenticators') }}</th>
|
|
30
|
-
</tr>
|
|
31
|
-
}
|
|
32
|
-
</thead>
|
|
33
|
-
<tbody>
|
|
34
|
-
@for (credential of totp.otpCredentials; track credential; let index = $index) {
|
|
35
|
-
<tr>
|
|
36
|
-
<td class="provider">{{ i18n.msgStr('mobile') }}</td>
|
|
37
|
-
@if (totp.otpCredentials.length > 1) {
|
|
38
|
-
<td class="provider">{{ credential.id }}</td>
|
|
39
|
-
}
|
|
40
|
-
<td class="provider">{{ credential.userLabel || '' }}</td>
|
|
41
|
-
<td class="action">
|
|
42
|
-
<form
|
|
43
|
-
[action]="url.totpUrl"
|
|
44
|
-
method="post"
|
|
45
|
-
class="form-inline"
|
|
46
|
-
>
|
|
47
|
-
<input
|
|
48
|
-
type="hidden"
|
|
49
|
-
id="stateChecker"
|
|
50
|
-
name="stateChecker"
|
|
51
|
-
[value]="stateChecker"
|
|
52
|
-
/>
|
|
53
|
-
<input
|
|
54
|
-
type="hidden"
|
|
55
|
-
id="submitAction"
|
|
56
|
-
name="submitAction"
|
|
57
|
-
value="Delete"
|
|
58
|
-
/>
|
|
59
|
-
<input
|
|
60
|
-
type="hidden"
|
|
61
|
-
id="credentialId"
|
|
62
|
-
name="credentialId"
|
|
63
|
-
[value]="credential.id"
|
|
64
|
-
/>
|
|
65
|
-
<button
|
|
66
|
-
[id]="'remove-mobile-' + index"
|
|
67
|
-
class="btn btn-default"
|
|
68
|
-
>
|
|
69
|
-
<i class="pficon pficon-delete"></i>
|
|
70
|
-
</button>
|
|
71
|
-
</form>
|
|
72
|
-
</td>
|
|
73
|
-
</tr>
|
|
74
|
-
}
|
|
75
|
-
</tbody>
|
|
76
|
-
</table>
|
|
77
|
-
} @else {
|
|
78
|
-
<div>
|
|
79
|
-
<hr />
|
|
80
|
-
<ol id="kc-totp-settings">
|
|
81
|
-
<li>
|
|
82
|
-
<p>{{ i18n.msgStr('totpStep1') }}</p>
|
|
83
|
-
|
|
84
|
-
<ul id="kc-totp-supported-apps">
|
|
85
|
-
@for (app of totp.supportedApplications; track app) {
|
|
86
|
-
<li>{{ i18n.advancedMsgStr(app) }}</li>
|
|
87
|
-
}
|
|
88
|
-
</ul>
|
|
89
|
-
</li>
|
|
90
|
-
@if (mode && mode === 'manual') {
|
|
91
|
-
<li>
|
|
92
|
-
<p>{{ i18n.msgStr('totpManualStep2') }}</p>
|
|
93
|
-
<p>
|
|
94
|
-
<span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
|
|
95
|
-
</p>
|
|
96
|
-
<p>
|
|
97
|
-
<a
|
|
98
|
-
[href]="totp.qrUrl"
|
|
99
|
-
id="mode-barcode"
|
|
100
|
-
>
|
|
101
|
-
{{ i18n.msgStr('totpScanBarcode') }}
|
|
102
|
-
</a>
|
|
103
|
-
</p>
|
|
104
|
-
</li>
|
|
105
|
-
<li>
|
|
106
|
-
<p>{{ i18n.msgStr('totpManualStep3') }}</p>
|
|
107
|
-
<ul>
|
|
108
|
-
<li id="kc-totp-type">{{ i18n.msgStr('totpType') }}: {{ i18n.msgStr($any('totp.' + totp.policy.type)) }}</li>
|
|
109
|
-
<li id="kc-totp-algorithm">{{ i18n.msgStr('totpAlgorithm') }}: {{ totp.policy.getAlgorithmKey() }}</li>
|
|
110
|
-
<li id="kc-totp-digits">{{ i18n.msgStr('totpDigits') }}: {{ totp.policy.digits }}</li>
|
|
111
|
-
@if (totp.policy.type === 'totp') {
|
|
112
|
-
<li id="kc-totp-period">{{ i18n.msgStr('totpInterval') }}: {{ totp.policy.period }}</li>
|
|
113
|
-
} @else {
|
|
114
|
-
<li id="kc-totp-counter">{{ i18n.msgStr('totpCounter') }}: {{ totp.policy.initialCounter }}</li>
|
|
115
|
-
}
|
|
116
|
-
</ul>
|
|
117
|
-
</li>
|
|
118
|
-
} @else {
|
|
119
|
-
<li>
|
|
120
|
-
<p>{{ i18n.msgStr('totpStep2') }}</p>
|
|
121
|
-
<p>
|
|
122
|
-
<img
|
|
123
|
-
id="kc-totp-secret-qr-code"
|
|
124
|
-
[src]="'data:image/png;base64, ' + totp.totpSecretQrCode"
|
|
125
|
-
alt="Figure: Barcode"
|
|
126
|
-
/>
|
|
127
|
-
</p>
|
|
128
|
-
<p>
|
|
129
|
-
<a
|
|
130
|
-
[href]="totp.manualUrl"
|
|
131
|
-
id="mode-manual"
|
|
132
|
-
>
|
|
133
|
-
{{ i18n.msgStr('totpUnableToScan') }}
|
|
134
|
-
</a>
|
|
135
|
-
</p>
|
|
136
|
-
</li>
|
|
36
|
+
<td class="provider">{{ credential.id }}</td>
|
|
137
37
|
}
|
|
138
|
-
<
|
|
139
|
-
|
|
140
|
-
<
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
[action]="url.totpUrl"
|
|
146
|
-
[kcClass]="'kcFormClass'"
|
|
147
|
-
id="kc-totp-settings-form"
|
|
148
|
-
method="post"
|
|
149
|
-
>
|
|
150
|
-
<input
|
|
151
|
-
type="hidden"
|
|
152
|
-
id="stateChecker"
|
|
153
|
-
name="stateChecker"
|
|
154
|
-
[value]="stateChecker"
|
|
155
|
-
/>
|
|
156
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
157
|
-
<div class="col-sm-2 col-md-2">
|
|
158
|
-
<label
|
|
159
|
-
for="totp"
|
|
160
|
-
class="control-label"
|
|
161
|
-
>
|
|
162
|
-
{{ i18n.msgStr('authenticatorCode') }}
|
|
163
|
-
</label>
|
|
164
|
-
<span class="required">*</span>
|
|
165
|
-
</div>
|
|
166
|
-
<div class="col-sm-10 col-md-10">
|
|
167
|
-
<input
|
|
168
|
-
type="text"
|
|
169
|
-
id="totp"
|
|
170
|
-
name="totp"
|
|
171
|
-
autoComplete="off"
|
|
172
|
-
[kcClass]="'kcInputClass'"
|
|
173
|
-
[attr.aria-invalid]="messagesPerField.existsError('totp')"
|
|
174
|
-
/>
|
|
175
|
-
@if (messagesPerField.existsError('totp')) {
|
|
176
|
-
<span
|
|
177
|
-
id="input-error-otp-code"
|
|
178
|
-
[kcClass]="'kcInputErrorMessageClass'"
|
|
179
|
-
aria-live="polite"
|
|
180
|
-
[innerHTML]="messagesPerField.get('totp') | kcSanitize: 'html'"
|
|
181
|
-
></span>
|
|
182
|
-
}
|
|
183
|
-
</div>
|
|
184
|
-
<input
|
|
185
|
-
type="hidden"
|
|
186
|
-
id="totpSecret"
|
|
187
|
-
name="totpSecret"
|
|
188
|
-
[value]="totp.totpSecret"
|
|
189
|
-
/>
|
|
190
|
-
@if (mode) {
|
|
38
|
+
<td class="provider">{{ credential.userLabel || '' }}</td>
|
|
39
|
+
<td class="action">
|
|
40
|
+
<form
|
|
41
|
+
method="post"
|
|
42
|
+
class="form-inline"
|
|
43
|
+
[action]="url.totpUrl"
|
|
44
|
+
>
|
|
191
45
|
<input
|
|
192
46
|
type="hidden"
|
|
193
|
-
id="
|
|
194
|
-
|
|
47
|
+
id="stateChecker"
|
|
48
|
+
name="stateChecker"
|
|
49
|
+
[value]="stateChecker"
|
|
195
50
|
/>
|
|
196
|
-
}
|
|
197
|
-
</div>
|
|
198
|
-
|
|
199
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
200
|
-
<div class="col-sm-2 col-md-2">
|
|
201
|
-
<label
|
|
202
|
-
for="userLabel"
|
|
203
|
-
[kcClass]="'kcLabelClass'"
|
|
204
|
-
>
|
|
205
|
-
{{ i18n.msgStr('totpDeviceName') }}
|
|
206
|
-
</label>
|
|
207
|
-
@if (totp.otpCredentials.length >= 1) {
|
|
208
|
-
<span class="required">*</span>
|
|
209
|
-
}
|
|
210
|
-
</div>
|
|
211
|
-
<div class="col-sm-10 col-md-10">
|
|
212
51
|
<input
|
|
213
|
-
type="
|
|
214
|
-
id="
|
|
215
|
-
name="
|
|
216
|
-
|
|
217
|
-
[kcClass]="'kcInputClass'"
|
|
218
|
-
[attr.aria-invalid]="messagesPerField.existsError('userLabel')"
|
|
52
|
+
type="hidden"
|
|
53
|
+
id="submitAction"
|
|
54
|
+
name="submitAction"
|
|
55
|
+
value="Delete"
|
|
219
56
|
/>
|
|
220
|
-
@if (messagesPerField.existsError('userLabel')) {
|
|
221
|
-
<span
|
|
222
|
-
id="input-error-otp-label"
|
|
223
|
-
[kcClass]="'kcInputErrorMessageClass'"
|
|
224
|
-
aria-live="polite"
|
|
225
|
-
[innerHTML]="messagesPerField.get('userLabel') | kcSanitize: 'html'"
|
|
226
|
-
></span>
|
|
227
|
-
}
|
|
228
|
-
</div>
|
|
229
|
-
</div>
|
|
230
|
-
|
|
231
|
-
<div
|
|
232
|
-
id="kc-form-buttons"
|
|
233
|
-
class="text-right"
|
|
234
|
-
[kcClass]="'kcFormGroupClass'"
|
|
235
|
-
>
|
|
236
|
-
<div [kcClass]="'kcInputWrapperClass'">
|
|
237
57
|
<input
|
|
238
|
-
type="
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
[value]="
|
|
58
|
+
type="hidden"
|
|
59
|
+
id="credentialId"
|
|
60
|
+
name="credentialId"
|
|
61
|
+
[value]="credential.id"
|
|
242
62
|
/>
|
|
243
63
|
<button
|
|
244
|
-
|
|
245
|
-
[
|
|
246
|
-
id="cancelTOTPBtn"
|
|
247
|
-
name="submitAction"
|
|
248
|
-
value="Cancel"
|
|
64
|
+
class="btn btn-default"
|
|
65
|
+
[id]="'remove-mobile-' + index"
|
|
249
66
|
>
|
|
250
|
-
|
|
67
|
+
<i class="pficon pficon-delete"></i>
|
|
251
68
|
</button>
|
|
252
|
-
</
|
|
253
|
-
</
|
|
254
|
-
</
|
|
69
|
+
</form>
|
|
70
|
+
</td>
|
|
71
|
+
</tr>
|
|
72
|
+
}
|
|
73
|
+
</tbody>
|
|
74
|
+
</table>
|
|
75
|
+
} @else {
|
|
76
|
+
<div>
|
|
77
|
+
<hr />
|
|
78
|
+
<ol id="kc-totp-settings">
|
|
79
|
+
<li>
|
|
80
|
+
<p>{{ i18n.msgStr('totpStep1') }}</p>
|
|
81
|
+
|
|
82
|
+
<ul id="kc-totp-supported-apps">
|
|
83
|
+
@for (app of totp.supportedApplications; track app) {
|
|
84
|
+
<li>{{ i18n.advancedMsgStr(app) }}</li>
|
|
85
|
+
}
|
|
86
|
+
</ul>
|
|
87
|
+
</li>
|
|
88
|
+
@if (mode && mode === 'manual') {
|
|
89
|
+
<li>
|
|
90
|
+
<p>{{ i18n.msgStr('totpManualStep2') }}</p>
|
|
91
|
+
<p>
|
|
92
|
+
<span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
|
|
93
|
+
</p>
|
|
94
|
+
<p>
|
|
95
|
+
<a
|
|
96
|
+
id="mode-barcode"
|
|
97
|
+
[href]="totp.qrUrl"
|
|
98
|
+
>
|
|
99
|
+
{{ i18n.msgStr('totpScanBarcode') }}
|
|
100
|
+
</a>
|
|
101
|
+
</p>
|
|
102
|
+
</li>
|
|
103
|
+
<li>
|
|
104
|
+
<p>{{ i18n.msgStr('totpManualStep3') }}</p>
|
|
105
|
+
<ul>
|
|
106
|
+
<li id="kc-totp-type">{{ i18n.msgStr('totpType') }}: {{ i18n.msgStr($any('totp.' + totp.policy.type)) }}</li>
|
|
107
|
+
<li id="kc-totp-algorithm">{{ i18n.msgStr('totpAlgorithm') }}: {{ totp.policy.getAlgorithmKey() }}</li>
|
|
108
|
+
<li id="kc-totp-digits">{{ i18n.msgStr('totpDigits') }}: {{ totp.policy.digits }}</li>
|
|
109
|
+
@if (totp.policy.type === 'totp') {
|
|
110
|
+
<li id="kc-totp-period">{{ i18n.msgStr('totpInterval') }}: {{ totp.policy.period }}</li>
|
|
111
|
+
} @else {
|
|
112
|
+
<li id="kc-totp-counter">{{ i18n.msgStr('totpCounter') }}: {{ totp.policy.initialCounter }}</li>
|
|
113
|
+
}
|
|
114
|
+
</ul>
|
|
115
|
+
</li>
|
|
116
|
+
} @else {
|
|
117
|
+
<li>
|
|
118
|
+
<p>{{ i18n.msgStr('totpStep2') }}</p>
|
|
119
|
+
<p>
|
|
120
|
+
<img
|
|
121
|
+
id="kc-totp-secret-qr-code"
|
|
122
|
+
alt="Figure: Barcode"
|
|
123
|
+
[src]="'data:image/png;base64, ' + totp.totpSecretQrCode"
|
|
124
|
+
/>
|
|
125
|
+
</p>
|
|
126
|
+
<p>
|
|
127
|
+
<a
|
|
128
|
+
id="mode-manual"
|
|
129
|
+
[href]="totp.manualUrl"
|
|
130
|
+
>
|
|
131
|
+
{{ i18n.msgStr('totpUnableToScan') }}
|
|
132
|
+
</a>
|
|
133
|
+
</p>
|
|
134
|
+
</li>
|
|
135
|
+
}
|
|
136
|
+
<li>
|
|
137
|
+
<p>{{ i18n.msgStr('totpStep3') }}</p>
|
|
138
|
+
<p>{{ i18n.msgStr('totpStep3DeviceName') }}</p>
|
|
139
|
+
</li>
|
|
140
|
+
</ol>
|
|
141
|
+
<hr />
|
|
142
|
+
<form
|
|
143
|
+
id="kc-totp-settings-form"
|
|
144
|
+
method="post"
|
|
145
|
+
[action]="url.totpUrl"
|
|
146
|
+
[kcClass]="'kcFormClass'"
|
|
147
|
+
>
|
|
148
|
+
<input
|
|
149
|
+
type="hidden"
|
|
150
|
+
id="stateChecker"
|
|
151
|
+
name="stateChecker"
|
|
152
|
+
[value]="stateChecker"
|
|
153
|
+
/>
|
|
154
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
155
|
+
<div class="col-sm-2 col-md-2">
|
|
156
|
+
<label
|
|
157
|
+
for="totp"
|
|
158
|
+
class="control-label"
|
|
159
|
+
>
|
|
160
|
+
{{ i18n.msgStr('authenticatorCode') }}
|
|
161
|
+
</label>
|
|
162
|
+
<span class="required">*</span>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="col-sm-10 col-md-10">
|
|
165
|
+
<input
|
|
166
|
+
type="text"
|
|
167
|
+
id="totp"
|
|
168
|
+
name="totp"
|
|
169
|
+
autoComplete="off"
|
|
170
|
+
[kcClass]="'kcInputClass'"
|
|
171
|
+
[attr.aria-invalid]="messagesPerField.existsError('totp')"
|
|
172
|
+
/>
|
|
173
|
+
@if (messagesPerField.existsError('totp')) {
|
|
174
|
+
<span
|
|
175
|
+
id="input-error-otp-code"
|
|
176
|
+
aria-live="polite"
|
|
177
|
+
[kcClass]="'kcInputErrorMessageClass'"
|
|
178
|
+
[innerHTML]="messagesPerField.get('totp') | kcSanitize: 'html'"
|
|
179
|
+
></span>
|
|
180
|
+
}
|
|
181
|
+
</div>
|
|
182
|
+
<input
|
|
183
|
+
type="hidden"
|
|
184
|
+
id="totpSecret"
|
|
185
|
+
name="totpSecret"
|
|
186
|
+
[value]="totp.totpSecret"
|
|
187
|
+
/>
|
|
188
|
+
@if (mode) {
|
|
189
|
+
<input
|
|
190
|
+
type="hidden"
|
|
191
|
+
id="mode"
|
|
192
|
+
[value]="mode"
|
|
193
|
+
/>
|
|
194
|
+
}
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
198
|
+
<div class="col-sm-2 col-md-2">
|
|
199
|
+
<label
|
|
200
|
+
for="userLabel"
|
|
201
|
+
[kcClass]="'kcLabelClass'"
|
|
202
|
+
>
|
|
203
|
+
{{ i18n.msgStr('totpDeviceName') }}
|
|
204
|
+
</label>
|
|
205
|
+
@if (totp.otpCredentials.length >= 1) {
|
|
206
|
+
<span class="required">*</span>
|
|
207
|
+
}
|
|
208
|
+
</div>
|
|
209
|
+
<div class="col-sm-10 col-md-10">
|
|
210
|
+
<input
|
|
211
|
+
type="text"
|
|
212
|
+
id="userLabel"
|
|
213
|
+
name="userLabel"
|
|
214
|
+
autoComplete="off"
|
|
215
|
+
[kcClass]="'kcInputClass'"
|
|
216
|
+
[attr.aria-invalid]="messagesPerField.existsError('userLabel')"
|
|
217
|
+
/>
|
|
218
|
+
@if (messagesPerField.existsError('userLabel')) {
|
|
219
|
+
<span
|
|
220
|
+
id="input-error-otp-label"
|
|
221
|
+
aria-live="polite"
|
|
222
|
+
[kcClass]="'kcInputErrorMessageClass'"
|
|
223
|
+
[innerHTML]="messagesPerField.get('userLabel') | kcSanitize: 'html'"
|
|
224
|
+
></span>
|
|
225
|
+
}
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
|
|
229
|
+
<div
|
|
230
|
+
id="kc-form-buttons"
|
|
231
|
+
class="text-right"
|
|
232
|
+
[kcClass]="'kcFormGroupClass'"
|
|
233
|
+
>
|
|
234
|
+
<div [kcClass]="'kcInputWrapperClass'">
|
|
235
|
+
<input
|
|
236
|
+
type="submit"
|
|
237
|
+
id="saveTOTPBtn"
|
|
238
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
239
|
+
[value]="i18n.msgStr('doSave')"
|
|
240
|
+
/>
|
|
241
|
+
<button
|
|
242
|
+
type="submit"
|
|
243
|
+
id="cancelTOTPBtn"
|
|
244
|
+
name="submitAction"
|
|
245
|
+
value="Cancel"
|
|
246
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
247
|
+
>
|
|
248
|
+
{{ i18n.msgStr('doCancel') }}
|
|
249
|
+
</button>
|
|
250
|
+
</div>
|
|
255
251
|
</div>
|
|
256
|
-
|
|
257
|
-
</
|
|
258
|
-
|
|
252
|
+
</form>
|
|
253
|
+
</div>
|
|
254
|
+
}
|
|
@@ -3,19 +3,19 @@ import { Component, forwardRef, inject } from '@angular/core';
|
|
|
3
3
|
import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
|
|
4
4
|
import { TemplateComponent } from '@keycloakify/angular/account/containers/template';
|
|
5
5
|
import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
|
|
6
|
+
import type { I18n } from '../../i18n';
|
|
7
|
+
import type { KcContext } from '../../KcContext';
|
|
6
8
|
import { ACCOUNT_CLASSES } from '@keycloakify/angular/account/tokens/classes';
|
|
7
9
|
import { ACCOUNT_I18N } from '@keycloakify/angular/account/tokens/i18n';
|
|
8
10
|
import { KC_ACCOUNT_CONTEXT } from '@keycloakify/angular/account/tokens/kc-context';
|
|
9
11
|
import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
|
|
10
12
|
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
11
13
|
import type { ClassKey } from 'keycloakify/account';
|
|
12
|
-
import type { I18n } from '../../i18n';
|
|
13
|
-
import type { KcContext } from '../../KcContext';
|
|
14
14
|
|
|
15
15
|
@Component({
|
|
16
16
|
standalone: true,
|
|
17
17
|
imports: [KcClassDirective, TemplateComponent, KcSanitizePipe, NgClass],
|
|
18
|
-
selector: 'kc-
|
|
18
|
+
selector: 'kc-totp',
|
|
19
19
|
templateUrl: 'totp.component.html',
|
|
20
20
|
providers: [
|
|
21
21
|
{
|
|
@@ -29,4 +29,5 @@ export class TotpComponent extends ComponentReference {
|
|
|
29
29
|
kcContext = inject<Extract<KcContext, { pageId: 'totp.ftl' }>>(KC_ACCOUNT_CONTEXT);
|
|
30
30
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
31
31
|
override classes = inject<Partial<Record<ClassKey, string>>>(ACCOUNT_CLASSES);
|
|
32
|
+
active = 'totp';
|
|
32
33
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@let idPostfix = attribute()?.name ?? '' + '-' + (fieldIndex() ?? 0 + 1);
|
|
2
2
|
@if (hasRemove()) {
|
|
3
3
|
<button
|
|
4
|
-
[id]="'kc-remove-' + idPostfix"
|
|
5
4
|
type="button"
|
|
6
5
|
class="pf-c-button pf-m-inline pf-m-link"
|
|
6
|
+
[id]="'kc-remove-' + idPostfix"
|
|
7
7
|
(click)="onRemove()"
|
|
8
8
|
>
|
|
9
9
|
{{ i18n.msgStr('remove') }}
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
}
|
|
15
15
|
@if (hasAdd()) {
|
|
16
16
|
<button
|
|
17
|
-
[id]="'kc-add-' + idPostfix"
|
|
18
17
|
type="button"
|
|
19
18
|
class="pf-c-button pf-m-inline pf-m-link"
|
|
19
|
+
[id]="'kc-add-' + idPostfix"
|
|
20
20
|
(click)="onAdd()"
|
|
21
21
|
>
|
|
22
22
|
{{ i18n.msgStr('addValue') }}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@let index = fieldIndex();
|
|
2
2
|
<span
|
|
3
|
+
aria-live="polite"
|
|
3
4
|
[id]="'input-error-' + attribute.name + (index === undefined ? '' : '-' + index)"
|
|
4
5
|
[kcClass]="'kcInputErrorMessageClass'"
|
|
5
|
-
aria-live="polite"
|
|
6
6
|
>
|
|
7
7
|
@for (error of displayableErrors(); track error; let i = $index) {
|
|
8
8
|
@if (error.fieldIndex === index) {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[value]="$any(valueOrValues())"
|
|
9
9
|
[displayableErrors]="displayableErrors()"
|
|
10
10
|
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
11
|
-
|
|
11
|
+
/>
|
|
12
12
|
}
|
|
13
13
|
@case (type === 'select' || type === 'multiselect' ? type : '') {
|
|
14
14
|
<kc-select-tag
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
[valueOrValues]="valueOrValues()"
|
|
17
17
|
[displayableErrors]="displayableErrors()"
|
|
18
18
|
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
19
|
-
|
|
19
|
+
/>
|
|
20
20
|
}
|
|
21
21
|
@case (type === 'select-radiobuttons' || type === 'multiselect-checkboxes' ? type : '') {
|
|
22
22
|
<kc-input-tag-selects
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
[valueOrValues]="valueOrValues()"
|
|
25
25
|
[displayableErrors]="displayableErrors()"
|
|
26
26
|
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
27
|
-
|
|
27
|
+
/>
|
|
28
28
|
}
|
|
29
29
|
@default {
|
|
30
30
|
@let values = valueOrValues();
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
[fieldIndex]="i"
|
|
38
38
|
[displayableErrors]="displayableErrors()"
|
|
39
39
|
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
40
|
-
|
|
40
|
+
/>
|
|
41
41
|
}
|
|
42
42
|
} @else {
|
|
43
43
|
@if (attr.name === 'password' || attr.name === 'password-confirm') {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
[valueOrValues]="valueOrValues()"
|
|
48
48
|
[displayableErrors]="displayableErrors()"
|
|
49
49
|
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
50
|
-
|
|
50
|
+
/>
|
|
51
51
|
</kc-password-wrapper>
|
|
52
52
|
} @else {
|
|
53
53
|
<kc-input-tag
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
[valueOrValues]="valueOrValues()"
|
|
56
56
|
[displayableErrors]="displayableErrors()"
|
|
57
57
|
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
58
|
-
|
|
58
|
+
/>
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
[attribute]="attr"
|
|
35
35
|
[displayableErrors]="displayableErrors()"
|
|
36
36
|
[fieldIndex]="index"
|
|
37
|
-
|
|
37
|
+
/>
|
|
38
38
|
<kc-add-remove-buttons-multi-valued-attribute
|
|
39
39
|
[attribute]="attr"
|
|
40
40
|
[values]="values"
|
|
41
41
|
[fieldIndex]="index"
|
|
42
42
|
(dispatchFormAction)="dispatchFormAction.emit($event)"
|
|
43
|
-
|
|
43
|
+
/>
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div [kcClass]="'kcInputGroup'">
|
|
2
|
-
<ng-content
|
|
2
|
+
<ng-content />
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
[kcClass]="'kcFormPasswordVisibilityButtonClass'"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
(click)="togglePasswordVisibility()"
|
|
9
9
|
>
|
|
10
10
|
<i
|
|
11
|
-
[kcClass]="isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'"
|
|
12
11
|
aria-hidden="true"
|
|
12
|
+
[kcClass]="isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'"
|
|
13
13
|
></i>
|
|
14
14
|
</button>
|
|
15
15
|
</div>
|