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