@keycloakify/angular 0.0.1-rc.0 → 0.0.1-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/DefaultPage.d.ts +38 -0
- package/account/DefaultPage.js +34 -0
- package/account/KcContext.d.ts +1 -0
- package/account/KcContext.js +2 -0
- package/account/classes/component-reference.class.d.ts +6 -0
- package/account/classes/component-reference.class.js +3 -0
- package/account/containers/template.component.d.ts +26 -0
- package/account/containers/template.component.js +66 -0
- package/account/directives/kc-class.directive.d.ts +26 -0
- package/account/directives/kc-class.directive.js +137 -0
- package/account/i18n.d.ts +4 -0
- package/account/i18n.js +2 -0
- package/account/pages/account/account.component.d.ts +14 -0
- package/account/pages/account/account.component.js +39 -0
- package/account/pages/applications/applications.component.d.ts +13 -0
- package/account/pages/applications/applications.component.js +37 -0
- package/account/pages/federatedIdentity/federatedIdentity.component.d.ts +13 -0
- package/account/pages/federatedIdentity/federatedIdentity.component.js +36 -0
- package/account/pages/log/log.component.d.ts +13 -0
- package/account/pages/log/log.component.js +36 -0
- package/account/pages/password/password.component.d.ts +28 -0
- package/account/pages/password/password.component.js +107 -0
- package/account/pages/sessions/sessions.component.d.ts +13 -0
- package/account/pages/sessions/sessions.component.js +36 -0
- package/account/pages/totp/totp.component.d.ts +13 -0
- package/account/pages/totp/totp.component.js +37 -0
- package/account/providers/keycloakify-angular.providers.d.ts +15 -0
- package/account/providers/keycloakify-angular.providers.js +48 -0
- package/account/services/i18n.service.d.ts +6 -0
- package/account/services/i18n.service.js +12 -0
- package/account/services/resource-injector.service.d.ts +10 -0
- package/account/services/resource-injector.service.js +37 -0
- package/account/tokens/classes.token.d.ts +16 -0
- package/account/tokens/classes.token.js +3 -0
- package/account/tokens/i18n.token.d.ts +2 -0
- package/account/tokens/i18n.token.js +3 -0
- package/account/tokens/kc-context.token.d.ts +3 -0
- package/account/tokens/kc-context.token.js +3 -0
- package/lib/directives/attributes.directive.d.ts +8 -0
- package/lib/directives/attributes.directive.js +26 -0
- package/lib/models/script.model.js +1 -1
- package/lib/pipes/input-type.pipe.d.ts +7 -0
- package/lib/pipes/input-type.pipe.js +20 -0
- package/lib/pipes/is-array-with-empty-object.pipe.d.ts +7 -0
- package/lib/pipes/is-array-with-empty-object.pipe.js +20 -0
- package/lib/pipes/kc-sanitize.pipe.d.ts +9 -0
- package/lib/pipes/kc-sanitize.pipe.js +29 -0
- package/lib/pipes/to-array.pipe.d.ts +7 -0
- package/lib/pipes/to-array.pipe.js +21 -0
- package/lib/pipes/to-number.pipe.d.ts +7 -0
- package/lib/pipes/to-number.pipe.js +20 -0
- package/lib/services/resource-injector.service.d.ts +5 -2
- package/lib/services/resource-injector.service.js +19 -22
- package/lib/tokens/use-default-css.token.d.ts +2 -0
- package/lib/tokens/use-default-css.token.js +3 -0
- package/login/DefaultPage.d.ts +28 -28
- package/login/DefaultPage.js +74 -74
- package/login/KcContext.d.ts +1 -1
- package/login/KcContext.js +1 -1
- package/login/classes/component-reference.class.d.ts +1 -1
- package/login/classes/component-reference.class.js +1 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +7 -2
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +19 -36
- package/login/components/field-errors/field-errors.component.d.ts +7 -4
- package/login/components/field-errors/field-errors.component.js +23 -35
- package/login/components/group-label/group-label.component.d.ts +8 -3
- package/login/components/group-label/group-label.component.js +29 -41
- package/login/components/input-field-by-type/input-field-by-type.component.d.ts +7 -4
- package/login/components/input-field-by-type/input-field-by-type.component.js +33 -50
- package/login/components/input-tag/input-tag.component.d.ts +9 -4
- package/login/components/input-tag/input-tag.component.js +47 -64
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +11 -6
- package/login/components/input-tag-selects/input-tag-selects.component.js +41 -56
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +7 -2
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +25 -36
- package/login/components/password-wrapper/password-wrapper.component.d.ts +8 -3
- package/login/components/password-wrapper/password-wrapper.component.js +27 -38
- package/login/components/select-tag/select-tag.component.d.ts +9 -4
- package/login/components/select-tag/select-tag.component.js +32 -47
- package/login/components/textarea-tag/textarea-tag.component.d.ts +7 -4
- package/login/components/textarea-tag/textarea-tag.component.js +28 -42
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +11 -5
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +45 -57
- package/login/containers/template.component.d.ts +11 -8
- package/login/containers/template.component.js +36 -42
- package/login/directives/kc-class.directive.d.ts +5 -2
- package/login/directives/kc-class.directive.js +35 -43
- package/login/i18n.d.ts +2 -2
- package/login/i18n.js +1 -1
- package/login/pages/code/code.component.d.ts +8 -3
- package/login/pages/code/code.component.js +28 -31
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +8 -3
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +28 -31
- package/login/pages/delete-credential/delete-credential.component.d.ts +8 -3
- package/login/pages/delete-credential/delete-credential.component.js +28 -31
- package/login/pages/error/error.component.d.ts +8 -3
- package/login/pages/error/error.component.js +28 -31
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +9 -4
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +28 -31
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +13 -3
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +40 -41
- package/login/pages/info/info.component.d.ts +8 -9
- package/login/pages/info/info.component.js +31 -43
- package/login/pages/login/login.component.d.ts +8 -3
- package/login/pages/login/login.component.js +33 -47
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +8 -3
- package/login/pages/login-config-totp/login-config-totp.component.js +31 -42
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +8 -3
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +28 -31
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +8 -3
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +28 -31
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +8 -3
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +28 -31
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +8 -3
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +29 -33
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +8 -3
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +28 -31
- package/login/pages/login-otp/login-otp.component.d.ts +8 -3
- package/login/pages/login-otp/login-otp.component.js +30 -33
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +8 -3
- package/login/pages/login-page-expired/login-page-expired.component.js +27 -30
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +9 -6
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +37 -44
- package/login/pages/login-password/login-password.component.d.ts +8 -3
- package/login/pages/login-password/login-password.component.js +31 -40
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +8 -3
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +30 -38
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +8 -3
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +30 -33
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +8 -3
- package/login/pages/login-reset-otp/login-reset-otp.component.js +29 -32
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +8 -3
- package/login/pages/login-reset-password/login-reset-password.component.js +30 -33
- package/login/pages/login-update-password/login-update-password.component.d.ts +8 -3
- package/login/pages/login-update-password/login-update-password.component.js +32 -42
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +13 -3
- package/login/pages/login-update-profile/login-update-profile.component.js +39 -39
- package/login/pages/login-username/login-username.component.d.ts +8 -3
- package/login/pages/login-username/login-username.component.js +32 -45
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +8 -3
- package/login/pages/login-verify-email/login-verify-email.component.js +28 -31
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +8 -3
- package/login/pages/login-x509-info/login-x509-info.component.js +28 -31
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +8 -3
- package/login/pages/logout-confirm/logout-confirm.component.js +28 -31
- package/login/pages/register/register.component.d.ts +13 -3
- package/login/pages/register/register.component.js +41 -48
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +9 -4
- package/login/pages/saml-post-form/saml-post-form.component.js +32 -35
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +8 -3
- package/login/pages/select-authenticator/select-authenticator.component.js +29 -39
- package/login/pages/terms/terms.component.d.ts +8 -3
- package/login/pages/terms/terms.component.js +28 -31
- package/login/pages/update-email/update-email.component.d.ts +13 -3
- package/login/pages/update-email/update-email.component.js +40 -41
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +9 -6
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +37 -50
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +8 -3
- package/login/pages/webauthn-error/webauthn-error.component.js +32 -40
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +9 -6
- package/login/pages/webauthn-register/webauthn-register.component.js +36 -46
- package/login/providers/keycloakify-angular.providers.d.ts +16 -0
- package/login/providers/keycloakify-angular.providers.js +53 -0
- package/login/services/i18n.service.d.ts +6 -0
- package/login/services/i18n.service.js +12 -0
- package/login/services/login-resource-injector.service.d.ts +4 -1
- package/login/services/login-resource-injector.service.js +22 -25
- package/login/services/submit.service.d.ts +9 -0
- package/login/services/submit.service.js +20 -0
- package/login/services/user-profile-form.service.d.ts +16 -12
- package/login/services/user-profile-form.service.js +293 -305
- package/{lib/providers/keycloakify-angular.providers.d.ts → login/tokens/classes.token.d.ts} +14 -37
- package/login/tokens/classes.token.js +3 -0
- package/login/tokens/i18n.token.d.ts +2 -0
- package/login/tokens/i18n.token.js +3 -0
- package/login/tokens/kc-context.token.d.ts +3 -0
- package/login/tokens/kc-context.token.js +3 -0
- package/login/tokens/make-user-confirm-password.token.d.ts +2 -0
- package/login/tokens/make-user-confirm-password.token.js +3 -0
- package/package.json +123 -181
- package/src/account/DefaultPage.ts +51 -0
- package/src/account/KcContext.ts +1 -0
- package/src/account/classes/component-reference.class.ts +6 -0
- package/src/account/containers/template.component.html +125 -0
- package/src/account/containers/template.component.ts +71 -0
- package/src/account/directives/kc-class.directive.ts +150 -0
- package/src/account/i18n.ts +4 -0
- package/src/account/pages/account/account.component.html +165 -0
- package/src/account/pages/account/account.component.ts +34 -0
- package/src/account/pages/applications/applications.component.html +156 -0
- package/src/account/pages/applications/applications.component.ts +32 -0
- package/src/account/pages/federatedIdentity/federatedIdentity.component.html +97 -0
- package/src/account/pages/federatedIdentity/federatedIdentity.component.ts +31 -0
- package/src/account/pages/log/log.component.html +44 -0
- package/src/account/pages/log/log.component.ts +31 -0
- package/src/account/pages/password/password.component.html +131 -0
- package/src/account/pages/password/password.component.ts +110 -0
- package/src/account/pages/sessions/sessions.component.html +63 -0
- package/src/account/pages/sessions/sessions.component.ts +31 -0
- package/src/account/pages/totp/totp.component.html +258 -0
- package/src/account/pages/totp/totp.component.ts +32 -0
- package/src/account/providers/keycloakify-angular.providers.ts +64 -0
- package/src/account/services/i18n.service.ts +7 -0
- package/src/account/services/resource-injector.service.ts +37 -0
- package/src/account/tokens/classes.token.ts +6 -0
- package/src/account/tokens/i18n.token.ts +3 -0
- package/src/account/tokens/kc-context.token.ts +4 -0
- package/src/{login → lib}/directives/attributes.directive.ts +2 -2
- package/src/{login → lib}/pipes/input-type.pipe.ts +4 -4
- package/src/lib/pipes/is-array-with-empty-object.pipe.ts +16 -0
- package/src/lib/pipes/kc-sanitize.pipe.ts +34 -0
- package/src/lib/pipes/to-array.pipe.ts +15 -0
- package/src/lib/pipes/to-number.pipe.ts +13 -0
- package/src/lib/services/resource-injector.service.ts +7 -7
- package/src/lib/tokens/use-default-css.token.ts +3 -0
- package/src/login/DefaultPage.ts +76 -76
- package/src/login/KcContext.ts +1 -1
- package/src/login/classes/component-reference.class.ts +1 -1
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +19 -19
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +15 -23
- package/src/login/components/field-errors/field-errors.component.html +10 -10
- package/src/login/components/field-errors/field-errors.component.ts +11 -16
- package/src/login/components/group-label/group-label.component.html +25 -25
- package/src/login/components/group-label/group-label.component.ts +17 -21
- package/src/login/components/input-field-by-type/input-field-by-type.component.html +57 -57
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +18 -35
- package/src/login/components/input-tag/input-tag.component.html +41 -45
- package/src/login/components/input-tag/input-tag.component.ts +25 -34
- package/src/login/components/input-tag-selects/input-tag-selects.component.html +22 -22
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +32 -43
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +15 -15
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +13 -10
- package/src/login/components/password-wrapper/password-wrapper.component.html +13 -13
- package/src/login/components/password-wrapper/password-wrapper.component.ts +15 -25
- package/src/login/components/select-tag/select-tag.component.html +26 -26
- package/src/login/components/select-tag/select-tag.component.ts +23 -35
- package/src/login/components/textarea-tag/textarea-tag.component.html +13 -15
- package/src/login/components/textarea-tag/textarea-tag.component.ts +16 -25
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +70 -73
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +33 -47
- package/src/login/containers/template.component.html +183 -183
- package/src/login/containers/template.component.ts +26 -42
- package/src/login/directives/kc-class.directive.ts +11 -11
- package/src/login/i18n.ts +2 -2
- package/src/login/pages/code/code.component.html +21 -21
- package/src/login/pages/code/code.component.ts +17 -17
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +44 -42
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +17 -18
- package/src/login/pages/delete-credential/delete-credential.component.html +29 -29
- package/src/login/pages/delete-credential/delete-credential.component.ts +17 -24
- package/src/login/pages/error/error.component.html +20 -20
- package/src/login/pages/error/error.component.ts +17 -17
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +31 -31
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +17 -25
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +36 -36
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +34 -33
- package/src/login/pages/info/info.component.html +45 -45
- package/src/login/pages/info/info.component.ts +20 -37
- package/src/login/pages/login/login.component.html +194 -194
- package/src/login/pages/login/login.component.ts +22 -43
- package/src/login/pages/login-config-totp/login-config-totp.component.html +189 -179
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +20 -39
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +35 -35
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +17 -24
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +34 -34
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +17 -26
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +32 -30
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +17 -24
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +83 -81
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +18 -26
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +57 -57
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +17 -26
- package/src/login/pages/login-otp/login-otp.component.html +96 -96
- package/src/login/pages/login-otp/login-otp.component.ts +19 -25
- package/src/login/pages/login-page-expired/login-page-expired.component.html +31 -31
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +16 -23
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +183 -181
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +25 -32
- package/src/login/pages/login-password/login-password.component.html +82 -82
- package/src/login/pages/login-password/login-password.component.ts +20 -33
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +142 -142
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +19 -34
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +67 -67
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +19 -29
- package/src/login/pages/login-reset-otp/login-reset-otp.component.html +61 -59
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +18 -24
- package/src/login/pages/login-reset-password/login-reset-password.component.html +84 -84
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +19 -26
- package/src/login/pages/login-update-password/login-update-password.component.html +107 -107
- package/src/login/pages/login-update-password/login-update-password.component.ts +21 -38
- package/src/login/pages/login-update-profile/login-update-profile.component.html +52 -53
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +31 -32
- package/src/login/pages/login-username/login-username.component.html +146 -146
- package/src/login/pages/login-username/login-username.component.ts +21 -38
- package/src/login/pages/login-verify-email/login-verify-email.component.html +22 -22
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +17 -24
- package/src/login/pages/login-x509-info/login-x509-info.component.html +96 -96
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +17 -23
- package/src/login/pages/logout-confirm/logout-confirm.component.html +51 -51
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +17 -23
- package/src/login/pages/register/register.component.html +113 -113
- package/src/login/pages/register/register.component.ts +33 -39
- package/src/login/pages/saml-post-form/saml-post-form.component.html +47 -48
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +19 -27
- package/src/login/pages/select-authenticator/select-authenticator.component.html +43 -44
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +18 -32
- package/src/login/pages/terms/terms.component.html +32 -32
- package/src/login/pages/terms/terms.component.ts +17 -23
- package/src/login/pages/update-email/update-email.component.html +52 -52
- package/src/login/pages/update-email/update-email.component.ts +33 -33
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +146 -148
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +26 -50
- package/src/login/pages/webauthn-error/webauthn-error.component.html +53 -53
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +21 -32
- package/src/login/pages/webauthn-register/webauthn-register.component.html +73 -73
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +26 -40
- package/src/login/providers/keycloakify-angular.providers.ts +68 -0
- package/src/login/services/i18n.service.ts +7 -0
- package/src/login/services/login-resource-injector.service.ts +13 -12
- package/src/login/services/submit.service.ts +12 -0
- package/src/login/services/user-profile-form.service.ts +185 -187
- package/src/login/tokens/classes.token.ts +6 -0
- package/src/login/tokens/i18n.token.ts +3 -0
- package/src/login/tokens/kc-context.token.ts +4 -0
- package/src/login/tokens/make-user-confirm-password.token.ts +5 -0
- package/src/tsconfig.json +6 -1
- package/stories/login/pages/login/login.stories.ts +146 -0
- package/lib/i18n.d.ts +0 -4
- package/lib/i18n.js +0 -6
- package/lib/i18n.js.map +0 -1
- package/lib/models/index.d.ts +0 -1
- package/lib/models/index.js +0 -2
- package/lib/models/index.js.map +0 -1
- package/lib/models/script.model.js.map +0 -1
- package/lib/providers/keycloakify-angular.providers.js +0 -58
- package/lib/providers/keycloakify-angular.providers.js.map +0 -1
- package/lib/public-api.d.ts +0 -10
- package/lib/public-api.js +0 -4
- package/lib/public-api.js.map +0 -1
- package/lib/services/i18n.service.d.ts +0 -3
- package/lib/services/i18n.service.js +0 -14
- package/lib/services/i18n.service.js.map +0 -1
- package/lib/services/index.d.ts +0 -2
- package/lib/services/index.js +0 -3
- package/lib/services/index.js.map +0 -1
- package/lib/services/resource-injector.service.js.map +0 -1
- package/login/DefaultPage.js.map +0 -1
- package/login/KcContext.js.map +0 -1
- package/login/classes/component-reference.class.js.map +0 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +0 -24
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +0 -1
- package/login/components/field-errors/field-errors.component.html +0 -15
- package/login/components/field-errors/field-errors.component.js.map +0 -1
- package/login/components/group-label/group-label.component.html +0 -30
- package/login/components/group-label/group-label.component.js.map +0 -1
- package/login/components/index.d.ts +0 -11
- package/login/components/index.js +0 -12
- package/login/components/index.js.map +0 -1
- package/login/components/input-field-by-type/input-field-by-type.component.html +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js.map +0 -1
- package/login/components/input-tag/input-tag.component.html +0 -49
- package/login/components/input-tag/input-tag.component.js.map +0 -1
- package/login/components/input-tag-selects/input-tag-selects.component.html +0 -29
- package/login/components/input-tag-selects/input-tag-selects.component.js.map +0 -1
- package/login/components/logout-other-sessions/logout-other-sessions.component.html +0 -19
- package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +0 -1
- package/login/components/password-wrapper/password-wrapper.component.html +0 -15
- package/login/components/password-wrapper/password-wrapper.component.js.map +0 -1
- package/login/components/select-tag/select-tag.component.html +0 -31
- package/login/components/select-tag/select-tag.component.js.map +0 -1
- package/login/components/textarea-tag/textarea-tag.component.html +0 -18
- package/login/components/textarea-tag/textarea-tag.component.js.map +0 -1
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +0 -85
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +0 -1
- package/login/containers/template.component.html +0 -203
- package/login/containers/template.component.js.map +0 -1
- package/login/directives/attributes.directive.d.ts +0 -5
- package/login/directives/attributes.directive.js +0 -34
- package/login/directives/attributes.directive.js.map +0 -1
- package/login/directives/index.d.ts +0 -2
- package/login/directives/index.js +0 -3
- package/login/directives/index.js.map +0 -1
- package/login/directives/kc-class.directive.js.map +0 -1
- package/login/i18n.js.map +0 -1
- package/login/pages/code/code.component.html +0 -26
- package/login/pages/code/code.component.js.map +0 -1
- package/login/pages/delete-account-confirm/delete-account-confirm.component.html +0 -46
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +0 -1
- package/login/pages/delete-credential/delete-credential.component.html +0 -35
- package/login/pages/delete-credential/delete-credential.component.js.map +0 -1
- package/login/pages/error/error.component.html +0 -25
- package/login/pages/error/error.component.js.map +0 -1
- package/login/pages/frontchannel-logout/frontchannel-logout.component.html +0 -35
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +0 -1
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +0 -41
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +0 -1
- package/login/pages/info/info.component.html +0 -54
- package/login/pages/info/info.component.js.map +0 -1
- package/login/pages/login/login.component.html +0 -212
- package/login/pages/login/login.component.js.map +0 -1
- package/login/pages/login-config-totp/login-config-totp.component.html +0 -190
- package/login/pages/login-config-totp/login-config-totp.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +0 -41
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +0 -40
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +0 -1
- package/login/pages/login-idp-link-email/login-idp-link-email.component.html +0 -37
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +0 -1
- package/login/pages/login-oauth-grant/login-oauth-grant.component.html +0 -92
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +0 -1
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +0 -63
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +0 -1
- package/login/pages/login-otp/login-otp.component.html +0 -103
- package/login/pages/login-otp/login-otp.component.js.map +0 -1
- package/login/pages/login-page-expired/login-page-expired.component.html +0 -35
- package/login/pages/login-page-expired/login-page-expired.component.js.map +0 -1
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +0 -203
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +0 -1
- package/login/pages/login-password/login-password.component.html +0 -90
- package/login/pages/login-password/login-password.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +0 -155
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +0 -76
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +0 -1
- package/login/pages/login-reset-otp/login-reset-otp.component.html +0 -65
- package/login/pages/login-reset-otp/login-reset-otp.component.js.map +0 -1
- package/login/pages/login-reset-password/login-reset-password.component.html +0 -95
- package/login/pages/login-reset-password/login-reset-password.component.js.map +0 -1
- package/login/pages/login-update-password/login-update-password.component.html +0 -116
- package/login/pages/login-update-password/login-update-password.component.js.map +0 -1
- package/login/pages/login-update-profile/login-update-profile.component.html +0 -59
- package/login/pages/login-update-profile/login-update-profile.component.js.map +0 -1
- package/login/pages/login-username/login-username.component.html +0 -161
- package/login/pages/login-username/login-username.component.js.map +0 -1
- package/login/pages/login-verify-email/login-verify-email.component.html +0 -27
- package/login/pages/login-verify-email/login-verify-email.component.js.map +0 -1
- package/login/pages/login-x509-info/login-x509-info.component.html +0 -102
- package/login/pages/login-x509-info/login-x509-info.component.js.map +0 -1
- package/login/pages/logout-confirm/logout-confirm.component.html +0 -59
- package/login/pages/logout-confirm/logout-confirm.component.js.map +0 -1
- package/login/pages/register/register.component.html +0 -126
- package/login/pages/register/register.component.js.map +0 -1
- package/login/pages/saml-post-form/saml-post-form.component.html +0 -51
- package/login/pages/saml-post-form/saml-post-form.component.js.map +0 -1
- package/login/pages/select-authenticator/select-authenticator.component.html +0 -49
- package/login/pages/select-authenticator/select-authenticator.component.js.map +0 -1
- package/login/pages/terms/terms.component.html +0 -36
- package/login/pages/terms/terms.component.js.map +0 -1
- package/login/pages/update-email/update-email.component.html +0 -58
- package/login/pages/update-email/update-email.component.js.map +0 -1
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +0 -162
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +0 -1
- package/login/pages/webauthn-error/webauthn-error.component.html +0 -60
- package/login/pages/webauthn-error/webauthn-error.component.js.map +0 -1
- package/login/pages/webauthn-register/webauthn-register.component.html +0 -82
- package/login/pages/webauthn-register/webauthn-register.component.js.map +0 -1
- package/login/pipes/advanced-msg-str.pipe.d.ts +0 -5
- package/login/pipes/advanced-msg-str.pipe.js +0 -31
- package/login/pipes/advanced-msg-str.pipe.js.map +0 -1
- package/login/pipes/index.d.ts +0 -6
- package/login/pipes/index.js +0 -7
- package/login/pipes/index.js.map +0 -1
- package/login/pipes/input-type.pipe.d.ts +0 -4
- package/login/pipes/input-type.pipe.js +0 -23
- package/login/pipes/input-type.pipe.js.map +0 -1
- package/login/pipes/kc-sanitize.pipe.d.ts +0 -7
- package/login/pipes/kc-sanitize.pipe.js +0 -36
- package/login/pipes/kc-sanitize.pipe.js.map +0 -1
- package/login/pipes/msg-str.pipe.d.ts +0 -6
- package/login/pipes/msg-str.pipe.js +0 -31
- package/login/pipes/msg-str.pipe.js.map +0 -1
- package/login/pipes/to-array.pipe.d.ts +0 -4
- package/login/pipes/to-array.pipe.js +0 -24
- package/login/pipes/to-array.pipe.js.map +0 -1
- package/login/pipes/to-number.pipe.d.ts +0 -4
- package/login/pipes/to-number.pipe.js +0 -23
- package/login/pipes/to-number.pipe.js.map +0 -1
- package/login/services/index.d.ts +0 -2
- package/login/services/index.js +0 -3
- package/login/services/index.js.map +0 -1
- package/login/services/login-resource-injector.service.js.map +0 -1
- package/login/services/user-profile-form.service.js.map +0 -1
- package/src/lib/i18n.ts +0 -9
- package/src/lib/models/index.ts +0 -1
- package/src/lib/providers/keycloakify-angular.providers.ts +0 -92
- package/src/lib/public-api.ts +0 -12
- package/src/lib/services/i18n.service.ts +0 -5
- package/src/lib/services/index.ts +0 -2
- package/src/login/components/index.ts +0 -11
- package/src/login/directives/index.ts +0 -2
- package/src/login/pipes/advanced-msg-str.pipe.ts +0 -13
- package/src/login/pipes/index.ts +0 -6
- package/src/login/pipes/kc-sanitize.pipe.ts +0 -36
- package/src/login/pipes/msg-str.pipe.ts +0 -14
- package/src/login/pipes/to-array.pipe.ts +0 -15
- package/src/login/pipes/to-number.pipe.ts +0 -13
- package/src/login/services/index.ts +0 -2
|
@@ -2,59 +2,59 @@
|
|
|
2
2
|
@let isAppInitiatedAction = kcContext.isAppInitiatedAction;
|
|
3
3
|
|
|
4
4
|
<kc-login-template
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
[displayInfo]="displayInfo"
|
|
6
|
+
[bodyClassName]="bodyClassName()"
|
|
7
|
+
[displayMessage]="displayMessage"
|
|
8
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
9
|
+
[documentTitle]="documentTitle()"
|
|
10
10
|
>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
>
|
|
21
|
-
<input
|
|
22
|
-
type="hidden"
|
|
23
|
-
id="executionValue"
|
|
24
|
-
name="authenticationExecution"
|
|
25
|
-
/>
|
|
26
|
-
<input
|
|
27
|
-
type="hidden"
|
|
28
|
-
id="isSetRetry"
|
|
29
|
-
name="isSetRetry"
|
|
30
|
-
/>
|
|
31
|
-
</form>
|
|
32
|
-
<input
|
|
33
|
-
tabIndex="4"
|
|
34
|
-
(click)="onClick()"
|
|
35
|
-
type="button"
|
|
36
|
-
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
37
|
-
name="try-again"
|
|
38
|
-
id="kc-try-again"
|
|
39
|
-
[value]="'doTryAgain' | msgStr"
|
|
40
|
-
/>
|
|
41
|
-
@if (isAppInitiatedAction) {
|
|
42
|
-
<form
|
|
43
|
-
[action]="url.loginAction"
|
|
44
|
-
[kcClass]="'kcFormClass'"
|
|
45
|
-
id="kc-webauthn-settings-form"
|
|
46
|
-
method="post"
|
|
47
|
-
>
|
|
48
|
-
<button
|
|
49
|
-
type="submit"
|
|
50
|
-
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
51
|
-
id="cancelWebAuthnAIA"
|
|
52
|
-
name="cancel-aia"
|
|
53
|
-
value="true"
|
|
11
|
+
<ng-container headerNode>
|
|
12
|
+
{{ i18n.msgStr('webauthn-error-title') }}
|
|
13
|
+
</ng-container>
|
|
14
|
+
<ng-container content>
|
|
15
|
+
<form
|
|
16
|
+
id="kc-error-credential-form"
|
|
17
|
+
[kcClass]="'kcFormClass'"
|
|
18
|
+
[action]="url.loginAction"
|
|
19
|
+
method="post"
|
|
54
20
|
>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
21
|
+
<input
|
|
22
|
+
type="hidden"
|
|
23
|
+
id="executionValue"
|
|
24
|
+
name="authenticationExecution"
|
|
25
|
+
/>
|
|
26
|
+
<input
|
|
27
|
+
type="hidden"
|
|
28
|
+
id="isSetRetry"
|
|
29
|
+
name="isSetRetry"
|
|
30
|
+
/>
|
|
31
|
+
</form>
|
|
32
|
+
<input
|
|
33
|
+
tabIndex="4"
|
|
34
|
+
(click)="onClick()"
|
|
35
|
+
type="button"
|
|
36
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
37
|
+
name="try-again"
|
|
38
|
+
id="kc-try-again"
|
|
39
|
+
[value]="i18n.msgStr('doTryAgain')"
|
|
40
|
+
/>
|
|
41
|
+
@if (isAppInitiatedAction) {
|
|
42
|
+
<form
|
|
43
|
+
[action]="url.loginAction"
|
|
44
|
+
[kcClass]="'kcFormClass'"
|
|
45
|
+
id="kc-webauthn-settings-form"
|
|
46
|
+
method="post"
|
|
47
|
+
>
|
|
48
|
+
<button
|
|
49
|
+
type="submit"
|
|
50
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
51
|
+
id="cancelWebAuthnAIA"
|
|
52
|
+
name="cancel-aia"
|
|
53
|
+
value="true"
|
|
54
|
+
>
|
|
55
|
+
{{ i18n.msgStr('doCancel') }}
|
|
56
|
+
</button>
|
|
57
|
+
</form>
|
|
58
|
+
}
|
|
59
|
+
</ng-container>
|
|
60
60
|
</kc-login-template>
|
|
@@ -1,33 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from
|
|
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";
|
|
19
|
-
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
3
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
4
|
+
import { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions/logout-other-sessions.component';
|
|
5
|
+
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
6
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
7
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
8
|
+
import { type I18n } from '../../i18n';
|
|
9
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
10
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
11
|
+
import { type ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
12
|
+
import { type KcContext } from '../../KcContext';
|
|
20
13
|
|
|
21
14
|
@Component({
|
|
22
15
|
standalone: true,
|
|
23
|
-
imports: [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
KcClassDirective,
|
|
27
|
-
LogoutOtherSessionsComponent
|
|
28
|
-
],
|
|
29
|
-
selector: "kc-root",
|
|
30
|
-
templateUrl: "webauthn-error.component.html",
|
|
16
|
+
imports: [TemplateComponent, KcClassDirective, LogoutOtherSessionsComponent],
|
|
17
|
+
selector: 'kc-root',
|
|
18
|
+
templateUrl: 'webauthn-error.component.html',
|
|
31
19
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
32
20
|
providers: [
|
|
33
21
|
{
|
|
@@ -37,9 +25,10 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
|
37
25
|
]
|
|
38
26
|
})
|
|
39
27
|
export class WebauthnErrorComponent extends ComponentReference {
|
|
40
|
-
kcContext = inject<Extract<KcContext, { pageId:
|
|
28
|
+
kcContext = inject<Extract<KcContext, { pageId: 'webauthn-error.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
29
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
41
30
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
42
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
31
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
43
32
|
displayRequiredFields = input(false);
|
|
44
33
|
documentTitle = input<string>();
|
|
45
34
|
bodyClassName = input<string>();
|
|
@@ -48,10 +37,10 @@ export class WebauthnErrorComponent extends ComponentReference {
|
|
|
48
37
|
|
|
49
38
|
onClick() {
|
|
50
39
|
// @ts-expect-error: Trusted Keycloak's code
|
|
51
|
-
document.getElementById(
|
|
40
|
+
document.getElementById('isSetRetry').value = 'retry';
|
|
52
41
|
// @ts-expect-error: Trusted Keycloak's code
|
|
53
|
-
document.getElementById(
|
|
42
|
+
document.getElementById('executionValue').value = '${execution}';
|
|
54
43
|
// @ts-expect-error: Trusted Keycloak's code
|
|
55
|
-
document.getElementById(
|
|
44
|
+
document.getElementById('kc-error-credential-form').submit();
|
|
56
45
|
}
|
|
57
46
|
}
|
|
@@ -3,80 +3,80 @@
|
|
|
3
3
|
@let isAppInitiatedAction = kcContext.isAppInitiatedAction;
|
|
4
4
|
|
|
5
5
|
<kc-login-template
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
[displayInfo]="displayInfo"
|
|
7
|
+
[bodyClassName]="bodyClassName()"
|
|
8
|
+
[displayMessage]="displayMessage"
|
|
9
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
10
|
+
[documentTitle]="documentTitle()"
|
|
11
11
|
>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
12
|
+
<ng-container headerNode>
|
|
13
|
+
<span [kcClass]="'kcWebAuthnKeyIcon'"></span>
|
|
14
|
+
{{ i18n.msgStr('webauthn-registration-title') }}
|
|
15
|
+
</ng-container>
|
|
16
|
+
<ng-container content>
|
|
17
|
+
<form
|
|
18
|
+
id="register"
|
|
19
|
+
[kcClass]="'kcFormClass'"
|
|
20
|
+
[action]="url.loginAction"
|
|
21
|
+
method="post"
|
|
22
|
+
>
|
|
23
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
24
|
+
<input
|
|
25
|
+
type="hidden"
|
|
26
|
+
id="clientDataJSON"
|
|
27
|
+
name="clientDataJSON"
|
|
28
|
+
/>
|
|
29
|
+
<input
|
|
30
|
+
type="hidden"
|
|
31
|
+
id="attestationObject"
|
|
32
|
+
name="attestationObject"
|
|
33
|
+
/>
|
|
34
|
+
<input
|
|
35
|
+
type="hidden"
|
|
36
|
+
id="publicKeyCredentialId"
|
|
37
|
+
name="publicKeyCredentialId"
|
|
38
|
+
/>
|
|
39
|
+
<input
|
|
40
|
+
type="hidden"
|
|
41
|
+
id="authenticatorLabel"
|
|
42
|
+
name="authenticatorLabel"
|
|
43
|
+
/>
|
|
44
|
+
<input
|
|
45
|
+
type="hidden"
|
|
46
|
+
id="transports"
|
|
47
|
+
name="transports"
|
|
48
|
+
/>
|
|
49
|
+
<input
|
|
50
|
+
type="hidden"
|
|
51
|
+
id="error"
|
|
52
|
+
name="error"
|
|
53
|
+
/>
|
|
54
|
+
<kc-logout-other-sessions />
|
|
55
|
+
</div>
|
|
56
|
+
</form>
|
|
49
57
|
<input
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
type="submit"
|
|
59
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
60
|
+
[id]="authButtonId"
|
|
61
|
+
[value]="i18n.msgStr('doRegisterSecurityKey')"
|
|
53
62
|
/>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
id="cancelWebAuthnAIA"
|
|
74
|
-
name="cancel-aia"
|
|
75
|
-
value="true"
|
|
76
|
-
>
|
|
77
|
-
{{ 'doCancel' | msgStr }}
|
|
78
|
-
</button>
|
|
79
|
-
</form>
|
|
80
|
-
}
|
|
81
|
-
</ng-container>
|
|
63
|
+
@if (!isSetRetry && isAppInitiatedAction) {
|
|
64
|
+
<form
|
|
65
|
+
[action]="url.loginAction"
|
|
66
|
+
[kcClass]="'kcFormClass'"
|
|
67
|
+
id="kc-webauthn-settings-form"
|
|
68
|
+
method="post"
|
|
69
|
+
>
|
|
70
|
+
<button
|
|
71
|
+
type="submit"
|
|
72
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
|
|
73
|
+
id="cancelWebAuthnAIA"
|
|
74
|
+
name="cancel-aia"
|
|
75
|
+
value="true"
|
|
76
|
+
>
|
|
77
|
+
{{ i18n.msgStr('doCancel') }}
|
|
78
|
+
</button>
|
|
79
|
+
</form>
|
|
80
|
+
}
|
|
81
|
+
</ng-container>
|
|
82
82
|
</kc-login-template>
|
|
@@ -1,38 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { KcContext } from "keycloakify/login/KcContext";
|
|
16
|
-
import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
|
|
17
|
-
import { LogoutOtherSessionsComponent } from "@keycloakify/angular/login/components/logout-other-sessions/logout-other-sessions.component";
|
|
18
|
-
import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
|
|
19
|
-
import { KcClassDirective } from "@keycloakify/angular/login/directives";
|
|
20
|
-
import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
|
|
21
|
-
import { LoginResourceInjectorService } from "@keycloakify/angular/login/services";
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
+
import { type Script } from '@keycloakify/angular/lib/models/script.model';
|
|
3
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
4
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
5
|
+
import { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions/logout-other-sessions.component';
|
|
6
|
+
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
7
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
8
|
+
import { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector.service';
|
|
9
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
10
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
11
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
12
|
+
import { type ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
13
|
+
import { type I18n } from '../../i18n';
|
|
14
|
+
import { type KcContext } from '../../KcContext';
|
|
22
15
|
|
|
23
16
|
@Component({
|
|
24
17
|
standalone: true,
|
|
25
|
-
imports: [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
KcClassDirective,
|
|
29
|
-
LogoutOtherSessionsComponent
|
|
30
|
-
],
|
|
31
|
-
selector: "kc-root",
|
|
32
|
-
templateUrl: "webauthn-register.component.html",
|
|
18
|
+
imports: [TemplateComponent, KcClassDirective, LogoutOtherSessionsComponent],
|
|
19
|
+
selector: 'kc-root',
|
|
20
|
+
templateUrl: 'webauthn-register.component.html',
|
|
33
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
34
22
|
providers: [
|
|
35
|
-
MsgStrPipe,
|
|
36
23
|
{
|
|
37
24
|
provide: ComponentReference,
|
|
38
25
|
useExisting: forwardRef(() => WebauthnRegisterComponent)
|
|
@@ -40,19 +27,18 @@ import { LoginResourceInjectorService } from "@keycloakify/angular/login/service
|
|
|
40
27
|
]
|
|
41
28
|
})
|
|
42
29
|
export class WebauthnRegisterComponent extends ComponentReference {
|
|
43
|
-
kcContext =
|
|
44
|
-
inject<Extract<KcContext, { pageId: "webauthn-register.ftl" }>>(KC_CONTEXT);
|
|
30
|
+
kcContext = inject<Extract<KcContext, { pageId: 'webauthn-register.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
45
31
|
loginResourceInjectorService = inject(LoginResourceInjectorService);
|
|
46
|
-
|
|
32
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
47
33
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
48
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
34
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
49
35
|
displayRequiredFields = input(false);
|
|
50
36
|
documentTitle = input<string>();
|
|
51
37
|
bodyClassName = input<string>();
|
|
52
38
|
displayInfo: boolean = false;
|
|
53
39
|
displayMessage: boolean = true;
|
|
54
40
|
|
|
55
|
-
authButtonId =
|
|
41
|
+
authButtonId = 'authenticateWebAuthnButton';
|
|
56
42
|
|
|
57
43
|
constructor() {
|
|
58
44
|
super();
|
|
@@ -73,8 +59,8 @@ export class WebauthnRegisterComponent extends ComponentReference {
|
|
|
73
59
|
} = this.kcContext;
|
|
74
60
|
const scripts: Script[] = [
|
|
75
61
|
{
|
|
76
|
-
type:
|
|
77
|
-
id:
|
|
62
|
+
type: 'module',
|
|
63
|
+
id: 'WebAuthnRegisterScript',
|
|
78
64
|
textContent: `
|
|
79
65
|
import { registerByWebAuthn } from "${url.resourcesPath}/js/webauthnRegister.js";
|
|
80
66
|
const registerButton = document.getElementById('${this.authButtonId}');
|
|
@@ -92,9 +78,9 @@ export class WebauthnRegisterComponent extends ComponentReference {
|
|
|
92
78
|
userVerificationRequirement : ${JSON.stringify(userVerificationRequirement)},
|
|
93
79
|
createTimeout : ${createTimeout},
|
|
94
80
|
excludeCredentialIds : ${JSON.stringify(excludeCredentialIds)},
|
|
95
|
-
initLabel : ${JSON.stringify(this.msgStr
|
|
96
|
-
initLabelPrompt : ${JSON.stringify(this.msgStr
|
|
97
|
-
errmsg : ${JSON.stringify(this.msgStr
|
|
81
|
+
initLabel : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label'))},
|
|
82
|
+
initLabelPrompt : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label-prompt'))},
|
|
83
|
+
errmsg : ${JSON.stringify(this.i18n.msgStr('webauthn-unsupported-browser-text'))}
|
|
98
84
|
};
|
|
99
85
|
registerByWebAuthn(input);
|
|
100
86
|
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { APP_INITIALIZER, LOCALE_ID, makeEnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
4
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
5
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
6
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
7
|
+
import { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password.token';
|
|
8
|
+
import { type KcContextLike } from 'keycloakify/login/i18n/noJsx';
|
|
9
|
+
import { type ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
10
|
+
import { type KcContext } from '../KcContext';
|
|
11
|
+
import { I18nService } from '@keycloakify/angular/login/services/i18n.service';
|
|
12
|
+
|
|
13
|
+
export type KeycloakifyAngularLoginConfig = {
|
|
14
|
+
doMakeUserConfirmPassword?: boolean;
|
|
15
|
+
doUseDefaultCss?: boolean;
|
|
16
|
+
classes?: { [key in ClassKey]?: string };
|
|
17
|
+
getI18n: (params: { kcContext: KcContextLike }) => {
|
|
18
|
+
i18n: unknown;
|
|
19
|
+
prI18n_currentLanguage: Promise<unknown> | undefined;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const provideKeycloakifyAngularLogin = (config: KeycloakifyAngularLoginConfig) =>
|
|
24
|
+
makeEnvironmentProviders([
|
|
25
|
+
{
|
|
26
|
+
provide: KC_LOGIN_CONTEXT,
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
useValue: window.kcContext
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
provide: DO_MAKE_USER_CONFIRM_PASSWORD,
|
|
32
|
+
useValue: config?.doMakeUserConfirmPassword ?? true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
provide: LOCALE_ID,
|
|
36
|
+
useFactory: (document: Document) => {
|
|
37
|
+
return document.documentElement.lang ?? 'en';
|
|
38
|
+
},
|
|
39
|
+
deps: [DOCUMENT]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
provide: APP_INITIALIZER,
|
|
43
|
+
multi: true,
|
|
44
|
+
useFactory: (i18nService: I18nService, kcContext: KcContext) => async () => {
|
|
45
|
+
const getI18n = config.getI18n;
|
|
46
|
+
|
|
47
|
+
const { i18n, prI18n_currentLanguage } = getI18n({
|
|
48
|
+
kcContext
|
|
49
|
+
});
|
|
50
|
+
let i18nPromise = new Promise<typeof i18n>(resolve => resolve(i18n));
|
|
51
|
+
if (prI18n_currentLanguage) {
|
|
52
|
+
i18nPromise = prI18n_currentLanguage;
|
|
53
|
+
}
|
|
54
|
+
return i18nPromise.then(i18n => {
|
|
55
|
+
i18nService.i18n = i18n;
|
|
56
|
+
return true;
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
deps: [I18nService, KC_LOGIN_CONTEXT]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
provide: LOGIN_I18N,
|
|
63
|
+
useFactory: (i18nService: I18nService) => i18nService.i18n,
|
|
64
|
+
deps: [I18nService]
|
|
65
|
+
},
|
|
66
|
+
{ provide: USE_DEFAULT_CSS, useValue: config?.doUseDefaultCss ?? true },
|
|
67
|
+
{ provide: LOGIN_CLASSES, useValue: config?.classes ?? {} }
|
|
68
|
+
]);
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { inject, Injectable } from
|
|
2
|
-
import {
|
|
3
|
-
import { ResourceInjectorService
|
|
4
|
-
import { KcContext } from
|
|
5
|
-
import { catchError, forkJoin, of, switchMap } from
|
|
1
|
+
import { inject, Injectable } from '@angular/core';
|
|
2
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
3
|
+
import { ResourceInjectorService } from '@keycloakify/angular/lib/services/resource-injector.service';
|
|
4
|
+
import { type KcContext } from '../KcContext';
|
|
5
|
+
import { catchError, forkJoin, of, switchMap } from 'rxjs';
|
|
6
|
+
import { type Script } from '@keycloakify/angular/lib/models/script.model';
|
|
6
7
|
|
|
7
8
|
@Injectable({
|
|
8
|
-
providedIn:
|
|
9
|
+
providedIn: 'root'
|
|
9
10
|
})
|
|
10
11
|
export class LoginResourceInjectorService {
|
|
11
|
-
private kcContext: KcContext = inject<KcContext>(
|
|
12
|
+
private kcContext: KcContext = inject<KcContext>(KC_LOGIN_CONTEXT);
|
|
12
13
|
private resourceInjectorService: ResourceInjectorService = inject(
|
|
13
14
|
ResourceInjectorService
|
|
14
15
|
);
|
|
@@ -34,7 +35,7 @@ export class LoginResourceInjectorService {
|
|
|
34
35
|
return of(true);
|
|
35
36
|
}),
|
|
36
37
|
catchError(error => {
|
|
37
|
-
console.error(
|
|
38
|
+
console.error('Error loading styles:', error);
|
|
38
39
|
return of(false);
|
|
39
40
|
})
|
|
40
41
|
);
|
|
@@ -47,18 +48,18 @@ export class LoginResourceInjectorService {
|
|
|
47
48
|
private injectScripts() {
|
|
48
49
|
const scripts: Script[] = [
|
|
49
50
|
{
|
|
50
|
-
type:
|
|
51
|
+
type: 'module',
|
|
51
52
|
id: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`,
|
|
52
53
|
src: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`
|
|
53
54
|
},
|
|
54
55
|
...this.kcContext.scripts.map(script => ({
|
|
55
|
-
type:
|
|
56
|
+
type: 'text/javascript',
|
|
56
57
|
src: script,
|
|
57
58
|
id: script
|
|
58
59
|
})),
|
|
59
60
|
{
|
|
60
|
-
type:
|
|
61
|
-
id:
|
|
61
|
+
type: 'module',
|
|
62
|
+
id: 'authenticationSession',
|
|
62
63
|
textContent: `
|
|
63
64
|
import { checkCookiesAndSetTimer } from "${this.kcContext.url.resourcesPath}/js/authChecker.js";
|
|
64
65
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
|
3
|
+
|
|
4
|
+
@Injectable({ providedIn: 'root' })
|
|
5
|
+
export class SubmitService {
|
|
6
|
+
#submittableSubj: BehaviorSubject<boolean> = new BehaviorSubject(false);
|
|
7
|
+
isSubmittable: Observable<boolean> = this.#submittableSubj.asObservable();
|
|
8
|
+
|
|
9
|
+
setIsSubmittable(submittable: boolean) {
|
|
10
|
+
this.#submittableSubj.next(submittable);
|
|
11
|
+
}
|
|
12
|
+
}
|