@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,23 @@
|
|
|
1
|
+
import { Directive, effect, ElementRef, inject, input, Renderer2 } from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Directive({ selector: "[kcAttributes]", standalone: true })
|
|
4
|
+
export class AttributesDirective {
|
|
5
|
+
kcAttributes = input<Record<string, string>>();
|
|
6
|
+
readonly #el = inject<ElementRef<HTMLElement>>(ElementRef);
|
|
7
|
+
readonly #renderer = inject(Renderer2);
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
effect(() => {
|
|
11
|
+
const attributes = this.kcAttributes();
|
|
12
|
+
if (attributes) {
|
|
13
|
+
Object.entries(attributes).forEach(([key, value]) => {
|
|
14
|
+
this.#renderer.setAttribute(
|
|
15
|
+
this.#el.nativeElement,
|
|
16
|
+
`data-${key}`,
|
|
17
|
+
value
|
|
18
|
+
);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
/* eslint-disable @typescript-eslint/consistent-indexed-object-style */
|
|
3
|
+
import {
|
|
4
|
+
Directive,
|
|
5
|
+
DoCheck,
|
|
6
|
+
ElementRef,
|
|
7
|
+
inject,
|
|
8
|
+
Input,
|
|
9
|
+
isDevMode,
|
|
10
|
+
Renderer2,
|
|
11
|
+
ɵstringify as stringify
|
|
12
|
+
} from "@angular/core";
|
|
13
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
14
|
+
import { getKcClsx } from "keycloakify/login/lib/kcClsx";
|
|
15
|
+
import { ComponentReference } from "../classes/component-reference.class";
|
|
16
|
+
|
|
17
|
+
interface CssClassState {
|
|
18
|
+
// PERF: could use a bit mask to represent state as all fields are boolean flags
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
changed: boolean;
|
|
21
|
+
touched: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type KcClassSupportedTypes =
|
|
25
|
+
| ClassKey[]
|
|
26
|
+
| Set<ClassKey>
|
|
27
|
+
| Partial<{ [key in ClassKey]: any }>
|
|
28
|
+
| null
|
|
29
|
+
| undefined;
|
|
30
|
+
|
|
31
|
+
type NgClassSupportedTypes =
|
|
32
|
+
| string[]
|
|
33
|
+
| Set<string>
|
|
34
|
+
| { [key: string]: any }
|
|
35
|
+
| null
|
|
36
|
+
| undefined;
|
|
37
|
+
|
|
38
|
+
@Directive({ selector: "[kcClass]", standalone: true })
|
|
39
|
+
export class KcClassDirective implements DoCheck {
|
|
40
|
+
private initialClasses: string[] = [];
|
|
41
|
+
private rawClass: NgClassSupportedTypes;
|
|
42
|
+
private rawKcClass: KcClassSupportedTypes;
|
|
43
|
+
|
|
44
|
+
private stateMap = new Map<string | ClassKey, CssClassState>();
|
|
45
|
+
readonly #renderer = inject(Renderer2);
|
|
46
|
+
readonly #el = inject(ElementRef);
|
|
47
|
+
readonly #host = inject(ComponentReference);
|
|
48
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
49
|
+
@Input("class")
|
|
50
|
+
set klass(value: string) {
|
|
51
|
+
this.initialClasses = value != null ? value.trim().split(/\s+/) : [];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
55
|
+
@Input("ngClass")
|
|
56
|
+
set ngClass(value: string | NgClassSupportedTypes) {
|
|
57
|
+
this.rawClass = typeof value === "string" ? value.trim().split(/\s+/) : value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
61
|
+
@Input("kcClass")
|
|
62
|
+
set kcClass(value: ClassKey | KcClassSupportedTypes) {
|
|
63
|
+
this.rawKcClass =
|
|
64
|
+
typeof value === "string" ? (value.trim().split(/\s+/) as ClassKey[]) : value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
ngDoCheck(): void {
|
|
68
|
+
for (const klass of this.initialClasses) {
|
|
69
|
+
this._updateState(klass, true);
|
|
70
|
+
}
|
|
71
|
+
// classes from the [ngClass] binding
|
|
72
|
+
const rawClass = this.rawClass;
|
|
73
|
+
if (Array.isArray(rawClass) || rawClass instanceof Set) {
|
|
74
|
+
for (const klass of rawClass) {
|
|
75
|
+
this._updateState(klass, true);
|
|
76
|
+
}
|
|
77
|
+
} else if (rawClass != null) {
|
|
78
|
+
for (const klass of Object.keys(rawClass)) {
|
|
79
|
+
this._updateState(klass, Boolean(rawClass[klass]));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// classes from the [kcClass] binding
|
|
84
|
+
const rawKcClass = this.rawKcClass;
|
|
85
|
+
if (Array.isArray(rawKcClass) || rawKcClass instanceof Set) {
|
|
86
|
+
for (const klass of rawKcClass) {
|
|
87
|
+
this._updateState(klass, true, true);
|
|
88
|
+
}
|
|
89
|
+
} else if (rawKcClass != null) {
|
|
90
|
+
for (const klass of Object.keys(rawKcClass)) {
|
|
91
|
+
this._updateState(klass, Boolean(rawKcClass[klass as ClassKey]), true);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
this._applyStateDiff();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private _updateState(
|
|
99
|
+
klass: string | ClassKey,
|
|
100
|
+
nextEnabled: boolean,
|
|
101
|
+
kcClsxCheck = false
|
|
102
|
+
) {
|
|
103
|
+
const state = this.stateMap.get(klass);
|
|
104
|
+
if (state !== undefined) {
|
|
105
|
+
if (state.enabled !== nextEnabled) {
|
|
106
|
+
state.changed = true;
|
|
107
|
+
state.enabled = nextEnabled;
|
|
108
|
+
}
|
|
109
|
+
state.touched = true;
|
|
110
|
+
} else {
|
|
111
|
+
let klassChecked = klass;
|
|
112
|
+
if (kcClsxCheck) {
|
|
113
|
+
const doUseDefaultCss = this.#host.doUseDefaultCss ?? true;
|
|
114
|
+
const classes = this.#host.classes;
|
|
115
|
+
const kcClsx = getKcClsx({ doUseDefaultCss, classes }).kcClsx;
|
|
116
|
+
klassChecked = kcClsx(klass as ClassKey);
|
|
117
|
+
}
|
|
118
|
+
this.stateMap.set(klassChecked, {
|
|
119
|
+
enabled: nextEnabled,
|
|
120
|
+
changed: true,
|
|
121
|
+
touched: true
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
private _applyStateDiff() {
|
|
127
|
+
for (const stateEntry of this.stateMap) {
|
|
128
|
+
const klass = stateEntry[0];
|
|
129
|
+
const state = stateEntry[1];
|
|
130
|
+
|
|
131
|
+
if (state.changed) {
|
|
132
|
+
this._toggleClass(klass, state.enabled);
|
|
133
|
+
state.changed = false;
|
|
134
|
+
} else if (!state.touched) {
|
|
135
|
+
// A class that was previously active got removed from the new collection of classes -
|
|
136
|
+
// remove from the DOM as well.
|
|
137
|
+
if (state.enabled) {
|
|
138
|
+
this._toggleClass(klass, false);
|
|
139
|
+
}
|
|
140
|
+
this.stateMap.delete(klass);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
state.touched = false;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
private _toggleClass(klass: string, enabled: boolean): void {
|
|
148
|
+
if (isDevMode()) {
|
|
149
|
+
if (typeof klass !== "string") {
|
|
150
|
+
throw new Error(
|
|
151
|
+
`NgClass can only toggle CSS classes expressed as strings, got ${stringify(klass)}`
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
klass = klass.trim();
|
|
157
|
+
if (klass.length > 0) {
|
|
158
|
+
klass.split(/\s+/).forEach(klass => {
|
|
159
|
+
if (enabled) {
|
|
160
|
+
this.#renderer.addClass(this.#el.nativeElement, klass);
|
|
161
|
+
} else {
|
|
162
|
+
this.#renderer.removeClass(this.#el.nativeElement, klass);
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GenericI18n_noJsx } from "keycloakify/login/i18n/noJsx/GenericI18n_noJsx";
|
|
2
|
+
import { MessageKey as MessageKey_defaultSet } from "keycloakify/login/i18n/messages_defaultSet/types";
|
|
3
|
+
/** INTERNAL: DO NOT IMPORT THIS */
|
|
4
|
+
export type I18n = GenericI18n_noJsx<MessageKey_defaultSet, string>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@let code = kcContext.code;
|
|
2
|
+
|
|
3
|
+
<kc-login-template>
|
|
4
|
+
<ng-container headerNode>
|
|
5
|
+
@if (code.success) {
|
|
6
|
+
{{ 'codeSuccessTitle' | msgStr }}
|
|
7
|
+
} @else {
|
|
8
|
+
{{ 'codeErrorTitle' | msgStr: code.error }}
|
|
9
|
+
}
|
|
10
|
+
</ng-container>
|
|
11
|
+
|
|
12
|
+
<ng-container content>
|
|
13
|
+
<div id="kc-code">
|
|
14
|
+
@if (code.success) {
|
|
15
|
+
<p>{{ 'copyCodeInstruction' | msgStr }}</p>
|
|
16
|
+
<input
|
|
17
|
+
id="code"
|
|
18
|
+
[kcClass]="'kcTextareaClass'"
|
|
19
|
+
defaultValue="{{ code.code }}"
|
|
20
|
+
/>
|
|
21
|
+
} @else {
|
|
22
|
+
<p id="error">{{ code.error }}</p>
|
|
23
|
+
}
|
|
24
|
+
</div>
|
|
25
|
+
</ng-container>
|
|
26
|
+
</kc-login-template>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
|
|
2
|
+
import {
|
|
3
|
+
CLASSES,
|
|
4
|
+
KC_CONTEXT,
|
|
5
|
+
USE_DEFAULT_CSS
|
|
6
|
+
} from "@keycloakify/angular/lib/public-api";
|
|
7
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
8
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
9
|
+
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
10
|
+
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
11
|
+
import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
|
|
12
|
+
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [MsgStrPipe, TemplateComponent, KcClassDirective],
|
|
17
|
+
selector: "kc-root",
|
|
18
|
+
templateUrl: "code.component.html",
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
providers: [
|
|
21
|
+
{
|
|
22
|
+
provide: ComponentReference,
|
|
23
|
+
useExisting: forwardRef(() => CodeComponent)
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
})
|
|
27
|
+
export class CodeComponent extends ComponentReference {
|
|
28
|
+
kcContext = inject<Extract<KcContext, { pageId: "code.ftl" }>>(KC_CONTEXT);
|
|
29
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
31
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@let url = kcContext.url;
|
|
2
|
+
@let triggered_from_aia = kcContext.triggered_from_aia;
|
|
3
|
+
<kc-login-template>
|
|
4
|
+
<ng-container headerNode>
|
|
5
|
+
{{ 'deleteAccountConfirm' | msgStr }}
|
|
6
|
+
</ng-container>
|
|
7
|
+
<ng-container content>
|
|
8
|
+
<form
|
|
9
|
+
[action]="url.loginAction"
|
|
10
|
+
method="post"
|
|
11
|
+
class="form-actions"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
class="alert alert-warning"
|
|
15
|
+
style="margin-top: 0; margin-bottom: 30px"
|
|
16
|
+
>
|
|
17
|
+
<span class="pficon pficon-warning-triangle-o"></span>
|
|
18
|
+
{{ 'irreversibleAction' | msgStr }}
|
|
19
|
+
</div>
|
|
20
|
+
<p>{{ 'deletingImplies' | msgStr }}</p>
|
|
21
|
+
<ul style="color: #72767b; list-style: disc; list-style-position: inside">
|
|
22
|
+
<li>{{ 'loggingOutImmediately' | msgStr }}</li>
|
|
23
|
+
<li>{{ 'errasingData' | msgStr }}</li>
|
|
24
|
+
</ul>
|
|
25
|
+
<p class="delete-account-text">{{ 'finalDeletionConfirmation' | msgStr }}</p>
|
|
26
|
+
<div id="kc-form-buttons">
|
|
27
|
+
<input
|
|
28
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
29
|
+
type="submit"
|
|
30
|
+
value="{{ 'doConfirmDelete' | msgStr }}"
|
|
31
|
+
/>
|
|
32
|
+
@if (triggered_from_aia) {
|
|
33
|
+
<button
|
|
34
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
35
|
+
style="margin-left: calc(100% - 220px)"
|
|
36
|
+
type="submit"
|
|
37
|
+
name="cancel-aia"
|
|
38
|
+
value="true"
|
|
39
|
+
>
|
|
40
|
+
{{ 'doCancel' | msgStr }}
|
|
41
|
+
</button>
|
|
42
|
+
}
|
|
43
|
+
</div>
|
|
44
|
+
</form>
|
|
45
|
+
</ng-container>
|
|
46
|
+
</kc-login-template>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
|
|
2
|
+
import {
|
|
3
|
+
CLASSES,
|
|
4
|
+
KC_CONTEXT,
|
|
5
|
+
USE_DEFAULT_CSS
|
|
6
|
+
} from "@keycloakify/angular/lib/public-api";
|
|
7
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
8
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
9
|
+
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
10
|
+
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
11
|
+
import { KcClassDirective } from "@keycloakify/angular/login/directives";
|
|
12
|
+
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [TemplateComponent, MsgStrPipe, KcClassDirective],
|
|
17
|
+
selector: "kc-root",
|
|
18
|
+
templateUrl: "delete-account-confirm.component.html",
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
providers: [
|
|
21
|
+
{
|
|
22
|
+
provide: ComponentReference,
|
|
23
|
+
useExisting: forwardRef(() => DeleteAccountConfirmComponent)
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
})
|
|
27
|
+
export class DeleteAccountConfirmComponent extends ComponentReference {
|
|
28
|
+
kcContext =
|
|
29
|
+
inject<Extract<KcContext, { pageId: "delete-account-confirm.ftl" }>>(KC_CONTEXT);
|
|
30
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
31
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
32
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@let url = kcContext.url;
|
|
2
|
+
@let credentialLabel = kcContext.credentialLabel;
|
|
3
|
+
<kc-login-template [displayMessage]="displayMessage">
|
|
4
|
+
<ng-container headerNode>
|
|
5
|
+
{{ 'deleteCredentialTitle' | msgStr: credentialLabel }}
|
|
6
|
+
</ng-container>
|
|
7
|
+
<ng-container content>
|
|
8
|
+
<div id="kc-delete-text">
|
|
9
|
+
{{ 'deleteCredentialMessage' | msgStr: credentialLabel }}
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<form
|
|
13
|
+
class="form-actions"
|
|
14
|
+
[action]="url.loginAction"
|
|
15
|
+
method="post"
|
|
16
|
+
>
|
|
17
|
+
<input
|
|
18
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
19
|
+
name="accept"
|
|
20
|
+
id="kc-accept"
|
|
21
|
+
type="submit"
|
|
22
|
+
[value]="'doConfirmDelete' | msgStr"
|
|
23
|
+
/>
|
|
24
|
+
|
|
25
|
+
<input
|
|
26
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
27
|
+
name="cancel-aia"
|
|
28
|
+
[value]="'doCancel' | msgStr"
|
|
29
|
+
id="kc-decline"
|
|
30
|
+
type="submit"
|
|
31
|
+
/>
|
|
32
|
+
</form>
|
|
33
|
+
<div class="clearfix"></div>
|
|
34
|
+
</ng-container>
|
|
35
|
+
</kc-login-template>
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
|
|
18
|
+
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
19
|
+
|
|
20
|
+
@Component({
|
|
21
|
+
standalone: true,
|
|
22
|
+
imports: [MsgStrPipe, TemplateComponent, KcClassDirective],
|
|
23
|
+
selector: "kc-root",
|
|
24
|
+
templateUrl: "delete-credential.component.html",
|
|
25
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
|
+
providers: [
|
|
27
|
+
{
|
|
28
|
+
provide: ComponentReference,
|
|
29
|
+
useExisting: forwardRef(() => DeleteCredentialComponent)
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
export class DeleteCredentialComponent extends ComponentReference {
|
|
34
|
+
kcContext =
|
|
35
|
+
inject<Extract<KcContext, { pageId: "delete-credential.ftl" }>>(KC_CONTEXT);
|
|
36
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
37
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
38
|
+
displayRequiredFields = input(false);
|
|
39
|
+
documentTitle = input<string>();
|
|
40
|
+
bodyClassName = input<string>();
|
|
41
|
+
displayInfo: boolean = false;
|
|
42
|
+
displayMessage: boolean = false;
|
|
43
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@let message = kcContext.message;
|
|
2
|
+
@let skipLink = kcContext.skipLink;
|
|
3
|
+
@let client = kcContext.client;
|
|
4
|
+
<kc-login-template [displayMessage]="false">
|
|
5
|
+
<ng-container headerNode>
|
|
6
|
+
{{ 'errorTitle' | msgStr }}
|
|
7
|
+
</ng-container>
|
|
8
|
+
<ng-container content>
|
|
9
|
+
<div id="kc-error-message">
|
|
10
|
+
<p
|
|
11
|
+
class="instruction"
|
|
12
|
+
[innerHTML]="message.summary | kcSanitize: 'html'"
|
|
13
|
+
></p>
|
|
14
|
+
@if (!skipLink && !!client?.baseUrl) {
|
|
15
|
+
<p>
|
|
16
|
+
<a
|
|
17
|
+
id="backToApplication"
|
|
18
|
+
[href]="client.baseUrl"
|
|
19
|
+
[innerHTML]="'backToApplication' | msgStr | kcSanitize: 'html'"
|
|
20
|
+
></a>
|
|
21
|
+
</p>
|
|
22
|
+
}
|
|
23
|
+
</div>
|
|
24
|
+
</ng-container>
|
|
25
|
+
</kc-login-template>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
|
|
2
|
+
import {
|
|
3
|
+
CLASSES,
|
|
4
|
+
KC_CONTEXT,
|
|
5
|
+
USE_DEFAULT_CSS
|
|
6
|
+
} from "@keycloakify/angular/lib/public-api";
|
|
7
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
8
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
9
|
+
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
10
|
+
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
11
|
+
import { KcSanitizePipe } from "@keycloakify/angular/login/pipes/kc-sanitize.pipe";
|
|
12
|
+
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [TemplateComponent, MsgStrPipe, KcSanitizePipe],
|
|
17
|
+
selector: "kc-root",
|
|
18
|
+
templateUrl: "error.component.html",
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
providers: [
|
|
21
|
+
{
|
|
22
|
+
provide: ComponentReference,
|
|
23
|
+
useExisting: forwardRef(() => ErrorComponent)
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
})
|
|
27
|
+
export class ErrorComponent extends ComponentReference {
|
|
28
|
+
kcContext = inject<Extract<KcContext, { pageId: "error.ftl" }>>(KC_CONTEXT);
|
|
29
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
31
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@let logout = kcContext.logout;
|
|
2
|
+
<kc-login-template
|
|
3
|
+
[displayInfo]="displayInfo"
|
|
4
|
+
[bodyClassName]="bodyClassName()"
|
|
5
|
+
[displayMessage]="displayMessage"
|
|
6
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
7
|
+
[documentTitle]="'frontchannel-logout.title' | msgStr"
|
|
8
|
+
>
|
|
9
|
+
<ng-container headerNode>
|
|
10
|
+
{{ 'frontchannel-logout.title' | msgStr }}
|
|
11
|
+
</ng-container>
|
|
12
|
+
<ng-container content>
|
|
13
|
+
<p>{{ 'frontchannel-logout.message' | msgStr }}</p>
|
|
14
|
+
<ul>
|
|
15
|
+
@for (client of logout.clients; track client.name; let idx = $index) {
|
|
16
|
+
<li>
|
|
17
|
+
{{ client.name }}
|
|
18
|
+
<iframe
|
|
19
|
+
[src]="'client.frontChannelLogoutUrl' | kcSanitize: 'resourceUrl'"
|
|
20
|
+
style="display: none"
|
|
21
|
+
></iframe>
|
|
22
|
+
</li>
|
|
23
|
+
}
|
|
24
|
+
</ul>
|
|
25
|
+
@if (logout.logoutRedirectUri) {
|
|
26
|
+
<a
|
|
27
|
+
id="continue"
|
|
28
|
+
class="btn btn-primary"
|
|
29
|
+
[href]="logout.logoutRedirectUri"
|
|
30
|
+
>
|
|
31
|
+
{{ 'doContinue' | msgStr }}
|
|
32
|
+
</a>
|
|
33
|
+
}
|
|
34
|
+
</ng-container>
|
|
35
|
+
</kc-login-template>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
forwardRef,
|
|
5
|
+
inject,
|
|
6
|
+
input,
|
|
7
|
+
OnInit
|
|
8
|
+
} from "@angular/core";
|
|
9
|
+
import {
|
|
10
|
+
CLASSES,
|
|
11
|
+
KC_CONTEXT,
|
|
12
|
+
USE_DEFAULT_CSS
|
|
13
|
+
} from "@keycloakify/angular/lib/public-api";
|
|
14
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
15
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
16
|
+
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
17
|
+
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
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],
|
|
24
|
+
selector: "kc-root",
|
|
25
|
+
templateUrl: "frontchannel-logout.component.html",
|
|
26
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
+
providers: [
|
|
28
|
+
{
|
|
29
|
+
provide: ComponentReference,
|
|
30
|
+
useExisting: forwardRef(() => FrontchannelLogoutComponent)
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
})
|
|
34
|
+
export class FrontchannelLogoutComponent extends ComponentReference implements OnInit {
|
|
35
|
+
kcContext =
|
|
36
|
+
inject<Extract<KcContext, { pageId: "frontchannel-logout.ftl" }>>(KC_CONTEXT);
|
|
37
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
38
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
39
|
+
displayRequiredFields = input(false);
|
|
40
|
+
bodyClassName = input<string>();
|
|
41
|
+
displayInfo: boolean = false;
|
|
42
|
+
displayMessage: boolean = false;
|
|
43
|
+
|
|
44
|
+
ngOnInit(): void {
|
|
45
|
+
if (this.kcContext.logout.logoutRedirectUri) {
|
|
46
|
+
window.location.replace(this.kcContext.logout.logoutRedirectUri);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@let url = kcContext.url;
|
|
2
|
+
<kc-login-template
|
|
3
|
+
[displayInfo]="displayInfo"
|
|
4
|
+
[bodyClassName]="bodyClassName()"
|
|
5
|
+
[displayMessage]="displayMessage"
|
|
6
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
7
|
+
[documentTitle]="documentTitle()"
|
|
8
|
+
>
|
|
9
|
+
<ng-container headerNode>
|
|
10
|
+
{{ 'loginIdpReviewProfileTitle' | msgStr }}
|
|
11
|
+
</ng-container>
|
|
12
|
+
<ng-container content>
|
|
13
|
+
<form
|
|
14
|
+
id="kc-idp-review-profile-form"
|
|
15
|
+
[kcClass]="'kcFormClass'"
|
|
16
|
+
[action]="url.loginAction"
|
|
17
|
+
method="post"
|
|
18
|
+
>
|
|
19
|
+
<kc-user-profile-form-fields (onIsFormSubmittable)="isFormSubmittable.set($event)" />
|
|
20
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
21
|
+
<div
|
|
22
|
+
id="kc-form-options"
|
|
23
|
+
[kcClass]="'kcFormOptionsClass'"
|
|
24
|
+
>
|
|
25
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
26
|
+
</div>
|
|
27
|
+
<div
|
|
28
|
+
id="kc-form-buttons"
|
|
29
|
+
[kcClass]="'kcFormButtonsClass'"
|
|
30
|
+
>
|
|
31
|
+
<input
|
|
32
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
33
|
+
type="submit"
|
|
34
|
+
value="{{ 'doSubmit' | msgStr }}"
|
|
35
|
+
[disabled]="!isFormSubmittable"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</form>
|
|
40
|
+
</ng-container>
|
|
41
|
+
</kc-login-template>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
forwardRef,
|
|
5
|
+
inject,
|
|
6
|
+
input,
|
|
7
|
+
signal
|
|
8
|
+
} from "@angular/core";
|
|
9
|
+
import {
|
|
10
|
+
CLASSES,
|
|
11
|
+
KC_CONTEXT,
|
|
12
|
+
USE_DEFAULT_CSS
|
|
13
|
+
} from "@keycloakify/angular/lib/public-api";
|
|
14
|
+
import { ClassKey } from "keycloakify/login/lib/kcClsx";
|
|
15
|
+
import { KcContext } from "keycloakify/login/KcContext";
|
|
16
|
+
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
17
|
+
import { UserProfileFormFieldsComponent } from "@keycloakify/angular/login/components/user-profile-form-fields/user-profile-form-fields.component";
|
|
18
|
+
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
19
|
+
import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
|
|
20
|
+
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
21
|
+
|
|
22
|
+
@Component({
|
|
23
|
+
standalone: true,
|
|
24
|
+
imports: [
|
|
25
|
+
TemplateComponent,
|
|
26
|
+
MsgStrPipe,
|
|
27
|
+
UserProfileFormFieldsComponent,
|
|
28
|
+
KcClassDirective
|
|
29
|
+
],
|
|
30
|
+
selector: "kc-root",
|
|
31
|
+
templateUrl: "idp-review-user-profile.component.html",
|
|
32
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
|
+
providers: [
|
|
34
|
+
{
|
|
35
|
+
provide: ComponentReference,
|
|
36
|
+
useExisting: forwardRef(() => IdpReviewUserProfileComponent)
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
})
|
|
40
|
+
export class IdpReviewUserProfileComponent extends ComponentReference {
|
|
41
|
+
kcContext =
|
|
42
|
+
inject<Extract<KcContext, { pageId: "idp-review-user-profile.ftl" }>>(KC_CONTEXT);
|
|
43
|
+
displayRequiredFields = input(true);
|
|
44
|
+
documentTitle = input<string>();
|
|
45
|
+
bodyClassName = input<string>();
|
|
46
|
+
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
47
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
|
|
48
|
+
isFormSubmittable = signal(false);
|
|
49
|
+
displayInfo: boolean = false;
|
|
50
|
+
displayMessage: boolean = !this.kcContext?.messagesPerField?.existsError("global");
|
|
51
|
+
|
|
52
|
+
onCallback() {
|
|
53
|
+
(document.getElementById("kc-register-form") as HTMLFormElement).submit();
|
|
54
|
+
}
|
|
55
|
+
}
|