@keycloakify/angular 0.0.1-rc.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.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/lib/i18n.d.ts +4 -0
- package/lib/i18n.js +6 -0
- package/lib/i18n.js.map +1 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.js +2 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/script.model.d.ts +6 -0
- package/lib/models/script.model.js +2 -0
- package/lib/models/script.model.js.map +1 -0
- package/lib/providers/keycloakify-angular.providers.d.ts +150 -0
- package/lib/providers/keycloakify-angular.providers.js +58 -0
- package/lib/providers/keycloakify-angular.providers.js.map +1 -0
- package/lib/public-api.d.ts +10 -0
- package/lib/public-api.js +4 -0
- package/lib/public-api.js.map +1 -0
- package/lib/services/i18n.service.d.ts +3 -0
- package/lib/services/i18n.service.js +14 -0
- package/lib/services/i18n.service.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/resource-injector.service.d.ts +7 -0
- package/lib/services/resource-injector.service.js +57 -0
- package/lib/services/resource-injector.service.js.map +1 -0
- package/login/DefaultPage.d.ts +260 -0
- package/login/DefaultPage.js +121 -0
- package/login/DefaultPage.js.map +1 -0
- package/login/KcContext.d.ts +1 -0
- package/login/KcContext.js +2 -0
- package/login/KcContext.js.map +1 -0
- package/login/classes/component-reference.class.d.ts +5 -0
- package/login/classes/component-reference.class.js +3 -0
- package/login/classes/component-reference.class.js.map +1 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +13 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +24 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +123 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +1 -0
- package/login/components/field-errors/field-errors.component.d.ts +11 -0
- package/login/components/field-errors/field-errors.component.html +15 -0
- package/login/components/field-errors/field-errors.component.js +45 -0
- package/login/components/field-errors/field-errors.component.js.map +1 -0
- package/login/components/group-label/group-label.component.d.ts +10 -0
- package/login/components/group-label/group-label.component.html +30 -0
- package/login/components/group-label/group-label.component.js +55 -0
- package/login/components/group-label/group-label.component.js.map +1 -0
- package/login/components/index.d.ts +11 -0
- package/login/components/index.js +12 -0
- package/login/components/index.js.map +1 -0
- package/login/components/input-field-by-type/input-field-by-type.component.d.ts +13 -0
- package/login/components/input-field-by-type/input-field-by-type.component.html +63 -0
- package/login/components/input-field-by-type/input-field-by-type.component.js +63 -0
- package/login/components/input-field-by-type/input-field-by-type.component.js.map +1 -0
- package/login/components/input-tag/input-tag.component.d.ts +17 -0
- package/login/components/input-tag/input-tag.component.html +49 -0
- package/login/components/input-tag/input-tag.component.js +107 -0
- package/login/components/input-tag/input-tag.component.js.map +1 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +23 -0
- package/login/components/input-tag-selects/input-tag-selects.component.html +29 -0
- package/login/components/input-tag-selects/input-tag-selects.component.js +132 -0
- package/login/components/input-tag-selects/input-tag-selects.component.js.map +1 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +6 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.html +19 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +43 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +1 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +12 -0
- package/login/components/password-wrapper/password-wrapper.component.html +15 -0
- package/login/components/password-wrapper/password-wrapper.component.js +57 -0
- package/login/components/password-wrapper/password-wrapper.component.js.map +1 -0
- package/login/components/select-tag/select-tag.component.d.ts +16 -0
- package/login/components/select-tag/select-tag.component.html +31 -0
- package/login/components/select-tag/select-tag.component.js +97 -0
- package/login/components/select-tag/select-tag.component.js.map +1 -0
- package/login/components/textarea-tag/textarea-tag.component.d.ts +14 -0
- package/login/components/textarea-tag/textarea-tag.component.html +18 -0
- package/login/components/textarea-tag/textarea-tag.component.js +63 -0
- package/login/components/textarea-tag/textarea-tag.component.js.map +1 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +25 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +85 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +74 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +1 -0
- package/login/containers/template.component.d.ts +28 -0
- package/login/containers/template.component.html +203 -0
- package/login/containers/template.component.js +78 -0
- package/login/containers/template.component.js.map +1 -0
- package/login/directives/attributes.directive.d.ts +5 -0
- package/login/directives/attributes.directive.js +34 -0
- package/login/directives/attributes.directive.js.map +1 -0
- package/login/directives/index.d.ts +2 -0
- package/login/directives/index.js +3 -0
- package/login/directives/index.js.map +1 -0
- package/login/directives/kc-class.directive.d.ts +23 -0
- package/login/directives/kc-class.directive.js +146 -0
- package/login/directives/kc-class.directive.js.map +1 -0
- package/login/i18n.d.ts +4 -0
- package/login/i18n.js +2 -0
- package/login/i18n.js.map +1 -0
- package/login/pages/code/code.component.d.ts +8 -0
- package/login/pages/code/code.component.html +26 -0
- package/login/pages/code/code.component.js +38 -0
- package/login/pages/code/code.component.js.map +1 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +8 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.html +46 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +38 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +1 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +13 -0
- package/login/pages/delete-credential/delete-credential.component.html +35 -0
- package/login/pages/delete-credential/delete-credential.component.js +43 -0
- package/login/pages/delete-credential/delete-credential.component.js.map +1 -0
- package/login/pages/error/error.component.d.ts +8 -0
- package/login/pages/error/error.component.html +25 -0
- package/login/pages/error/error.component.js +38 -0
- package/login/pages/error/error.component.js.map +1 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +14 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.html +35 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +47 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +1 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +15 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +41 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +54 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +1 -0
- package/login/pages/info/info.component.d.ts +20 -0
- package/login/pages/info/info.component.html +54 -0
- package/login/pages/info/info.component.js +61 -0
- package/login/pages/info/info.component.js.map +1 -0
- package/login/pages/login/login.component.d.ts +14 -0
- package/login/pages/login/login.component.html +212 -0
- package/login/pages/login/login.component.js +58 -0
- package/login/pages/login/login.component.js.map +1 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +13 -0
- package/login/pages/login-config-totp/login-config-totp.component.html +190 -0
- package/login/pages/login-config-totp/login-config-totp.component.js +53 -0
- package/login/pages/login-config-totp/login-config-totp.component.js.map +1 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +13 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +41 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +43 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +1 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +13 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +40 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +43 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +1 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +13 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.html +37 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +43 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +1 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +13 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.html +92 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +44 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +1 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +13 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +63 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +43 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +1 -0
- package/login/pages/login-otp/login-otp.component.d.ts +13 -0
- package/login/pages/login-otp/login-otp.component.html +103 -0
- package/login/pages/login-otp/login-otp.component.js +44 -0
- package/login/pages/login-otp/login-otp.component.js.map +1 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +13 -0
- package/login/pages/login-page-expired/login-page-expired.component.html +35 -0
- package/login/pages/login-page-expired/login-page-expired.component.js +42 -0
- package/login/pages/login-page-expired/login-page-expired.component.js.map +1 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +16 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +203 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +91 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +1 -0
- package/login/pages/login-password/login-password.component.d.ts +14 -0
- package/login/pages/login-password/login-password.component.html +90 -0
- package/login/pages/login-password/login-password.component.js +52 -0
- package/login/pages/login-password/login-password.component.js.map +1 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +15 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +155 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +51 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +1 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +13 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +76 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +44 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +1 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +13 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.html +65 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.js +43 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.js.map +1 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +13 -0
- package/login/pages/login-reset-password/login-reset-password.component.html +95 -0
- package/login/pages/login-reset-password/login-reset-password.component.js +44 -0
- package/login/pages/login-reset-password/login-reset-password.component.js.map +1 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +13 -0
- package/login/pages/login-update-password/login-update-password.component.html +116 -0
- package/login/pages/login-update-password/login-update-password.component.js +53 -0
- package/login/pages/login-update-password/login-update-password.component.js.map +1 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +14 -0
- package/login/pages/login-update-profile/login-update-profile.component.html +59 -0
- package/login/pages/login-update-profile/login-update-profile.component.js +50 -0
- package/login/pages/login-update-profile/login-update-profile.component.js.map +1 -0
- package/login/pages/login-username/login-username.component.d.ts +14 -0
- package/login/pages/login-username/login-username.component.html +161 -0
- package/login/pages/login-username/login-username.component.js +56 -0
- package/login/pages/login-username/login-username.component.js.map +1 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +13 -0
- package/login/pages/login-verify-email/login-verify-email.component.html +27 -0
- package/login/pages/login-verify-email/login-verify-email.component.js +43 -0
- package/login/pages/login-verify-email/login-verify-email.component.js.map +1 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +13 -0
- package/login/pages/login-x509-info/login-x509-info.component.html +102 -0
- package/login/pages/login-x509-info/login-x509-info.component.js +43 -0
- package/login/pages/login-x509-info/login-x509-info.component.js.map +1 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +13 -0
- package/login/pages/logout-confirm/logout-confirm.component.html +59 -0
- package/login/pages/logout-confirm/logout-confirm.component.js +43 -0
- package/login/pages/logout-confirm/logout-confirm.component.js.map +1 -0
- package/login/pages/register/register.component.d.ts +16 -0
- package/login/pages/register/register.component.html +126 -0
- package/login/pages/register/register.component.js +62 -0
- package/login/pages/register/register.component.js.map +1 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +16 -0
- package/login/pages/saml-post-form/saml-post-form.component.html +51 -0
- package/login/pages/saml-post-form/saml-post-form.component.js +55 -0
- package/login/pages/saml-post-form/saml-post-form.component.js.map +1 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +13 -0
- package/login/pages/select-authenticator/select-authenticator.component.html +49 -0
- package/login/pages/select-authenticator/select-authenticator.component.js +51 -0
- package/login/pages/select-authenticator/select-authenticator.component.js.map +1 -0
- package/login/pages/terms/terms.component.d.ts +13 -0
- package/login/pages/terms/terms.component.html +36 -0
- package/login/pages/terms/terms.component.js +43 -0
- package/login/pages/terms/terms.component.js.map +1 -0
- package/login/pages/update-email/update-email.component.d.ts +14 -0
- package/login/pages/update-email/update-email.component.html +58 -0
- package/login/pages/update-email/update-email.component.js +52 -0
- package/login/pages/update-email/update-email.component.js.map +1 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +20 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +162 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +93 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +1 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +14 -0
- package/login/pages/webauthn-error/webauthn-error.component.html +60 -0
- package/login/pages/webauthn-error/webauthn-error.component.js +57 -0
- package/login/pages/webauthn-error/webauthn-error.component.js.map +1 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +19 -0
- package/login/pages/webauthn-register/webauthn-register.component.html +82 -0
- package/login/pages/webauthn-register/webauthn-register.component.js +86 -0
- package/login/pages/webauthn-register/webauthn-register.component.js.map +1 -0
- package/login/pipes/advanced-msg-str.pipe.d.ts +5 -0
- package/login/pipes/advanced-msg-str.pipe.js +31 -0
- package/login/pipes/advanced-msg-str.pipe.js.map +1 -0
- package/login/pipes/index.d.ts +6 -0
- package/login/pipes/index.js +7 -0
- package/login/pipes/index.js.map +1 -0
- package/login/pipes/input-type.pipe.d.ts +4 -0
- package/login/pipes/input-type.pipe.js +23 -0
- package/login/pipes/input-type.pipe.js.map +1 -0
- package/login/pipes/kc-sanitize.pipe.d.ts +7 -0
- package/login/pipes/kc-sanitize.pipe.js +36 -0
- package/login/pipes/kc-sanitize.pipe.js.map +1 -0
- package/login/pipes/msg-str.pipe.d.ts +6 -0
- package/login/pipes/msg-str.pipe.js +31 -0
- package/login/pipes/msg-str.pipe.js.map +1 -0
- package/login/pipes/to-array.pipe.d.ts +4 -0
- package/login/pipes/to-array.pipe.js +24 -0
- package/login/pipes/to-array.pipe.js.map +1 -0
- package/login/pipes/to-number.pipe.d.ts +4 -0
- package/login/pipes/to-number.pipe.js +23 -0
- package/login/pipes/to-number.pipe.js.map +1 -0
- package/login/services/index.d.ts +2 -0
- package/login/services/index.js +3 -0
- package/login/services/index.js.map +1 -0
- package/login/services/login-resource-injector.service.d.ts +8 -0
- package/login/services/login-resource-injector.service.js +71 -0
- package/login/services/login-resource-injector.service.js.map +1 -0
- package/login/services/user-profile-form.service.d.ts +82 -0
- package/login/services/user-profile-form.service.js +1031 -0
- package/login/services/user-profile-form.service.js.map +1 -0
- package/package.json +450 -0
- package/src/lib/i18n.ts +9 -0
- package/src/lib/models/index.ts +1 -0
- package/src/lib/models/script.model.ts +6 -0
- package/src/lib/providers/keycloakify-angular.providers.ts +92 -0
- package/src/lib/public-api.ts +12 -0
- package/src/lib/services/i18n.service.ts +5 -0
- package/src/lib/services/index.ts +2 -0
- package/src/lib/services/resource-injector.service.ts +50 -0
- package/src/login/DefaultPage.ts +208 -0
- package/src/login/KcContext.ts +1 -0
- package/src/login/classes/component-reference.class.ts +5 -0
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +24 -0
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +144 -0
- package/src/login/components/field-errors/field-errors.component.html +15 -0
- package/src/login/components/field-errors/field-errors.component.ts +41 -0
- package/src/login/components/group-label/group-label.component.html +30 -0
- package/src/login/components/group-label/group-label.component.ts +50 -0
- package/src/login/components/index.ts +11 -0
- package/src/login/components/input-field-by-type/input-field-by-type.component.html +63 -0
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +67 -0
- package/src/login/components/input-tag/input-tag.component.html +49 -0
- package/src/login/components/input-tag/input-tag.component.ts +108 -0
- package/src/login/components/input-tag-selects/input-tag-selects.component.html +29 -0
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +150 -0
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +19 -0
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +31 -0
- package/src/login/components/password-wrapper/password-wrapper.component.html +15 -0
- package/src/login/components/password-wrapper/password-wrapper.component.ts +61 -0
- package/src/login/components/select-tag/select-tag.component.html +31 -0
- package/src/login/components/select-tag/select-tag.component.ts +109 -0
- package/src/login/components/textarea-tag/textarea-tag.component.html +18 -0
- package/src/login/components/textarea-tag/textarea-tag.component.ts +63 -0
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +85 -0
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +84 -0
- package/src/login/containers/template.component.html +203 -0
- package/src/login/containers/template.component.ts +94 -0
- package/src/login/directives/attributes.directive.ts +23 -0
- package/src/login/directives/index.ts +2 -0
- package/src/login/directives/kc-class.directive.ts +167 -0
- package/src/login/i18n.ts +4 -0
- package/src/login/pages/code/code.component.html +26 -0
- package/src/login/pages/code/code.component.ts +31 -0
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +46 -0
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +32 -0
- package/src/login/pages/delete-credential/delete-credential.component.html +35 -0
- package/src/login/pages/delete-credential/delete-credential.component.ts +43 -0
- package/src/login/pages/error/error.component.html +25 -0
- package/src/login/pages/error/error.component.ts +31 -0
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +35 -0
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +49 -0
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +41 -0
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +55 -0
- package/src/login/pages/info/info.component.html +54 -0
- package/src/login/pages/info/info.component.ts +65 -0
- package/src/login/pages/login/login.component.html +212 -0
- package/src/login/pages/login/login.component.ts +61 -0
- package/src/login/pages/login-config-totp/login-config-totp.component.html +190 -0
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +57 -0
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +41 -0
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +43 -0
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +40 -0
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +45 -0
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +37 -0
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +43 -0
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +92 -0
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +44 -0
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +63 -0
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +45 -0
- package/src/login/pages/login-otp/login-otp.component.html +103 -0
- package/src/login/pages/login-otp/login-otp.component.ts +43 -0
- package/src/login/pages/login-page-expired/login-page-expired.component.html +35 -0
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +42 -0
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +203 -0
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +101 -0
- package/src/login/pages/login-password/login-password.component.html +90 -0
- package/src/login/pages/login-password/login-password.component.ts +53 -0
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +155 -0
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +55 -0
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +76 -0
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +47 -0
- package/src/login/pages/login-reset-otp/login-reset-otp.component.html +65 -0
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +42 -0
- package/src/login/pages/login-reset-password/login-reset-password.component.html +95 -0
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +44 -0
- package/src/login/pages/login-update-password/login-update-password.component.html +116 -0
- package/src/login/pages/login-update-password/login-update-password.component.ts +56 -0
- package/src/login/pages/login-update-profile/login-update-profile.component.html +59 -0
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +52 -0
- package/src/login/pages/login-username/login-username.component.html +161 -0
- package/src/login/pages/login-username/login-username.component.ts +56 -0
- package/src/login/pages/login-verify-email/login-verify-email.component.html +27 -0
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +43 -0
- package/src/login/pages/login-x509-info/login-x509-info.component.html +102 -0
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +42 -0
- package/src/login/pages/logout-confirm/logout-confirm.component.html +59 -0
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +42 -0
- package/src/login/pages/register/register.component.html +126 -0
- package/src/login/pages/register/register.component.ts +62 -0
- package/src/login/pages/saml-post-form/saml-post-form.component.html +51 -0
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +58 -0
- package/src/login/pages/select-authenticator/select-authenticator.component.html +49 -0
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +51 -0
- package/src/login/pages/terms/terms.component.html +36 -0
- package/src/login/pages/terms/terms.component.ts +42 -0
- package/src/login/pages/update-email/update-email.component.html +58 -0
- package/src/login/pages/update-email/update-email.component.ts +52 -0
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +162 -0
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +106 -0
- package/src/login/pages/webauthn-error/webauthn-error.component.html +60 -0
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +57 -0
- package/src/login/pages/webauthn-register/webauthn-register.component.html +82 -0
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +106 -0
- package/src/login/pipes/advanced-msg-str.pipe.ts +13 -0
- package/src/login/pipes/index.ts +6 -0
- package/src/login/pipes/input-type.pipe.ts +15 -0
- package/src/login/pipes/kc-sanitize.pipe.ts +36 -0
- package/src/login/pipes/msg-str.pipe.ts +14 -0
- package/src/login/pipes/to-array.pipe.ts +15 -0
- package/src/login/pipes/to-number.pipe.ts +13 -0
- package/src/login/services/index.ts +2 -0
- package/src/login/services/login-resource-injector.service.ts +72 -0
- package/src/login/services/user-profile-form.service.ts +1504 -0
- package/src/tsconfig.json +18 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@let skipLink = kcContext.skipLink;
|
|
2
|
+
@let actionUri = kcContext.actionUri;
|
|
3
|
+
@let pageRedirectUri = kcContext.pageRedirectUri;
|
|
4
|
+
@let client = kcContext.client;
|
|
5
|
+
@let messageHeader = kcContext.messageHeader;
|
|
6
|
+
@let message = kcContext.message;
|
|
7
|
+
<kc-login-template
|
|
8
|
+
[displayInfo]="displayInfo"
|
|
9
|
+
[bodyClassName]="bodyClassName()"
|
|
10
|
+
[displayMessage]="displayMessage"
|
|
11
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
12
|
+
[documentTitle]="documentTitle()"
|
|
13
|
+
>
|
|
14
|
+
<ng-container headerNode>
|
|
15
|
+
<span [innerHTML]="messageHeader ?? message.summary | advancedMsgStr | kcSanitize: 'html'"> </span>
|
|
16
|
+
</ng-container>
|
|
17
|
+
<ng-container content>
|
|
18
|
+
<div id="kc-info-message">
|
|
19
|
+
<p
|
|
20
|
+
class="instruction"
|
|
21
|
+
[innerHTML]="infoMessage | kcSanitize: 'html'"
|
|
22
|
+
></p>
|
|
23
|
+
@if (!skipLink) {
|
|
24
|
+
@if (pageRedirectUri) {
|
|
25
|
+
<p>
|
|
26
|
+
<a
|
|
27
|
+
[href]="pageRedirectUri"
|
|
28
|
+
[innerHTML]="'backToApplication' | msgStr | kcSanitize: 'html'"
|
|
29
|
+
>
|
|
30
|
+
</a>
|
|
31
|
+
</p>
|
|
32
|
+
}
|
|
33
|
+
@if (actionUri) {
|
|
34
|
+
<p>
|
|
35
|
+
<a
|
|
36
|
+
[href]="actionUri"
|
|
37
|
+
[innerHTML]="'proceedWithAction' | msgStr | kcSanitize: 'html'"
|
|
38
|
+
>
|
|
39
|
+
</a>
|
|
40
|
+
</p>
|
|
41
|
+
}
|
|
42
|
+
@if (client.baseUrl) {
|
|
43
|
+
<p>
|
|
44
|
+
<a
|
|
45
|
+
[href]="client.baseUrl"
|
|
46
|
+
[innerHTML]="'backToApplication' | msgStr | kcSanitize: 'html'"
|
|
47
|
+
>
|
|
48
|
+
</a>
|
|
49
|
+
</p>
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
</div>
|
|
53
|
+
</ng-container>
|
|
54
|
+
</kc-login-template>
|
|
@@ -0,0 +1,65 @@
|
|
|
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";
|
|
13
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
14
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
15
|
+
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
16
|
+
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
17
|
+
import { AdvancedMsgStrPipe } from "@keycloakify/angular/login/pipes/advanced-msg-str.pipe";
|
|
18
|
+
import { KcSanitizePipe } from "@keycloakify/angular/login/pipes/kc-sanitize.pipe";
|
|
19
|
+
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
20
|
+
|
|
21
|
+
@Component({
|
|
22
|
+
standalone: true,
|
|
23
|
+
imports: [TemplateComponent, MsgStrPipe, KcSanitizePipe, AdvancedMsgStrPipe],
|
|
24
|
+
selector: "kc-root",
|
|
25
|
+
templateUrl: "info.component.html",
|
|
26
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
+
providers: [
|
|
28
|
+
AdvancedMsgStrPipe,
|
|
29
|
+
MsgStrPipe,
|
|
30
|
+
KcSanitizePipe,
|
|
31
|
+
{
|
|
32
|
+
provide: ComponentReference,
|
|
33
|
+
useExisting: forwardRef(() => InfoComponent)
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
})
|
|
37
|
+
export class InfoComponent extends ComponentReference {
|
|
38
|
+
kcContext = inject<Extract<KcContext, { pageId: "info.ftl" }>>(KC_CONTEXT);
|
|
39
|
+
advancedMsgStr = inject(AdvancedMsgStrPipe);
|
|
40
|
+
kcSanitize = inject(KcSanitizePipe);
|
|
41
|
+
msgStr = inject(MsgStrPipe);
|
|
42
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
43
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
44
|
+
displayRequiredFields = input(false);
|
|
45
|
+
documentTitle = input<string>();
|
|
46
|
+
bodyClassName = input<string>();
|
|
47
|
+
displayInfo: boolean = false;
|
|
48
|
+
displayMessage: boolean = false;
|
|
49
|
+
|
|
50
|
+
get infoMessage() {
|
|
51
|
+
let html = this.kcContext.message.summary;
|
|
52
|
+
if (this.kcContext.requiredActions) {
|
|
53
|
+
html += "<b>";
|
|
54
|
+
|
|
55
|
+
html += this.kcContext.requiredActions
|
|
56
|
+
.map(requiredAction =>
|
|
57
|
+
this.advancedMsgStr.transform(`requiredAction.${requiredAction}`)
|
|
58
|
+
)
|
|
59
|
+
.join(", ");
|
|
60
|
+
|
|
61
|
+
html += "</b>";
|
|
62
|
+
}
|
|
63
|
+
return html;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@let realm = kcContext.realm;
|
|
2
|
+
@let social = kcContext.social;
|
|
3
|
+
@let usernameHidden = kcContext.usernameHidden;
|
|
4
|
+
@let auth = kcContext.auth;
|
|
5
|
+
@let messagesPerField = kcContext.messagesPerField;
|
|
6
|
+
@let url = kcContext.url;
|
|
7
|
+
@let login = kcContext.login;
|
|
8
|
+
|
|
9
|
+
<kc-login-template
|
|
10
|
+
[displayInfo]="displayInfo"
|
|
11
|
+
[bodyClassName]="bodyClassName()"
|
|
12
|
+
[displayMessage]="displayMessage"
|
|
13
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
14
|
+
[documentTitle]="documentTitle()"
|
|
15
|
+
>
|
|
16
|
+
<ng-container headerNode>
|
|
17
|
+
{{ 'loginAccountTitle' | msgStr }}
|
|
18
|
+
</ng-container>
|
|
19
|
+
<ng-container infoNode>
|
|
20
|
+
<div id="kc-registration-container">
|
|
21
|
+
<div id="kc-registration">
|
|
22
|
+
<span>
|
|
23
|
+
{{ 'noAccount' | msgStr }}
|
|
24
|
+
<a
|
|
25
|
+
tabindex="8"
|
|
26
|
+
[href]="url?.registrationUrl"
|
|
27
|
+
>
|
|
28
|
+
{{ 'doRegister' | msgStr }}
|
|
29
|
+
</a>
|
|
30
|
+
</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</ng-container>
|
|
34
|
+
<ng-container socialProvidersNode>
|
|
35
|
+
@if (!!realm?.password && !!social?.providers?.length) {
|
|
36
|
+
<div
|
|
37
|
+
id="kc-social-providers"
|
|
38
|
+
[kcClass]="'kcFormSocialAccountSectionClass'"
|
|
39
|
+
>
|
|
40
|
+
<hr />
|
|
41
|
+
<h2>{{ 'identity-provider-login-label' | msgStr }}</h2>
|
|
42
|
+
<ul
|
|
43
|
+
[kcClass]="{
|
|
44
|
+
kcFormSocialAccountListClass: true,
|
|
45
|
+
kcFormSocialAccountListGridClass: (social?.providers?.length ?? 0) > 3,
|
|
46
|
+
}"
|
|
47
|
+
>
|
|
48
|
+
@for (provider of social?.providers; track provider.alias; let idx = $index) {
|
|
49
|
+
<li>
|
|
50
|
+
<a
|
|
51
|
+
[id]="provider.alias"
|
|
52
|
+
[kcClass]="{
|
|
53
|
+
kcFormSocialAccountListButtonClass: true,
|
|
54
|
+
kcFormSocialAccountGridItem: (social?.providers?.length ?? 0) > 3,
|
|
55
|
+
}"
|
|
56
|
+
type="button"
|
|
57
|
+
[href]="provider.loginUrl"
|
|
58
|
+
>
|
|
59
|
+
@if (provider.iconClasses) {
|
|
60
|
+
<i
|
|
61
|
+
[ngClass]="provider.iconClasses"
|
|
62
|
+
[kcClass]="'kcCommonLogoIdP'"
|
|
63
|
+
aria-hidden="true"
|
|
64
|
+
></i>
|
|
65
|
+
}
|
|
66
|
+
<span
|
|
67
|
+
[ngClass]="{
|
|
68
|
+
'kc-social-icon-text': provider.iconClasses,
|
|
69
|
+
}"
|
|
70
|
+
[kcClass]="'kcFormSocialAccountNameClass'"
|
|
71
|
+
[innerHTML]="provider.displayName | kcSanitize: 'html'"
|
|
72
|
+
></span>
|
|
73
|
+
</a>
|
|
74
|
+
</li>
|
|
75
|
+
}
|
|
76
|
+
</ul>
|
|
77
|
+
</div>
|
|
78
|
+
}
|
|
79
|
+
</ng-container>
|
|
80
|
+
<ng-container content>
|
|
81
|
+
<div id="kc-form">
|
|
82
|
+
<div id="kc-form-wrapper">
|
|
83
|
+
<!-- login.component.html -->
|
|
84
|
+
@if (realm?.password) {
|
|
85
|
+
<form
|
|
86
|
+
id="kc-form-login"
|
|
87
|
+
(onSubmit)="isLoginButtonDisabled.set(true)"
|
|
88
|
+
[action]="url?.loginAction"
|
|
89
|
+
method="post"
|
|
90
|
+
>
|
|
91
|
+
@if (!usernameHidden) {
|
|
92
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
93
|
+
<label
|
|
94
|
+
for="username"
|
|
95
|
+
[kcClass]="'kcLabelClass'"
|
|
96
|
+
>
|
|
97
|
+
@if (!realm?.loginWithEmailAllowed) {
|
|
98
|
+
{{ 'username' | msgStr }}
|
|
99
|
+
} @else if (!realm?.registrationEmailAsUsername) {
|
|
100
|
+
{{ 'usernameOrEmail' | msgStr }}
|
|
101
|
+
} @else {
|
|
102
|
+
{{ 'email' | msgStr }}
|
|
103
|
+
}
|
|
104
|
+
</label>
|
|
105
|
+
<input
|
|
106
|
+
tabindex="2"
|
|
107
|
+
id="username"
|
|
108
|
+
[kcClass]="'kcInputClass'"
|
|
109
|
+
name="username"
|
|
110
|
+
type="text"
|
|
111
|
+
autofocus
|
|
112
|
+
[defaultValue]="login?.username || ''"
|
|
113
|
+
[attr.aria-invalid]="messagesPerField?.existsError('username', 'password')"
|
|
114
|
+
/>
|
|
115
|
+
@if (messagesPerField?.existsError('username', 'password')) {
|
|
116
|
+
<span
|
|
117
|
+
id="input-error"
|
|
118
|
+
[kcClass]="'kcInputErrorMessageClass'"
|
|
119
|
+
aria-live="polite"
|
|
120
|
+
[innerHTML]="messagesPerField?.getFirstError('username', 'password') | kcSanitize: 'html'"
|
|
121
|
+
>
|
|
122
|
+
</span>
|
|
123
|
+
}
|
|
124
|
+
</div>
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
128
|
+
<label
|
|
129
|
+
for="password"
|
|
130
|
+
[kcClass]="'kcLabelClass'"
|
|
131
|
+
>
|
|
132
|
+
{{ 'password' | msgStr }}
|
|
133
|
+
</label>
|
|
134
|
+
|
|
135
|
+
<kc-password-wrapper passwordInputId="password">
|
|
136
|
+
<input
|
|
137
|
+
tabindex="3"
|
|
138
|
+
id="password"
|
|
139
|
+
[kcClass]="'kcInputClass'"
|
|
140
|
+
name="password"
|
|
141
|
+
type="password"
|
|
142
|
+
autocomplete="off"
|
|
143
|
+
[attr.aria-invalid]="messagesPerField.existsError('username', 'password')"
|
|
144
|
+
/>
|
|
145
|
+
</kc-password-wrapper>
|
|
146
|
+
@if (usernameHidden && messagesPerField?.existsError('username', 'password')) {
|
|
147
|
+
<span
|
|
148
|
+
id="input-error"
|
|
149
|
+
[kcClass]="'kcInputErrorMessageClass'"
|
|
150
|
+
aria-live="polite"
|
|
151
|
+
[innerHTML]="messagesPerField?.getFirstError('username', 'password') | kcSanitize: 'html'"
|
|
152
|
+
>
|
|
153
|
+
</span>
|
|
154
|
+
}
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<div [kcClass]="['kcFormGroupClass', 'kcFormSettingClass']">
|
|
158
|
+
<div id="kc-form-options">
|
|
159
|
+
@if (realm?.rememberMe && !usernameHidden) {
|
|
160
|
+
<div class="checkbox">
|
|
161
|
+
<label>
|
|
162
|
+
<input
|
|
163
|
+
tabindex="5"
|
|
164
|
+
id="rememberMe"
|
|
165
|
+
name="rememberMe"
|
|
166
|
+
type="checkbox"
|
|
167
|
+
[defaultChecked]="!!login?.rememberMe"
|
|
168
|
+
/>
|
|
169
|
+
{{ 'rememberMe' | msgStr }}
|
|
170
|
+
</label>
|
|
171
|
+
</div>
|
|
172
|
+
}
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'">
|
|
176
|
+
@if (realm?.resetPasswordAllowed) {
|
|
177
|
+
<span>
|
|
178
|
+
<a
|
|
179
|
+
tabindex="6"
|
|
180
|
+
[href]="url?.loginResetCredentialsUrl"
|
|
181
|
+
>{{ 'doForgotPassword' | msgStr }}</a
|
|
182
|
+
>
|
|
183
|
+
</span>
|
|
184
|
+
}
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<div
|
|
188
|
+
id="kc-form-buttons"
|
|
189
|
+
[kcClass]="'kcFormGroupClass'"
|
|
190
|
+
>
|
|
191
|
+
<input
|
|
192
|
+
type="hidden"
|
|
193
|
+
id="id-hidden-input"
|
|
194
|
+
name="credentialId"
|
|
195
|
+
[value]="auth?.selectedCredential"
|
|
196
|
+
/>
|
|
197
|
+
<input
|
|
198
|
+
tabindex="7"
|
|
199
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
200
|
+
name="login"
|
|
201
|
+
id="kc-login"
|
|
202
|
+
type="submit"
|
|
203
|
+
[value]="'doLogIn' | msgStr"
|
|
204
|
+
[disabled]="isLoginButtonDisabled()"
|
|
205
|
+
/>
|
|
206
|
+
</div>
|
|
207
|
+
</form>
|
|
208
|
+
}
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</ng-container>
|
|
212
|
+
</kc-login-template>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AsyncPipe, NgClass } from "@angular/common";
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
forwardRef,
|
|
6
|
+
inject,
|
|
7
|
+
input,
|
|
8
|
+
signal
|
|
9
|
+
} from "@angular/core";
|
|
10
|
+
import {
|
|
11
|
+
CLASSES,
|
|
12
|
+
KC_CONTEXT,
|
|
13
|
+
USE_DEFAULT_CSS
|
|
14
|
+
} from "@keycloakify/angular/lib/public-api";
|
|
15
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
16
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
17
|
+
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
18
|
+
import { PasswordWrapperComponent } from "@keycloakify/angular/login/components/password-wrapper/password-wrapper.component";
|
|
19
|
+
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
20
|
+
import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
|
|
21
|
+
import { KcSanitizePipe } from "@keycloakify/angular/login/pipes/kc-sanitize.pipe";
|
|
22
|
+
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: "kc-root",
|
|
26
|
+
templateUrl: "./login.component.html",
|
|
27
|
+
standalone: true,
|
|
28
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
|
+
imports: [
|
|
30
|
+
KcClassDirective,
|
|
31
|
+
AsyncPipe,
|
|
32
|
+
KcSanitizePipe,
|
|
33
|
+
PasswordWrapperComponent,
|
|
34
|
+
NgClass,
|
|
35
|
+
TemplateComponent,
|
|
36
|
+
MsgStrPipe
|
|
37
|
+
],
|
|
38
|
+
providers: [
|
|
39
|
+
{
|
|
40
|
+
provide: ComponentReference,
|
|
41
|
+
useExisting: forwardRef(() => LoginComponent)
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
})
|
|
45
|
+
export class LoginComponent extends ComponentReference {
|
|
46
|
+
kcContext = inject<Extract<KcContext, { pageId: "login.ftl" }>>(KC_CONTEXT);
|
|
47
|
+
displayRequiredFields = input(false);
|
|
48
|
+
documentTitle = input<string>();
|
|
49
|
+
bodyClassName = input<string>();
|
|
50
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
51
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
52
|
+
isLoginButtonDisabled = signal(false);
|
|
53
|
+
displayInfo: boolean =
|
|
54
|
+
!!this.kcContext?.realm?.password &&
|
|
55
|
+
!!this.kcContext?.realm?.registrationAllowed &&
|
|
56
|
+
!this.kcContext?.registrationDisabled;
|
|
57
|
+
displayMessage: boolean = !this.kcContext?.messagesPerField?.existsError(
|
|
58
|
+
"username",
|
|
59
|
+
"password"
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
@let totp = kcContext.totp;
|
|
2
|
+
@let url = kcContext.url;
|
|
3
|
+
@let messagesPerField = kcContext.messagesPerField;
|
|
4
|
+
@let mode = kcContext.mode;
|
|
5
|
+
@let isAppInitiatedAction = kcContext.isAppInitiatedAction;
|
|
6
|
+
<kc-login-template
|
|
7
|
+
[displayInfo]="displayInfo"
|
|
8
|
+
[bodyClassName]="bodyClassName()"
|
|
9
|
+
[displayMessage]="displayMessage"
|
|
10
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
11
|
+
[documentTitle]="documentTitle()"
|
|
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 }}
|
|
47
|
+
</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>
|
|
52
|
+
} @else {
|
|
53
|
+
<li id="kc-totp-counter">{{ 'loginTotpCounter' | msgStr }}: {{ totp.policy.initialCounter }}</li>
|
|
54
|
+
}
|
|
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"
|
|
177
|
+
>
|
|
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
|
+
>
|
|
@@ -0,0 +1,57 @@
|
|
|
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";
|
|
13
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
14
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
15
|
+
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
16
|
+
import { LogoutOtherSessionsComponent } from "@keycloakify/angular/login/components/logout-other-sessions/logout-other-sessions.component";
|
|
17
|
+
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
18
|
+
import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
|
|
19
|
+
import { AdvancedMsgStrPipe } from "@keycloakify/angular/login/pipes/advanced-msg-str.pipe";
|
|
20
|
+
import { KcSanitizePipe } from "@keycloakify/angular/login/pipes/kc-sanitize.pipe";
|
|
21
|
+
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
22
|
+
|
|
23
|
+
@Component({
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [
|
|
26
|
+
TemplateComponent,
|
|
27
|
+
MsgStrPipe,
|
|
28
|
+
AdvancedMsgStrPipe,
|
|
29
|
+
KcClassDirective,
|
|
30
|
+
KcSanitizePipe,
|
|
31
|
+
LogoutOtherSessionsComponent
|
|
32
|
+
],
|
|
33
|
+
selector: "kc-root",
|
|
34
|
+
templateUrl: "login-config-totp.component.html",
|
|
35
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
36
|
+
providers: [
|
|
37
|
+
{
|
|
38
|
+
provide: ComponentReference,
|
|
39
|
+
useExisting: forwardRef(() => LoginConfigTotpComponent)
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
})
|
|
43
|
+
export class LoginConfigTotpComponent extends ComponentReference {
|
|
44
|
+
kcContext =
|
|
45
|
+
inject<Extract<KcContext, { pageId: "login-config-totp.ftl" }>>(KC_CONTEXT);
|
|
46
|
+
|
|
47
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
48
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
49
|
+
displayRequiredFields = input(false);
|
|
50
|
+
documentTitle = input<string>();
|
|
51
|
+
bodyClassName = input<string>();
|
|
52
|
+
displayInfo: boolean = false;
|
|
53
|
+
displayMessage: boolean = this.kcContext.messagesPerField.existsError(
|
|
54
|
+
"totp",
|
|
55
|
+
"userLabel"
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@let url = kcContext.url;
|
|
2
|
+
@let idpAlias = kcContext.idpAlias;
|
|
3
|
+
<kc-login-template
|
|
4
|
+
[displayInfo]="displayInfo"
|
|
5
|
+
[bodyClassName]="bodyClassName()"
|
|
6
|
+
[displayMessage]="displayMessage"
|
|
7
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
8
|
+
[documentTitle]="documentTitle()"
|
|
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"
|
|
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
|
+
</kc-login-template>
|