@keycloakify/angular 0.0.1-rc.2 → 0.0.1-rc.4
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/lib/tokens/use-default-css.token.d.ts +2 -0
- package/lib/tokens/use-default-css.token.js +3 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +3 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +106 -0
- package/login/components/field-errors/field-errors.component.d.ts +2 -2
- package/login/components/field-errors/field-errors.component.js +33 -0
- package/login/components/group-label/group-label.component.d.ts +3 -1
- package/login/components/group-label/group-label.component.js +43 -0
- package/login/components/input-field-by-type/input-field-by-type.component.js +46 -0
- package/login/components/input-tag/input-tag.component.d.ts +4 -2
- package/login/components/input-tag/input-tag.component.js +90 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +4 -2
- package/login/components/input-tag-selects/input-tag-selects.component.js +117 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +3 -1
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +32 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +3 -1
- package/login/components/password-wrapper/password-wrapper.component.js +46 -0
- package/login/components/select-tag/select-tag.component.d.ts +4 -2
- package/login/components/select-tag/select-tag.component.js +82 -0
- package/login/components/textarea-tag/textarea-tag.component.js +49 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +4 -2
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +59 -0
- package/login/containers/template.component.js +72 -0
- package/login/pages/code/code.component.d.ts +4 -2
- package/login/pages/code/code.component.js +35 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +4 -2
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +35 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +4 -2
- package/login/pages/delete-credential/delete-credential.component.js +40 -0
- package/login/pages/error/error.component.d.ts +4 -2
- package/login/pages/error/error.component.js +35 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +4 -2
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +44 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +4 -2
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +45 -0
- package/login/pages/info/info.component.d.ts +4 -8
- package/login/pages/info/info.component.js +49 -0
- package/login/pages/login/login.component.d.ts +4 -2
- package/login/pages/login/login.component.js +44 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +4 -2
- package/login/pages/login-config-totp/login-config-totp.component.js +42 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +4 -2
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +40 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +4 -2
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +40 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +4 -2
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +40 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +4 -2
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +40 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +4 -2
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +40 -0
- package/login/pages/login-otp/login-otp.component.d.ts +4 -2
- package/login/pages/login-otp/login-otp.component.js +41 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +4 -2
- package/login/pages/login-page-expired/login-page-expired.component.js +39 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +5 -5
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +84 -0
- package/login/pages/login-password/login-password.component.d.ts +4 -2
- package/login/pages/login-password/login-password.component.js +43 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +4 -2
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +43 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +4 -2
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +41 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +4 -2
- package/login/pages/login-reset-otp/login-reset-otp.component.js +40 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +4 -2
- package/login/pages/login-reset-password/login-reset-password.component.js +41 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +4 -2
- package/login/pages/login-update-password/login-update-password.component.js +43 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +4 -2
- package/login/pages/login-update-profile/login-update-profile.component.js +42 -0
- package/login/pages/login-username/login-username.component.d.ts +4 -2
- package/login/pages/login-username/login-username.component.js +43 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +4 -2
- package/login/pages/login-verify-email/login-verify-email.component.js +40 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +4 -2
- package/login/pages/login-x509-info/login-x509-info.component.js +40 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +4 -2
- package/login/pages/logout-confirm/logout-confirm.component.js +40 -0
- package/login/pages/register/register.component.d.ts +4 -2
- package/login/pages/register/register.component.js +48 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +4 -2
- package/login/pages/saml-post-form/saml-post-form.component.js +52 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +4 -2
- package/login/pages/select-authenticator/select-authenticator.component.js +41 -0
- package/login/pages/terms/terms.component.d.ts +4 -2
- package/login/pages/terms/terms.component.js +40 -0
- package/login/pages/update-email/update-email.component.d.ts +4 -2
- package/login/pages/update-email/update-email.component.js +43 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +5 -5
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +80 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +4 -2
- package/login/pages/webauthn-error/webauthn-error.component.js +49 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +5 -5
- package/login/pages/webauthn-register/webauthn-register.component.js +76 -0
- package/login/pipes/kc-sanitize.pipe.d.ts +3 -4
- package/login/pipes/kc-sanitize.pipe.js +29 -0
- package/login/pipes/{to-array.pipe.mjs → to-array.pipe.js} +1 -2
- 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/{lib/services/i18n.service.mjs → login/services/i18n.service.js} +1 -1
- package/login/services/login-resource-injector.service.d.ts +1 -1
- package/login/services/login-resource-injector.service.js +68 -0
- package/login/services/user-profile-form.service.js +1019 -0
- package/{lib/providers/keycloakify-angular.providers.d.ts → login/tokens/classes.token.d.ts} +1 -24
- 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 +89 -108
- package/src/lib/tokens/use-default-css.token.ts +3 -0
- 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 +7 -15
- package/src/login/components/field-errors/field-errors.component.html +10 -10
- package/src/login/components/field-errors/field-errors.component.ts +6 -11
- package/src/login/components/group-label/group-label.component.html +25 -25
- package/src/login/components/group-label/group-label.component.ts +10 -14
- 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 +6 -23
- package/src/login/components/input-tag/input-tag.component.html +41 -45
- package/src/login/components/input-tag/input-tag.component.ts +13 -22
- 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 +12 -23
- 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 +8 -5
- package/src/login/components/password-wrapper/password-wrapper.component.html +13 -13
- package/src/login/components/password-wrapper/password-wrapper.component.ts +10 -20
- package/src/login/components/select-tag/select-tag.component.html +26 -26
- package/src/login/components/select-tag/select-tag.component.ts +13 -25
- package/src/login/components/textarea-tag/textarea-tag.component.html +13 -15
- package/src/login/components/textarea-tag/textarea-tag.component.ts +5 -14
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +71 -71
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +15 -34
- package/src/login/containers/template.component.html +183 -183
- package/src/login/containers/template.component.ts +12 -28
- package/src/login/pages/code/code.component.html +21 -21
- package/src/login/pages/code/code.component.ts +11 -11
- 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 +12 -13
- package/src/login/pages/delete-credential/delete-credential.component.html +29 -29
- package/src/login/pages/delete-credential/delete-credential.component.ts +12 -19
- package/src/login/pages/error/error.component.html +20 -20
- package/src/login/pages/error/error.component.ts +11 -11
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +31 -31
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +12 -20
- 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 +12 -25
- package/src/login/pages/info/info.component.html +45 -45
- package/src/login/pages/info/info.component.ts +13 -30
- package/src/login/pages/login/login.component.html +194 -194
- package/src/login/pages/login/login.component.ts +14 -35
- 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 +13 -32
- 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 +12 -19
- 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 +12 -21
- 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 +12 -19
- 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 +12 -20
- 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 +12 -21
- package/src/login/pages/login-otp/login-otp.component.html +96 -96
- package/src/login/pages/login-otp/login-otp.component.ts +12 -18
- 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 +12 -19
- 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 +15 -22
- package/src/login/pages/login-password/login-password.component.html +82 -82
- package/src/login/pages/login-password/login-password.component.ts +12 -25
- 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 +13 -28
- 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 +14 -24
- 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 +13 -19
- 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 +13 -20
- 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 +14 -31
- package/src/login/pages/login-update-profile/login-update-profile.component.html +53 -53
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +13 -26
- package/src/login/pages/login-username/login-username.component.html +146 -146
- package/src/login/pages/login-username/login-username.component.ts +13 -30
- 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 +13 -20
- 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 +13 -19
- package/src/login/pages/logout-confirm/logout-confirm.component.html +51 -51
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +13 -19
- package/src/login/pages/register/register.component.html +113 -113
- package/src/login/pages/register/register.component.ts +12 -29
- 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 +12 -20
- package/src/login/pages/select-authenticator/select-authenticator.component.html +43 -44
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +13 -27
- package/src/login/pages/terms/terms.component.html +32 -32
- package/src/login/pages/terms/terms.component.ts +13 -19
- package/src/login/pages/update-email/update-email.component.html +52 -52
- package/src/login/pages/update-email/update-email.component.ts +13 -26
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +146 -148
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +17 -41
- package/src/login/pages/webauthn-error/webauthn-error.component.html +53 -53
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +13 -24
- package/src/login/pages/webauthn-register/webauthn-register.component.html +73 -73
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +18 -32
- package/src/login/pipes/kc-sanitize.pipe.ts +9 -11
- package/src/login/pipes/to-array.pipe.ts +0 -1
- package/src/login/providers/keycloakify-angular.providers.ts +68 -0
- package/src/{lib → login}/services/i18n.service.ts +3 -2
- package/src/login/services/login-resource-injector.service.ts +4 -3
- package/src/login/services/user-profile-form.service.ts +5 -7
- 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/lib/i18n.d.ts +0 -4
- package/lib/i18n.mjs +0 -6
- package/lib/models/index.d.ts +0 -1
- package/lib/models/index.mjs +0 -2
- package/lib/providers/keycloakify-angular.providers.mjs +0 -54
- package/lib/public-api.d.ts +0 -10
- package/lib/public-api.mjs +0 -4
- package/lib/services/i18n.service.d.ts +0 -6
- package/lib/services/index.d.ts +0 -2
- package/lib/services/index.mjs +0 -3
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +0 -105
- package/login/components/field-errors/field-errors.component.mjs +0 -32
- package/login/components/group-label/group-label.component.mjs +0 -41
- package/login/components/hello-world/hello-world.component.d.ts +0 -5
- package/login/components/hello-world/hello-world.component.mjs +0 -11
- package/login/components/index.d.ts +0 -11
- package/login/components/index.mjs +0 -12
- package/login/components/input-field-by-type/input-field-by-type.component.mjs +0 -52
- package/login/components/input-tag/input-tag.component.mjs +0 -89
- package/login/components/input-tag-selects/input-tag-selects.component.mjs +0 -115
- package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +0 -30
- package/login/components/password-wrapper/password-wrapper.component.mjs +0 -44
- package/login/components/select-tag/select-tag.component.mjs +0 -80
- package/login/components/textarea-tag/textarea-tag.component.mjs +0 -48
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +0 -62
- package/login/containers/template.component.mjs +0 -71
- package/login/directives/index.d.ts +0 -2
- package/login/directives/index.mjs +0 -3
- package/login/pages/code/code.component.mjs +0 -32
- package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +0 -32
- package/login/pages/delete-credential/delete-credential.component.mjs +0 -37
- package/login/pages/error/error.component.mjs +0 -32
- package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +0 -41
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +0 -47
- package/login/pages/info/info.component.mjs +0 -58
- package/login/pages/login/login.component.mjs +0 -51
- package/login/pages/login-config-totp/login-config-totp.component.mjs +0 -47
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +0 -37
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +0 -37
- package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +0 -37
- package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +0 -38
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +0 -37
- package/login/pages/login-otp/login-otp.component.mjs +0 -38
- package/login/pages/login-page-expired/login-page-expired.component.mjs +0 -36
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +0 -85
- package/login/pages/login-password/login-password.component.mjs +0 -46
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +0 -45
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +0 -38
- package/login/pages/login-reset-otp/login-reset-otp.component.mjs +0 -37
- package/login/pages/login-reset-password/login-reset-password.component.mjs +0 -38
- package/login/pages/login-update-password/login-update-password.component.mjs +0 -47
- package/login/pages/login-update-profile/login-update-profile.component.mjs +0 -44
- package/login/pages/login-username/login-username.component.mjs +0 -49
- package/login/pages/login-verify-email/login-verify-email.component.mjs +0 -37
- package/login/pages/login-x509-info/login-x509-info.component.mjs +0 -37
- package/login/pages/logout-confirm/logout-confirm.component.mjs +0 -37
- package/login/pages/register/register.component.mjs +0 -55
- package/login/pages/saml-post-form/saml-post-form.component.mjs +0 -49
- package/login/pages/select-authenticator/select-authenticator.component.mjs +0 -45
- package/login/pages/terms/terms.component.mjs +0 -37
- package/login/pages/update-email/update-email.component.mjs +0 -46
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +0 -87
- package/login/pages/webauthn-error/webauthn-error.component.mjs +0 -51
- package/login/pages/webauthn-register/webauthn-register.component.mjs +0 -81
- package/login/pipes/advanced-msg-str.pipe.d.ts +0 -8
- package/login/pipes/advanced-msg-str.pipe.mjs +0 -19
- package/login/pipes/index.d.ts +0 -6
- package/login/pipes/index.mjs +0 -7
- package/login/pipes/kc-sanitize.pipe.mjs +0 -34
- package/login/pipes/msg-str.pipe.d.ts +0 -9
- package/login/pipes/msg-str.pipe.mjs +0 -19
- package/login/services/index.d.ts +0 -2
- package/login/services/index.mjs +0 -3
- package/login/services/login-resource-injector.service.mjs +0 -68
- package/login/services/user-profile-form.service.mjs +0 -1017
- 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/index.ts +0 -2
- package/src/login/components/hello-world/hello-world.component.css +0 -0
- package/src/login/components/hello-world/hello-world.component.html +0 -1
- package/src/login/components/hello-world/hello-world.component.ts +0 -10
- 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/msg-str.pipe.ts +0 -14
- package/src/login/services/index.ts +0 -2
- /package/lib/models/{script.model.mjs → script.model.js} +0 -0
- /package/lib/services/{resource-injector.service.mjs → resource-injector.service.js} +0 -0
- /package/login/{DefaultPage.mjs → DefaultPage.js} +0 -0
- /package/login/{KcContext.mjs → KcContext.js} +0 -0
- /package/login/classes/{component-reference.class.mjs → component-reference.class.js} +0 -0
- /package/login/directives/{attributes.directive.mjs → attributes.directive.js} +0 -0
- /package/login/directives/{kc-class.directive.mjs → kc-class.directive.js} +0 -0
- /package/login/{i18n.mjs → i18n.js} +0 -0
- /package/login/pipes/{input-type.pipe.mjs → input-type.pipe.js} +0 -0
- /package/login/pipes/{to-number.pipe.mjs → to-number.pipe.js} +0 -0
package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
Component,
|
|
4
|
-
forwardRef,
|
|
5
|
-
inject,
|
|
6
|
-
input
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
CLASSES,
|
|
10
|
-
KC_CONTEXT,
|
|
11
|
-
USE_DEFAULT_CSS
|
|
12
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
13
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
15
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
16
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
17
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
18
|
-
import {
|
|
6
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
7
|
+
import { I18n } from '../../i18n';
|
|
8
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
9
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
10
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
11
|
+
import { KcContext } from '../../KcContext';
|
|
19
12
|
|
|
20
13
|
@Component({
|
|
21
14
|
standalone: true,
|
|
22
|
-
imports: [KcClassDirective, TemplateComponent
|
|
15
|
+
imports: [KcClassDirective, TemplateComponent],
|
|
23
16
|
selector: 'kc-root',
|
|
24
17
|
templateUrl: 'login-idp-link-confirm-override.component.html',
|
|
25
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -31,12 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
31
24
|
]
|
|
32
25
|
})
|
|
33
26
|
export class LoginIdpLinkConfirmOverrideComponent extends ComponentReference {
|
|
34
|
-
kcContext =
|
|
35
|
-
|
|
36
|
-
KC_CONTEXT
|
|
37
|
-
);
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-confirm-override.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
38
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
39
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
40
31
|
displayRequiredFields = input(false);
|
|
41
32
|
documentTitle = input<string>();
|
|
42
33
|
bodyClassName = input<string>();
|
|
@@ -3,35 +3,37 @@
|
|
|
3
3
|
@let realm = kcContext.realm;
|
|
4
4
|
@let url = kcContext.url;
|
|
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
|
-
|
|
12
|
+
<ng-container headerNode>
|
|
13
|
+
{{ i18n.msgStr('emailLinkIdpTitle', idpAlias) }}
|
|
14
|
+
</ng-container>
|
|
15
|
+
<ng-container content>
|
|
16
|
+
<p
|
|
17
|
+
id="instruction1"
|
|
18
|
+
class="instruction"
|
|
19
|
+
>
|
|
20
|
+
{{ i18n.msgStr('emailLinkIdp1', idpAlias, brokerContext.username, realm.displayName) }}
|
|
21
|
+
</p>
|
|
22
|
+
<p
|
|
23
|
+
id="instruction2"
|
|
24
|
+
class="instruction"
|
|
25
|
+
>
|
|
26
|
+
{{ i18n.msgStr('emailLinkIdp2') }}
|
|
27
|
+
<a [href]="url.loginAction">{{ i18n.msgStr('doClickHere') }}</a>
|
|
28
|
+
{{ i18n.msgStr('emailLinkIdp3') }}
|
|
29
|
+
</p>
|
|
30
|
+
<p
|
|
31
|
+
id="instruction3"
|
|
32
|
+
class="instruction"
|
|
33
|
+
>
|
|
34
|
+
{{ i18n.msgStr('emailLinkIdp4') }}
|
|
35
|
+
<a [href]="url.loginAction">{{ i18n.msgStr('doClickHere') }}</a>
|
|
36
|
+
{{ i18n.msgStr('emailLinkIdp5') }}
|
|
37
|
+
</p>
|
|
38
|
+
</ng-container>
|
|
37
39
|
</kc-login-template>
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
Component,
|
|
4
|
-
forwardRef,
|
|
5
|
-
inject,
|
|
6
|
-
input
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
CLASSES,
|
|
10
|
-
KC_CONTEXT,
|
|
11
|
-
USE_DEFAULT_CSS
|
|
12
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
13
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
15
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
16
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
17
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
18
|
-
import {
|
|
6
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
7
|
+
import { I18n } from '../../i18n';
|
|
8
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
9
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
10
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
11
|
+
import { KcContext } from '../../KcContext';
|
|
19
12
|
|
|
20
13
|
@Component({
|
|
21
14
|
standalone: true,
|
|
22
|
-
imports: [TemplateComponent,
|
|
15
|
+
imports: [TemplateComponent, KcClassDirective],
|
|
23
16
|
selector: 'kc-root',
|
|
24
17
|
templateUrl: 'login-idp-link-email.component.html',
|
|
25
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -31,10 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
31
24
|
]
|
|
32
25
|
})
|
|
33
26
|
export class LoginIdpLinkEmailComponent extends ComponentReference {
|
|
34
|
-
kcContext =
|
|
35
|
-
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-email.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
36
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
37
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
38
31
|
displayRequiredFields = input(false);
|
|
39
32
|
documentTitle = input<string>();
|
|
40
33
|
bodyClassName = input<string>();
|
|
@@ -2,91 +2,93 @@
|
|
|
2
2
|
@let oauth = kcContext.oauth;
|
|
3
3
|
@let url = kcContext.url;
|
|
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
|
-
<p>{{ 'oauthGrantTitle' | msgStr: (client.name ? (client.name | advancedMsgStr) : client.clientId) }}</p>
|
|
19
|
-
</ng-container>
|
|
20
|
-
|
|
21
|
-
<ng-container content>
|
|
22
|
-
<div
|
|
23
|
-
id="kc-oauth"
|
|
24
|
-
class="content-area"
|
|
25
|
-
>
|
|
26
|
-
<h3>{{ 'oauthGrantRequest' | msgStr }}</h3>
|
|
27
|
-
<ul>
|
|
28
|
-
@for (clientScope of oauth.clientScopesRequested; track clientScope) {
|
|
29
|
-
<li>
|
|
30
|
-
<span>
|
|
31
|
-
{{ clientScope.consentScreenText | advancedMsgStr }}
|
|
32
|
-
@if (clientScope.dynamicScopeParameter) {
|
|
33
|
-
: <b>{{ clientScope.dynamicScopeParameter }}</b>
|
|
34
|
-
}
|
|
35
|
-
</span>
|
|
36
|
-
</li>
|
|
11
|
+
<ng-container headerNode>
|
|
12
|
+
@if (client.attributes['logoUri']) {
|
|
13
|
+
<img
|
|
14
|
+
[src]="client.attributes['logoUri']"
|
|
15
|
+
alt=""
|
|
16
|
+
/>
|
|
37
17
|
}
|
|
38
|
-
|
|
18
|
+
<p>
|
|
19
|
+
{{ i18n.msgStr('oauthGrantTitle', client.name ? i18n.advancedMsgStr(client.name) : client.clientId) }}
|
|
20
|
+
</p>
|
|
21
|
+
</ng-container>
|
|
22
|
+
|
|
23
|
+
<ng-container content>
|
|
24
|
+
<div
|
|
25
|
+
id="kc-oauth"
|
|
26
|
+
class="content-area"
|
|
27
|
+
>
|
|
28
|
+
<h3>{{ i18n.msgStr('oauthGrantRequest') }}</h3>
|
|
29
|
+
<ul>
|
|
30
|
+
@for (clientScope of oauth.clientScopesRequested; track clientScope) {
|
|
31
|
+
<li>
|
|
32
|
+
<span>
|
|
33
|
+
{{ i18n.advancedMsgStr(clientScope.consentScreenText) }}
|
|
34
|
+
@if (clientScope.dynamicScopeParameter) {
|
|
35
|
+
: <b>{{ clientScope.dynamicScopeParameter }}</b>
|
|
36
|
+
}
|
|
37
|
+
</span>
|
|
38
|
+
</li>
|
|
39
|
+
}
|
|
40
|
+
</ul>
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
@if (client.attributes['policyUri'] || client.attributes['tosUri']) {
|
|
43
|
+
<h3>
|
|
44
|
+
@if (client.name) {
|
|
45
|
+
{{ i18n.msgStr('oauthGrantInformation', i18n.advancedMsgStr(client.name)) }}
|
|
46
|
+
} @else {
|
|
47
|
+
{{ i18n.msgStr('oauthGrantInformation', client.clientId) }}
|
|
48
|
+
}
|
|
49
|
+
@if (client.attributes['policyUri']) {
|
|
50
|
+
{{ i18n.msgStr('oauthGrantReview') }}
|
|
51
|
+
<a
|
|
52
|
+
[href]="client.attributes['policyUri']"
|
|
53
|
+
target="_blank"
|
|
54
|
+
>
|
|
55
|
+
{{ i18n.msgStr('oauthGrantPolicy') }}
|
|
56
|
+
</a>
|
|
57
|
+
}
|
|
58
|
+
</h3>
|
|
59
|
+
}
|
|
60
|
+
<form
|
|
61
|
+
class="form-actions"
|
|
62
|
+
[action]="url.oauthAction"
|
|
63
|
+
method="post"
|
|
52
64
|
>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
>
|
|
63
|
-
<input
|
|
64
|
-
type="hidden"
|
|
65
|
-
name="code"
|
|
66
|
-
[value]="oauth.code"
|
|
67
|
-
/>
|
|
68
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
69
|
-
<div id="kc-form-options">
|
|
70
|
-
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
71
|
-
</div>
|
|
65
|
+
<input
|
|
66
|
+
type="hidden"
|
|
67
|
+
name="code"
|
|
68
|
+
[value]="oauth.code"
|
|
69
|
+
/>
|
|
70
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
71
|
+
<div id="kc-form-options">
|
|
72
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
73
|
+
</div>
|
|
72
74
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
75
|
+
<div id="kc-form-buttons">
|
|
76
|
+
<div [kcClass]="'kcFormButtonsWrapperClass'">
|
|
77
|
+
<input
|
|
78
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
79
|
+
type="submit"
|
|
80
|
+
[value]="i18n.msgStr('doYes')"
|
|
81
|
+
/>
|
|
82
|
+
<input
|
|
83
|
+
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
84
|
+
type="submit"
|
|
85
|
+
[value]="i18n.msgStr('doNo')"
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</form>
|
|
91
|
+
<div className="clearfix"></div>
|
|
87
92
|
</div>
|
|
88
|
-
|
|
89
|
-
<div className="clearfix"></div>
|
|
90
|
-
</div>
|
|
91
|
-
</ng-container>
|
|
93
|
+
</ng-container>
|
|
92
94
|
</kc-login-template>
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
Component,
|
|
4
|
-
forwardRef,
|
|
5
|
-
inject,
|
|
6
|
-
input
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
CLASSES,
|
|
10
|
-
KC_CONTEXT,
|
|
11
|
-
USE_DEFAULT_CSS
|
|
12
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
13
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
15
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
16
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
17
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
6
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
7
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
8
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
9
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
10
|
+
import { I18n } from '../../i18n';
|
|
11
|
+
import { KcContext } from '../../KcContext';
|
|
20
12
|
|
|
21
13
|
@Component({
|
|
22
14
|
standalone: true,
|
|
23
|
-
imports: [KcClassDirective, TemplateComponent
|
|
15
|
+
imports: [KcClassDirective, TemplateComponent],
|
|
24
16
|
selector: 'kc-root',
|
|
25
17
|
templateUrl: 'login-oauth-grant.component.html',
|
|
26
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -32,10 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
32
24
|
]
|
|
33
25
|
})
|
|
34
26
|
export class LoginOauthGrantComponent extends ComponentReference {
|
|
35
|
-
kcContext =
|
|
36
|
-
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-oauth-grant.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
37
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
38
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
39
31
|
displayRequiredFields = input(false);
|
|
40
32
|
documentTitle = input<string>();
|
|
41
33
|
bodyClassName = input<string>('oauth');
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
@let url = kcContext.url;
|
|
2
2
|
<kc-login-template
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
[displayInfo]="displayInfo"
|
|
4
|
+
[bodyClassName]="bodyClassName()"
|
|
5
|
+
[displayMessage]="displayMessage"
|
|
6
|
+
[displayRequiredFields]="displayRequiredFields()"
|
|
7
|
+
[documentTitle]="documentTitle()"
|
|
8
8
|
>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
>
|
|
19
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
20
|
-
<div [kcClass]="'kcLabelWrapperClass'">
|
|
21
|
-
<label
|
|
22
|
-
for="device-user-code"
|
|
23
|
-
[kcClass]="'kcLabelClass'"
|
|
24
|
-
>
|
|
25
|
-
{{ 'verifyOAuth2DeviceUserCode' | msgStr }}
|
|
26
|
-
</label>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<div [kcClass]="'kcInputWrapperClass'">
|
|
30
|
-
<input
|
|
31
|
-
id="device-user-code"
|
|
32
|
-
name="device_user_code"
|
|
33
|
-
autoComplete="off"
|
|
34
|
-
type="text"
|
|
35
|
-
[kcClass]="'kcInputClass'"
|
|
36
|
-
autofocus
|
|
37
|
-
/>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
41
|
-
<div
|
|
42
|
-
id="kc-form-options"
|
|
43
|
-
[kcClass]="'kcFormOptionsClass'"
|
|
9
|
+
<ng-container headerNode>
|
|
10
|
+
{{ i18n.msgStr('oauth2DeviceVerificationTitle') }}
|
|
11
|
+
</ng-container>
|
|
12
|
+
<ng-container content>
|
|
13
|
+
<form
|
|
14
|
+
id="kc-user-verify-device-user-code-form"
|
|
15
|
+
[kcClass]="'kcFormClass'"
|
|
16
|
+
[action]="url.oauth2DeviceVerificationAction"
|
|
17
|
+
method="post"
|
|
44
18
|
>
|
|
45
|
-
|
|
46
|
-
|
|
19
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
20
|
+
<div [kcClass]="'kcLabelWrapperClass'">
|
|
21
|
+
<label
|
|
22
|
+
for="device-user-code"
|
|
23
|
+
[kcClass]="'kcLabelClass'"
|
|
24
|
+
>
|
|
25
|
+
{{ i18n.msgStr('verifyOAuth2DeviceUserCode') }}
|
|
26
|
+
</label>
|
|
27
|
+
</div>
|
|
47
28
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
29
|
+
<div [kcClass]="'kcInputWrapperClass'">
|
|
30
|
+
<input
|
|
31
|
+
id="device-user-code"
|
|
32
|
+
name="device_user_code"
|
|
33
|
+
autoComplete="off"
|
|
34
|
+
type="text"
|
|
35
|
+
[kcClass]="'kcInputClass'"
|
|
36
|
+
autofocus
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div [kcClass]="'kcFormGroupClass'">
|
|
41
|
+
<div
|
|
42
|
+
id="kc-form-options"
|
|
43
|
+
[kcClass]="'kcFormOptionsClass'"
|
|
44
|
+
>
|
|
45
|
+
<div [kcClass]="'kcFormOptionsWrapperClass'"></div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div
|
|
49
|
+
id="kc-form-buttons"
|
|
50
|
+
[kcClass]="'kcFormButtonsClass'"
|
|
51
|
+
>
|
|
52
|
+
<div [kcClass]="'kcFormButtonsWrapperClass'">
|
|
53
|
+
<input
|
|
54
|
+
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
55
|
+
type="submit"
|
|
56
|
+
[value]="i18n.msgStr('doSubmit')"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</form>
|
|
62
|
+
</ng-container>
|
|
63
63
|
</kc-login-template>
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
Component,
|
|
4
|
-
forwardRef,
|
|
5
|
-
inject,
|
|
6
|
-
input
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
CLASSES,
|
|
10
|
-
KC_CONTEXT,
|
|
11
|
-
USE_DEFAULT_CSS
|
|
12
|
-
} from '@keycloakify/angular/lib/public-api';
|
|
13
|
-
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
-
import { KcContext } from 'keycloakify/login/KcContext';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
|
|
2
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
|
|
15
3
|
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
16
4
|
import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
|
|
17
5
|
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
18
|
-
import {
|
|
6
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
|
|
7
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
|
|
8
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
|
|
9
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
10
|
+
import { I18n } from '../../i18n';
|
|
11
|
+
import { KcContext } from '../../KcContext';
|
|
19
12
|
|
|
20
13
|
@Component({
|
|
21
14
|
standalone: true,
|
|
22
|
-
imports: [TemplateComponent,
|
|
15
|
+
imports: [TemplateComponent, KcClassDirective],
|
|
23
16
|
selector: 'kc-root',
|
|
24
17
|
templateUrl: 'login-oauth2-device-verify-user-code.component.html',
|
|
25
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -31,12 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
|
31
24
|
]
|
|
32
25
|
})
|
|
33
26
|
export class LoginOauth2DeviceVerifyUserCodeComponent extends ComponentReference {
|
|
34
|
-
kcContext =
|
|
35
|
-
|
|
36
|
-
Extract<KcContext, { pageId: 'login-oauth2-device-verify-user-code.ftl' }>
|
|
37
|
-
>(KC_CONTEXT);
|
|
27
|
+
kcContext = inject<Extract<KcContext, { pageId: 'login-oauth2-device-verify-user-code.ftl' }>>(KC_LOGIN_CONTEXT);
|
|
28
|
+
i18n = inject<I18n>(LOGIN_I18N);
|
|
38
29
|
override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
|
|
39
|
-
override classes = inject<Partial<Record<ClassKey, string>>>(
|
|
30
|
+
override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
|
|
40
31
|
displayRequiredFields = input(false);
|
|
41
32
|
documentTitle = input<string>();
|
|
42
33
|
bodyClassName = input<string>();
|