@keycloakify/login-ui 250004.0.33
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/KcContext/getKcContextMock.d.ts +1 -0
- package/KcContext/getKcContextMock.js +1 -0
- package/KcContext/index.d.ts +2 -0
- package/KcContext/index.js +2 -0
- package/KcContext/useKcContext.d.ts +10 -0
- package/KcContext/useKcContext.js +17 -0
- package/README.md +12 -0
- package/core/KcContext/KcContext.d.ts +605 -0
- package/core/KcContext/KcContext.js +43 -0
- package/core/KcContext/getKcContextMock.d.ts +23 -0
- package/core/KcContext/getKcContextMock.js +27 -0
- package/core/KcContext/kcContextMocks.d.ts +4 -0
- package/core/KcContext/kcContextMocks.js +345 -0
- package/core/getKcClsx.d.ts +11 -0
- package/core/getKcClsx.js +54 -0
- package/core/i18n/GenericI18n.d.ts +63 -0
- package/core/i18n/GenericI18n.js +1 -0
- package/core/i18n/getI18n.d.ts +45 -0
- package/core/i18n/getI18n.js +246 -0
- package/core/i18n/i18nBuilder.d.ts +18 -0
- package/core/i18n/i18nBuilder.js +26 -0
- package/core/i18n/messages_defaultSet/ar.d.ts +447 -0
- package/core/i18n/messages_defaultSet/ar.js +451 -0
- package/core/i18n/messages_defaultSet/ca.d.ts +443 -0
- package/core/i18n/messages_defaultSet/ca.js +447 -0
- package/core/i18n/messages_defaultSet/cs.d.ts +445 -0
- package/core/i18n/messages_defaultSet/cs.js +449 -0
- package/core/i18n/messages_defaultSet/da.d.ts +317 -0
- package/core/i18n/messages_defaultSet/da.js +321 -0
- package/core/i18n/messages_defaultSet/de.d.ts +459 -0
- package/core/i18n/messages_defaultSet/de.js +463 -0
- package/core/i18n/messages_defaultSet/el.d.ts +438 -0
- package/core/i18n/messages_defaultSet/el.js +442 -0
- package/core/i18n/messages_defaultSet/en.d.ts +470 -0
- package/core/i18n/messages_defaultSet/en.js +474 -0
- package/core/i18n/messages_defaultSet/es.d.ts +452 -0
- package/core/i18n/messages_defaultSet/es.js +456 -0
- package/core/i18n/messages_defaultSet/fa.d.ts +438 -0
- package/core/i18n/messages_defaultSet/fa.js +442 -0
- package/core/i18n/messages_defaultSet/fi.d.ts +377 -0
- package/core/i18n/messages_defaultSet/fi.js +381 -0
- package/core/i18n/messages_defaultSet/fr.d.ts +393 -0
- package/core/i18n/messages_defaultSet/fr.js +397 -0
- package/core/i18n/messages_defaultSet/hu.d.ts +443 -0
- package/core/i18n/messages_defaultSet/hu.js +447 -0
- package/core/i18n/messages_defaultSet/index.d.ts +3086 -0
- package/core/i18n/messages_defaultSet/index.js +72 -0
- package/core/i18n/messages_defaultSet/it.d.ts +318 -0
- package/core/i18n/messages_defaultSet/it.js +322 -0
- package/core/i18n/messages_defaultSet/ja.d.ts +323 -0
- package/core/i18n/messages_defaultSet/ja.js +327 -0
- package/core/i18n/messages_defaultSet/ka.d.ts +468 -0
- package/core/i18n/messages_defaultSet/ka.js +472 -0
- package/core/i18n/messages_defaultSet/lt.d.ts +203 -0
- package/core/i18n/messages_defaultSet/lt.js +207 -0
- package/core/i18n/messages_defaultSet/lv.d.ts +214 -0
- package/core/i18n/messages_defaultSet/lv.js +218 -0
- package/core/i18n/messages_defaultSet/nl.d.ts +285 -0
- package/core/i18n/messages_defaultSet/nl.js +289 -0
- package/core/i18n/messages_defaultSet/no.d.ts +202 -0
- package/core/i18n/messages_defaultSet/no.js +206 -0
- package/core/i18n/messages_defaultSet/pl.d.ts +292 -0
- package/core/i18n/messages_defaultSet/pl.js +296 -0
- package/core/i18n/messages_defaultSet/pt-BR.d.ts +347 -0
- package/core/i18n/messages_defaultSet/pt-BR.js +351 -0
- package/core/i18n/messages_defaultSet/pt.d.ts +448 -0
- package/core/i18n/messages_defaultSet/pt.js +452 -0
- package/core/i18n/messages_defaultSet/ru.d.ts +220 -0
- package/core/i18n/messages_defaultSet/ru.js +224 -0
- package/core/i18n/messages_defaultSet/sk.d.ts +448 -0
- package/core/i18n/messages_defaultSet/sk.js +452 -0
- package/core/i18n/messages_defaultSet/sv.d.ts +201 -0
- package/core/i18n/messages_defaultSet/sv.js +205 -0
- package/core/i18n/messages_defaultSet/th.d.ts +443 -0
- package/core/i18n/messages_defaultSet/th.js +447 -0
- package/core/i18n/messages_defaultSet/tr.d.ts +270 -0
- package/core/i18n/messages_defaultSet/tr.js +274 -0
- package/core/i18n/messages_defaultSet/types.d.ts +3 -0
- package/core/i18n/messages_defaultSet/types.js +32 -0
- package/core/i18n/messages_defaultSet/uk.d.ts +442 -0
- package/core/i18n/messages_defaultSet/uk.js +446 -0
- package/core/i18n/messages_defaultSet/zh-CN.d.ts +447 -0
- package/core/i18n/messages_defaultSet/zh-CN.js +451 -0
- package/core/i18n/messages_defaultSet/zh-TW.d.ts +453 -0
- package/core/i18n/messages_defaultSet/zh-TW.js +457 -0
- package/core/kcClsx.d.ts +8 -0
- package/core/kcClsx.js +128 -0
- package/core/kcSanitize/HtmlPolicyBuilder.d.ts +27 -0
- package/core/kcSanitize/HtmlPolicyBuilder.js +207 -0
- package/core/kcSanitize/KcSanitizer.d.ts +11 -0
- package/core/kcSanitize/KcSanitizer.js +45 -0
- package/core/kcSanitize/KcSanitizerPolicy.d.ts +23 -0
- package/core/kcSanitize/KcSanitizerPolicy.js +148 -0
- package/core/kcSanitize/index.d.ts +1 -0
- package/core/kcSanitize/index.js +4 -0
- package/core/userProfileApi/index.d.ts +1 -0
- package/core/userProfileApi/index.js +1 -0
- package/core/userProfileApi/kcNumberUnFormat.d.ts +2 -0
- package/core/userProfileApi/kcNumberUnFormat.js +83 -0
- package/core/userProfileApi/userProfileApi.d.ts +83 -0
- package/core/userProfileApi/userProfileApi.js +1119 -0
- package/i18n/GenericI18n.d.ts +72 -0
- package/i18n/GenericI18n.js +4 -0
- package/i18n/i18nBuilder.d.ts +18 -0
- package/i18n/i18nBuilder.js +26 -0
- package/i18n/index.d.ts +3 -0
- package/i18n/index.js +1 -0
- package/i18n/useI18n.d.ts +28 -0
- package/i18n/useI18n.js +86 -0
- package/import.meta.env.BASE_URL.d.ts +5 -0
- package/import.meta.env.BASE_URL.js +41 -0
- package/kcSanitize.d.ts +1 -0
- package/kcSanitize.js +1 -0
- package/keycloak-theme/login/KcContext.ts +15 -0
- package/keycloak-theme/login/KcPage.tsx +47 -0
- package/keycloak-theme/login/components/LogoutOtherSessions.tsx +27 -0
- package/keycloak-theme/login/components/PasswordWrapper.tsx +38 -0
- package/keycloak-theme/login/components/Template/Template.tsx +235 -0
- package/keycloak-theme/login/components/Template/index.ts +1 -0
- package/keycloak-theme/login/components/Template/useInitializeTemplate.ts +60 -0
- package/keycloak-theme/login/components/UserProfileFormFields/AddRemoveButtonsMultiValuedAttribute.tsx +65 -0
- package/keycloak-theme/login/components/UserProfileFormFields/DO_MAKE_USER_CONFIRM_PASSWORD.ts +2 -0
- package/keycloak-theme/login/components/UserProfileFormFields/FieldErrors.tsx +37 -0
- package/keycloak-theme/login/components/UserProfileFormFields/GroupLabel.tsx +78 -0
- package/keycloak-theme/login/components/UserProfileFormFields/InputFieldByType.tsx +52 -0
- package/keycloak-theme/login/components/UserProfileFormFields/InputLabel.tsx +19 -0
- package/keycloak-theme/login/components/UserProfileFormFields/InputTag.tsx +130 -0
- package/keycloak-theme/login/components/UserProfileFormFields/InputTagSelects.tsx +118 -0
- package/keycloak-theme/login/components/UserProfileFormFields/SelectTag.tsx +86 -0
- package/keycloak-theme/login/components/UserProfileFormFields/TextareaTag.tsx +53 -0
- package/keycloak-theme/login/components/UserProfileFormFields/UserProfileFormFields.tsx +132 -0
- package/keycloak-theme/login/components/UserProfileFormFields/index.ts +1 -0
- package/keycloak-theme/login/i18n.ts +7 -0
- package/keycloak-theme/login/mocks/getKcContextMock.ts +18 -0
- package/keycloak-theme/login/pages/PageIndex.tsx +133 -0
- package/keycloak-theme/login/pages/code/Page.tsx +47 -0
- package/keycloak-theme/login/pages/code/index.ts +3 -0
- package/keycloak-theme/login/pages/delete-account-confirm/Page.tsx +59 -0
- package/keycloak-theme/login/pages/delete-account-confirm/index.ts +3 -0
- package/keycloak-theme/login/pages/delete-credential/Page.tsx +40 -0
- package/keycloak-theme/login/pages/delete-credential/index.ts +3 -0
- package/keycloak-theme/login/pages/error/Page.tsx +32 -0
- package/keycloak-theme/login/pages/error/index.ts +3 -0
- package/keycloak-theme/login/pages/frontchannel-logout/Page.tsx +40 -0
- package/keycloak-theme/login/pages/frontchannel-logout/index.ts +3 -0
- package/keycloak-theme/login/pages/idp-review-user-profile/Page.tsx +53 -0
- package/keycloak-theme/login/pages/idp-review-user-profile/index.ts +3 -0
- package/keycloak-theme/login/pages/info/Page.tsx +80 -0
- package/keycloak-theme/login/pages/info/index.ts +3 -0
- package/keycloak-theme/login/pages/login/Form.tsx +164 -0
- package/keycloak-theme/login/pages/login/Info.tsx +25 -0
- package/keycloak-theme/login/pages/login/Page.tsx +32 -0
- package/keycloak-theme/login/pages/login/SocialProviders.tsx +64 -0
- package/keycloak-theme/login/pages/login/index.ts +3 -0
- package/keycloak-theme/login/pages/login-config-totp/Page.tsx +219 -0
- package/keycloak-theme/login/pages/login-config-totp/index.ts +3 -0
- package/keycloak-theme/login/pages/login-idp-link-confirm/Page.tsx +51 -0
- package/keycloak-theme/login/pages/login-idp-link-confirm/index.ts +3 -0
- package/keycloak-theme/login/pages/login-idp-link-confirm-override/Page.tsx +41 -0
- package/keycloak-theme/login/pages/login-idp-link-confirm-override/index.ts +3 -0
- package/keycloak-theme/login/pages/login-idp-link-email/Page.tsx +32 -0
- package/keycloak-theme/login/pages/login-idp-link-email/index.ts +3 -0
- package/keycloak-theme/login/pages/login-oauth-grant/Page.tsx +120 -0
- package/keycloak-theme/login/pages/login-oauth-grant/index.ts +3 -0
- package/keycloak-theme/login/pages/login-oauth2-device-verify-user-code/Page.tsx +64 -0
- package/keycloak-theme/login/pages/login-oauth2-device-verify-user-code/index.ts +3 -0
- package/keycloak-theme/login/pages/login-otp/Page.tsx +125 -0
- package/keycloak-theme/login/pages/login-otp/index.ts +3 -0
- package/keycloak-theme/login/pages/login-page-expired/Page.tsx +28 -0
- package/keycloak-theme/login/pages/login-page-expired/index.ts +3 -0
- package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/Page.tsx +233 -0
- package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/index.ts +3 -0
- package/keycloak-theme/login/pages/login-passkeys-conditional-authenticate/useScript.tsx +64 -0
- package/keycloak-theme/login/pages/login-password/Page.tsx +103 -0
- package/keycloak-theme/login/pages/login-password/index.ts +3 -0
- package/keycloak-theme/login/pages/login-recovery-authn-code-config/Page.tsx +167 -0
- package/keycloak-theme/login/pages/login-recovery-authn-code-config/index.ts +3 -0
- package/keycloak-theme/login/pages/login-recovery-authn-code-config/useScript.tsx +145 -0
- package/keycloak-theme/login/pages/login-recovery-authn-code-input/Page.tsx +84 -0
- package/keycloak-theme/login/pages/login-recovery-authn-code-input/index.ts +3 -0
- package/keycloak-theme/login/pages/login-reset-otp/Page.tsx +82 -0
- package/keycloak-theme/login/pages/login-reset-otp/index.ts +3 -0
- package/keycloak-theme/login/pages/login-reset-password/Form.tsx +78 -0
- package/keycloak-theme/login/pages/login-reset-password/Page.tsx +27 -0
- package/keycloak-theme/login/pages/login-reset-password/index.ts +3 -0
- package/keycloak-theme/login/pages/login-update-password/Page.tsx +132 -0
- package/keycloak-theme/login/pages/login-update-password/index.ts +3 -0
- package/keycloak-theme/login/pages/login-update-profile/Page.tsx +70 -0
- package/keycloak-theme/login/pages/login-update-profile/index.ts +3 -0
- package/keycloak-theme/login/pages/login-username/Page.tsx +176 -0
- package/keycloak-theme/login/pages/login-username/index.ts +3 -0
- package/keycloak-theme/login/pages/login-verify-email/Page.tsx +31 -0
- package/keycloak-theme/login/pages/login-verify-email/index.ts +3 -0
- package/keycloak-theme/login/pages/login-x509-info/Page.tsx +97 -0
- package/keycloak-theme/login/pages/login-x509-info/index.ts +3 -0
- package/keycloak-theme/login/pages/logout-confirm/Page.tsx +54 -0
- package/keycloak-theme/login/pages/logout-confirm/index.ts +3 -0
- package/keycloak-theme/login/pages/register/Form.tsx +102 -0
- package/keycloak-theme/login/pages/register/Page.tsx +26 -0
- package/keycloak-theme/login/pages/register/TermsAcceptance.tsx +54 -0
- package/keycloak-theme/login/pages/register/index.ts +3 -0
- package/keycloak-theme/login/pages/saml-post-form/Page.tsx +50 -0
- package/keycloak-theme/login/pages/saml-post-form/index.ts +3 -0
- package/keycloak-theme/login/pages/select-authenticator/Page.tsx +59 -0
- package/keycloak-theme/login/pages/select-authenticator/index.ts +3 -0
- package/keycloak-theme/login/pages/terms/Page.tsx +45 -0
- package/keycloak-theme/login/pages/terms/index.ts +3 -0
- package/keycloak-theme/login/pages/update-email/Page.tsx +74 -0
- package/keycloak-theme/login/pages/update-email/index.ts +3 -0
- package/keycloak-theme/login/pages/webauthn-authenticate/Page.tsx +190 -0
- package/keycloak-theme/login/pages/webauthn-authenticate/index.ts +3 -0
- package/keycloak-theme/login/pages/webauthn-authenticate/useScript.tsx +56 -0
- package/keycloak-theme/login/pages/webauthn-error/Page.tsx +74 -0
- package/keycloak-theme/login/pages/webauthn-error/index.ts +3 -0
- package/keycloak-theme/login/pages/webauthn-register/Page.tsx +83 -0
- package/keycloak-theme/login/pages/webauthn-register/index.ts +3 -0
- package/keycloak-theme/login/pages/webauthn-register/useScript.tsx +64 -0
- package/keycloak-theme/login/styleLevelCustomization.tsx +17 -0
- package/keycloak-theme/public/login/css/login.css +629 -0
- package/keycloak-theme/public/login/img/feedback-error-arrow-down.png +0 -0
- package/keycloak-theme/public/login/img/feedback-error-sign.png +0 -0
- package/keycloak-theme/public/login/img/feedback-success-arrow-down.png +0 -0
- package/keycloak-theme/public/login/img/feedback-success-sign.png +0 -0
- package/keycloak-theme/public/login/img/feedback-warning-arrow-down.png +0 -0
- package/keycloak-theme/public/login/img/feedback-warning-sign.png +0 -0
- package/keycloak-theme/public/login/img/keycloak-bg.png +0 -0
- package/keycloak-theme/public/login/img/keycloak-logo-text.png +0 -0
- package/keycloak-theme/public/login/img/keycloak-logo.png +0 -0
- package/keycloak-theme/public/login/js/authChecker.js +49 -0
- package/keycloak-theme/public/login/js/common.js +48 -0
- package/keycloak-theme/public/login/js/kcMultivalued.js +106 -0
- package/keycloak-theme/public/login/js/kcNumberFormat.js +21 -0
- package/keycloak-theme/public/login/js/kcNumberUnFormat.js +19 -0
- package/keycloak-theme/public/login/js/menu-button-links.js +315 -0
- package/keycloak-theme/public/login/js/passkeysConditionalAuth.js +79 -0
- package/keycloak-theme/public/login/js/passwordVisibility.js +15 -0
- package/keycloak-theme/public/login/js/userProfile.js +71 -0
- package/keycloak-theme/public/login/js/webauthnAuthenticate.js +82 -0
- package/keycloak-theme/public/login/js/webauthnRegister.js +140 -0
- package/keycloak-theme/public/login/resources-common/img/favicon.ico +0 -0
- package/keycloak-theme/public/login/resources-common/lib/pficon/pficon.css +22 -0
- package/keycloak-theme/public/login/resources-common/lib/pficon/pficon.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/overpass-webfont/overpass-bold.woff +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/overpass-webfont/overpass-bold.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/@patternfly/patternfly/patternfly.min.css +2 -0
- package/keycloak-theme/public/login/resources-common/node_modules/jquery/dist/jquery.min.js +2 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/css/patternfly-additions.min.css +5 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/css/patternfly.min.css +8 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.ttf +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/fonts/fontawesome-webfont.woff2 +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/patternfly/dist/img/bg-login.jpg +0 -0
- package/keycloak-theme/public/login/resources-common/node_modules/rfc4648/lib/rfc4648.js +178 -0
- package/package.json +19 -0
- package/src/KcContext/getKcContextMock.ts +1 -0
- package/src/KcContext/index.ts +10 -0
- package/src/KcContext/useKcContext.tsx +23 -0
- package/src/core/KcContext/KcContext.ts +819 -0
- package/src/core/KcContext/getKcContextMock.ts +63 -0
- package/src/core/KcContext/kcContextMocks.ts +623 -0
- package/src/core/getKcClsx.ts +87 -0
- package/src/core/i18n/GenericI18n.ts +64 -0
- package/src/core/i18n/getI18n.tsx +427 -0
- package/src/core/i18n/i18nBuilder.ts +101 -0
- package/src/core/i18n/messages_defaultSet/ar.ts +485 -0
- package/src/core/i18n/messages_defaultSet/ca.ts +517 -0
- package/src/core/i18n/messages_defaultSet/cs.ts +494 -0
- package/src/core/i18n/messages_defaultSet/da.ts +356 -0
- package/src/core/i18n/messages_defaultSet/de.ts +543 -0
- package/src/core/i18n/messages_defaultSet/el.ts +512 -0
- package/src/core/i18n/messages_defaultSet/en.ts +528 -0
- package/src/core/i18n/messages_defaultSet/es.ts +525 -0
- package/src/core/i18n/messages_defaultSet/fa.ts +480 -0
- package/src/core/i18n/messages_defaultSet/fi.ts +426 -0
- package/src/core/i18n/messages_defaultSet/fr.ts +458 -0
- package/src/core/i18n/messages_defaultSet/hu.ts +512 -0
- package/src/core/i18n/messages_defaultSet/index.ts +73 -0
- package/src/core/i18n/messages_defaultSet/it.ts +366 -0
- package/src/core/i18n/messages_defaultSet/ja.ts +369 -0
- package/src/core/i18n/messages_defaultSet/ka.ts +537 -0
- package/src/core/i18n/messages_defaultSet/lt.ts +233 -0
- package/src/core/i18n/messages_defaultSet/lv.ts +229 -0
- package/src/core/i18n/messages_defaultSet/nl.ts +324 -0
- package/src/core/i18n/messages_defaultSet/no.ts +228 -0
- package/src/core/i18n/messages_defaultSet/pl.ts +328 -0
- package/src/core/i18n/messages_defaultSet/pt-BR.ts +398 -0
- package/src/core/i18n/messages_defaultSet/pt.ts +519 -0
- package/src/core/i18n/messages_defaultSet/ru.ts +259 -0
- package/src/core/i18n/messages_defaultSet/sk.ts +503 -0
- package/src/core/i18n/messages_defaultSet/sv.ts +229 -0
- package/src/core/i18n/messages_defaultSet/th.ts +491 -0
- package/src/core/i18n/messages_defaultSet/tr.ts +306 -0
- package/src/core/i18n/messages_defaultSet/types.ts +36 -0
- package/src/core/i18n/messages_defaultSet/uk.ts +517 -0
- package/src/core/i18n/messages_defaultSet/zh-CN.ts +462 -0
- package/src/core/i18n/messages_defaultSet/zh-TW.ts +471 -0
- package/src/core/kcClsx.ts +258 -0
- package/src/core/kcSanitize/HtmlPolicyBuilder.ts +242 -0
- package/src/core/kcSanitize/KcSanitizer.ts +60 -0
- package/src/core/kcSanitize/KcSanitizerPolicy.ts +274 -0
- package/src/core/kcSanitize/index.ts +5 -0
- package/src/core/userProfileApi/index.ts +1 -0
- package/src/core/userProfileApi/kcNumberUnFormat.ts +109 -0
- package/src/core/userProfileApi/userProfileApi.ts +1564 -0
- package/src/i18n/GenericI18n.tsx +82 -0
- package/src/i18n/i18nBuilder.ts +101 -0
- package/src/i18n/index.ts +3 -0
- package/src/i18n/useI18n.tsx +179 -0
- package/src/import.meta.env.BASE_URL.ts +52 -0
- package/src/kcSanitize.ts +1 -0
- package/src/tools/Array.prototype.every.ts +68 -0
- package/src/tools/DeepPartial.ts +3 -0
- package/src/tools/JSX.ts +5 -0
- package/src/tools/Object.fromEntries.ts +21 -0
- package/src/tools/ValueOf.ts +2 -0
- package/src/tools/clsx.ts +8 -0
- package/src/tools/clsx_withTransform.ts +55 -0
- package/src/tools/deepAssign.ts +74 -0
- package/src/tools/emailRegExp.ts +2 -0
- package/src/tools/extractLastParenthesisContent.ts +43 -0
- package/src/tools/structuredCloneButFunctions.ts +24 -0
- package/src/tools/useConst.ts +10 -0
- package/src/tools/useExclusiveAppInstanceEffect.ts +50 -0
- package/src/tools/useInsertLinkTags.ts +55 -0
- package/src/tools/useInsertScriptTags.ts +89 -0
- package/src/tools/useIsPasswordRevealed.ts +45 -0
- package/src/tools/useOnFirstMount.ts +26 -0
- package/src/tools/useSetClassname.ts +24 -0
- package/src/tools/vendor/dompurify.ts +3 -0
- package/src/tools/waitForElementMountedOnDom.ts +28 -0
- package/src/useKcClsx.tsx +33 -0
- package/src/useUserProfileForm.tsx +171 -0
- package/tools/Array.prototype.every.d.ts +0 -0
- package/tools/Array.prototype.every.js +59 -0
- package/tools/DeepPartial.d.ts +3 -0
- package/tools/DeepPartial.js +1 -0
- package/tools/JSX.d.ts +5 -0
- package/tools/JSX.js +1 -0
- package/tools/Object.fromEntries.d.ts +1 -0
- package/tools/Object.fromEntries.js +16 -0
- package/tools/ValueOf.d.ts +2 -0
- package/tools/ValueOf.js +1 -0
- package/tools/clsx.d.ts +3 -0
- package/tools/clsx.js +5 -0
- package/tools/clsx_withTransform.d.ts +5 -0
- package/tools/clsx_withTransform.js +42 -0
- package/tools/deepAssign.d.ts +5 -0
- package/tools/deepAssign.js +56 -0
- package/tools/emailRegExp.d.ts +1 -0
- package/tools/emailRegExp.js +1 -0
- package/tools/extractLastParenthesisContent.d.ts +6 -0
- package/tools/extractLastParenthesisContent.js +35 -0
- package/tools/structuredCloneButFunctions.d.ts +7 -0
- package/tools/structuredCloneButFunctions.js +18 -0
- package/tools/useConst.d.ts +5 -0
- package/tools/useConst.js +9 -0
- package/tools/useExclusiveAppInstanceEffect.d.ts +14 -0
- package/tools/useExclusiveAppInstanceEffect.js +29 -0
- package/tools/useInsertLinkTags.d.ts +12 -0
- package/tools/useInsertLinkTags.js +37 -0
- package/tools/useInsertScriptTags.d.ts +19 -0
- package/tools/useInsertScriptTags.js +60 -0
- package/tools/useIsPasswordRevealed.d.ts +10 -0
- package/tools/useIsPasswordRevealed.js +32 -0
- package/tools/useOnFirstMount.d.ts +5 -0
- package/tools/useOnFirstMount.js +19 -0
- package/tools/useSetClassname.d.ts +4 -0
- package/tools/useSetClassname.js +15 -0
- package/tools/vendor/dompurify.d.ts +2 -0
- package/tools/vendor/dompurify.js +2 -0
- package/tools/waitForElementMountedOnDom.d.ts +3 -0
- package/tools/waitForElementMountedOnDom.js +20 -0
- package/useKcClsx.d.ts +12 -0
- package/useKcClsx.js +20 -0
- package/useUserProfileForm.d.ts +65 -0
- package/useUserProfileForm.js +55 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { kcSanitize } from "@keycloakify/login-ui/kcSanitize";
|
|
2
|
+
import { assert } from "tsafe/assert";
|
|
3
|
+
import { useKcContext } from "../../KcContext";
|
|
4
|
+
import { useI18n } from "../../i18n";
|
|
5
|
+
import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
|
|
6
|
+
|
|
7
|
+
export function Form() {
|
|
8
|
+
const { kcContext } = useKcContext();
|
|
9
|
+
assert(kcContext.pageId === "login-reset-password.ftl");
|
|
10
|
+
|
|
11
|
+
const { kcClsx } = useKcClsx();
|
|
12
|
+
|
|
13
|
+
const { msg, msgStr } = useI18n();
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<form
|
|
17
|
+
id="kc-reset-password-form"
|
|
18
|
+
className={kcClsx("kcFormClass")}
|
|
19
|
+
action={kcContext.url.loginAction}
|
|
20
|
+
method="post"
|
|
21
|
+
>
|
|
22
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
23
|
+
<div className={kcClsx("kcLabelWrapperClass")}>
|
|
24
|
+
<label htmlFor="username" className={kcClsx("kcLabelClass")}>
|
|
25
|
+
{!kcContext.realm.loginWithEmailAllowed
|
|
26
|
+
? msg("username")
|
|
27
|
+
: !kcContext.realm.registrationEmailAsUsername
|
|
28
|
+
? msg("usernameOrEmail")
|
|
29
|
+
: msg("email")}
|
|
30
|
+
</label>
|
|
31
|
+
</div>
|
|
32
|
+
<div className={kcClsx("kcInputWrapperClass")}>
|
|
33
|
+
<input
|
|
34
|
+
type="text"
|
|
35
|
+
id="username"
|
|
36
|
+
name="username"
|
|
37
|
+
className={kcClsx("kcInputClass")}
|
|
38
|
+
autoFocus
|
|
39
|
+
defaultValue={kcContext.auth.attemptedUsername ?? ""}
|
|
40
|
+
aria-invalid={kcContext.messagesPerField.existsError("username")}
|
|
41
|
+
/>
|
|
42
|
+
{kcContext.messagesPerField.existsError("username") && (
|
|
43
|
+
<span
|
|
44
|
+
id="input-error-username"
|
|
45
|
+
className={kcClsx("kcInputErrorMessageClass")}
|
|
46
|
+
aria-live="polite"
|
|
47
|
+
dangerouslySetInnerHTML={{
|
|
48
|
+
__html: kcSanitize(kcContext.messagesPerField.get("username"))
|
|
49
|
+
}}
|
|
50
|
+
/>
|
|
51
|
+
)}
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div className={kcClsx("kcFormGroupClass", "kcFormSettingClass")}>
|
|
55
|
+
<div id="kc-form-options" className={kcClsx("kcFormOptionsClass")}>
|
|
56
|
+
<div className={kcClsx("kcFormOptionsWrapperClass")}>
|
|
57
|
+
<span>
|
|
58
|
+
<a href={kcContext.url.loginUrl}>{msg("backToLogin")}</a>
|
|
59
|
+
</span>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div id="kc-form-buttons" className={kcClsx("kcFormButtonsClass")}>
|
|
64
|
+
<input
|
|
65
|
+
className={kcClsx(
|
|
66
|
+
"kcButtonClass",
|
|
67
|
+
"kcButtonPrimaryClass",
|
|
68
|
+
"kcButtonBlockClass",
|
|
69
|
+
"kcButtonLargeClass"
|
|
70
|
+
)}
|
|
71
|
+
type="submit"
|
|
72
|
+
value={msgStr("doSubmit")}
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</form>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { assert } from "tsafe/assert";
|
|
2
|
+
import { useKcContext } from "../../KcContext";
|
|
3
|
+
import { useI18n } from "../../i18n";
|
|
4
|
+
import { Template } from "../../components/Template";
|
|
5
|
+
import { Form } from "./Form";
|
|
6
|
+
|
|
7
|
+
export function Page() {
|
|
8
|
+
const { kcContext } = useKcContext();
|
|
9
|
+
assert(kcContext.pageId === "login-reset-password.ftl");
|
|
10
|
+
|
|
11
|
+
const { msg } = useI18n();
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<Template
|
|
15
|
+
displayInfo
|
|
16
|
+
displayMessage={!kcContext.messagesPerField.existsError("username")}
|
|
17
|
+
infoNode={
|
|
18
|
+
kcContext.realm.duplicateEmailsAllowed
|
|
19
|
+
? msg("emailInstructionUsername")
|
|
20
|
+
: msg("emailInstruction")
|
|
21
|
+
}
|
|
22
|
+
headerNode={msg("emailForgotTitle")}
|
|
23
|
+
>
|
|
24
|
+
<Form />
|
|
25
|
+
</Template>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { assert } from "tsafe/assert";
|
|
2
|
+
import { kcSanitize } from "@keycloakify/login-ui/kcSanitize";
|
|
3
|
+
import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
|
|
4
|
+
import { useKcContext } from "../../KcContext";
|
|
5
|
+
import { useI18n } from "../../i18n";
|
|
6
|
+
import { Template } from "../../components/Template";
|
|
7
|
+
import { PasswordWrapper } from "../../components/PasswordWrapper";
|
|
8
|
+
import { LogoutOtherSessions } from "../../components/LogoutOtherSessions";
|
|
9
|
+
|
|
10
|
+
export function Page() {
|
|
11
|
+
const { kcContext } = useKcContext();
|
|
12
|
+
assert(kcContext.pageId === "login-update-password.ftl");
|
|
13
|
+
|
|
14
|
+
const { kcClsx } = useKcClsx();
|
|
15
|
+
|
|
16
|
+
const { msg, msgStr } = useI18n();
|
|
17
|
+
|
|
18
|
+
const { url, messagesPerField, isAppInitiatedAction } = kcContext;
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<Template
|
|
22
|
+
displayMessage={!messagesPerField.existsError("password", "password-confirm")}
|
|
23
|
+
headerNode={msg("updatePasswordTitle")}
|
|
24
|
+
>
|
|
25
|
+
<form
|
|
26
|
+
id="kc-passwd-update-form"
|
|
27
|
+
className={kcClsx("kcFormClass")}
|
|
28
|
+
action={url.loginAction}
|
|
29
|
+
method="post"
|
|
30
|
+
>
|
|
31
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
32
|
+
<div className={kcClsx("kcLabelWrapperClass")}>
|
|
33
|
+
<label htmlFor="password-new" className={kcClsx("kcLabelClass")}>
|
|
34
|
+
{msg("passwordNew")}
|
|
35
|
+
</label>
|
|
36
|
+
</div>
|
|
37
|
+
<div className={kcClsx("kcInputWrapperClass")}>
|
|
38
|
+
<PasswordWrapper passwordInputId="password-new">
|
|
39
|
+
<input
|
|
40
|
+
type="password"
|
|
41
|
+
id="password-new"
|
|
42
|
+
name="password-new"
|
|
43
|
+
className={kcClsx("kcInputClass")}
|
|
44
|
+
autoFocus
|
|
45
|
+
autoComplete="new-password"
|
|
46
|
+
aria-invalid={messagesPerField.existsError(
|
|
47
|
+
"password",
|
|
48
|
+
"password-confirm"
|
|
49
|
+
)}
|
|
50
|
+
/>
|
|
51
|
+
</PasswordWrapper>
|
|
52
|
+
|
|
53
|
+
{messagesPerField.existsError("password") && (
|
|
54
|
+
<span
|
|
55
|
+
id="input-error-password"
|
|
56
|
+
className={kcClsx("kcInputErrorMessageClass")}
|
|
57
|
+
aria-live="polite"
|
|
58
|
+
dangerouslySetInnerHTML={{
|
|
59
|
+
__html: kcSanitize(messagesPerField.get("password"))
|
|
60
|
+
}}
|
|
61
|
+
/>
|
|
62
|
+
)}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
67
|
+
<div className={kcClsx("kcLabelWrapperClass")}>
|
|
68
|
+
<label htmlFor="password-confirm" className={kcClsx("kcLabelClass")}>
|
|
69
|
+
{msg("passwordConfirm")}
|
|
70
|
+
</label>
|
|
71
|
+
</div>
|
|
72
|
+
<div className={kcClsx("kcInputWrapperClass")}>
|
|
73
|
+
<PasswordWrapper passwordInputId="password-confirm">
|
|
74
|
+
<input
|
|
75
|
+
type="password"
|
|
76
|
+
id="password-confirm"
|
|
77
|
+
name="password-confirm"
|
|
78
|
+
className={kcClsx("kcInputClass")}
|
|
79
|
+
autoFocus
|
|
80
|
+
autoComplete="new-password"
|
|
81
|
+
aria-invalid={messagesPerField.existsError(
|
|
82
|
+
"password",
|
|
83
|
+
"password-confirm"
|
|
84
|
+
)}
|
|
85
|
+
/>
|
|
86
|
+
</PasswordWrapper>
|
|
87
|
+
|
|
88
|
+
{messagesPerField.existsError("password-confirm") && (
|
|
89
|
+
<span
|
|
90
|
+
id="input-error-password-confirm"
|
|
91
|
+
className={kcClsx("kcInputErrorMessageClass")}
|
|
92
|
+
aria-live="polite"
|
|
93
|
+
dangerouslySetInnerHTML={{
|
|
94
|
+
__html: kcSanitize(messagesPerField.get("password-confirm"))
|
|
95
|
+
}}
|
|
96
|
+
/>
|
|
97
|
+
)}
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
101
|
+
<LogoutOtherSessions />
|
|
102
|
+
<div id="kc-form-buttons" className={kcClsx("kcFormButtonsClass")}>
|
|
103
|
+
<input
|
|
104
|
+
className={kcClsx(
|
|
105
|
+
"kcButtonClass",
|
|
106
|
+
"kcButtonPrimaryClass",
|
|
107
|
+
!isAppInitiatedAction && "kcButtonBlockClass",
|
|
108
|
+
"kcButtonLargeClass"
|
|
109
|
+
)}
|
|
110
|
+
type="submit"
|
|
111
|
+
value={msgStr("doSubmit")}
|
|
112
|
+
/>
|
|
113
|
+
{isAppInitiatedAction && (
|
|
114
|
+
<button
|
|
115
|
+
className={kcClsx(
|
|
116
|
+
"kcButtonClass",
|
|
117
|
+
"kcButtonDefaultClass",
|
|
118
|
+
"kcButtonLargeClass"
|
|
119
|
+
)}
|
|
120
|
+
type="submit"
|
|
121
|
+
name="cancel-aia"
|
|
122
|
+
value="true"
|
|
123
|
+
>
|
|
124
|
+
{msg("doCancel")}
|
|
125
|
+
</button>
|
|
126
|
+
)}
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</form>
|
|
130
|
+
</Template>
|
|
131
|
+
);
|
|
132
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { assert } from "tsafe/assert";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
|
|
4
|
+
import { useKcContext } from "../../KcContext";
|
|
5
|
+
import { useI18n } from "../../i18n";
|
|
6
|
+
import { Template } from "../../components/Template";
|
|
7
|
+
import { UserProfileFormFields } from "../../components/UserProfileFormFields";
|
|
8
|
+
|
|
9
|
+
export function Page() {
|
|
10
|
+
const { kcContext } = useKcContext();
|
|
11
|
+
assert(kcContext.pageId === "login-update-profile.ftl");
|
|
12
|
+
|
|
13
|
+
const { kcClsx } = useKcClsx();
|
|
14
|
+
|
|
15
|
+
const { messagesPerField, url, isAppInitiatedAction } = kcContext;
|
|
16
|
+
|
|
17
|
+
const { msg, msgStr } = useI18n();
|
|
18
|
+
|
|
19
|
+
const [isFormSubmittable, setIsFormSubmittable] = useState(false);
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<Template
|
|
23
|
+
displayRequiredFields
|
|
24
|
+
headerNode={msg("loginProfileTitle")}
|
|
25
|
+
displayMessage={messagesPerField.exists("global")}
|
|
26
|
+
>
|
|
27
|
+
<form
|
|
28
|
+
id="kc-update-profile-form"
|
|
29
|
+
className={kcClsx("kcFormClass")}
|
|
30
|
+
action={url.loginAction}
|
|
31
|
+
method="post"
|
|
32
|
+
>
|
|
33
|
+
<UserProfileFormFields onIsFormSubmittableValueChange={setIsFormSubmittable} />
|
|
34
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
35
|
+
<div id="kc-form-options" className={kcClsx("kcFormOptionsClass")}>
|
|
36
|
+
<div className={kcClsx("kcFormOptionsWrapperClass")} />
|
|
37
|
+
</div>
|
|
38
|
+
<div id="kc-form-buttons" className={kcClsx("kcFormButtonsClass")}>
|
|
39
|
+
<input
|
|
40
|
+
disabled={!isFormSubmittable}
|
|
41
|
+
className={kcClsx(
|
|
42
|
+
"kcButtonClass",
|
|
43
|
+
"kcButtonPrimaryClass",
|
|
44
|
+
!isAppInitiatedAction && "kcButtonBlockClass",
|
|
45
|
+
"kcButtonLargeClass"
|
|
46
|
+
)}
|
|
47
|
+
type="submit"
|
|
48
|
+
value={msgStr("doSubmit")}
|
|
49
|
+
/>
|
|
50
|
+
{isAppInitiatedAction && (
|
|
51
|
+
<button
|
|
52
|
+
className={kcClsx(
|
|
53
|
+
"kcButtonClass",
|
|
54
|
+
"kcButtonDefaultClass",
|
|
55
|
+
"kcButtonLargeClass"
|
|
56
|
+
)}
|
|
57
|
+
type="submit"
|
|
58
|
+
name="cancel-aia"
|
|
59
|
+
value="true"
|
|
60
|
+
formNoValidate
|
|
61
|
+
>
|
|
62
|
+
{msg("doCancel")}
|
|
63
|
+
</button>
|
|
64
|
+
)}
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</form>
|
|
68
|
+
</Template>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { assert } from "tsafe/assert";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { clsx } from "@keycloakify/login-ui/tools/clsx";
|
|
4
|
+
import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
|
|
5
|
+
import { useKcContext } from "../../KcContext";
|
|
6
|
+
import { useI18n } from "../../i18n";
|
|
7
|
+
import { Template } from "../../components/Template";
|
|
8
|
+
|
|
9
|
+
export function Page() {
|
|
10
|
+
const { kcContext } = useKcContext();
|
|
11
|
+
assert(kcContext.pageId === "login-username.ftl");
|
|
12
|
+
|
|
13
|
+
const { kcClsx } = useKcClsx();
|
|
14
|
+
|
|
15
|
+
const { social, realm, url, usernameHidden, login, registrationDisabled, messagesPerField } =
|
|
16
|
+
kcContext;
|
|
17
|
+
|
|
18
|
+
const { msg, msgStr } = useI18n();
|
|
19
|
+
|
|
20
|
+
const [isLoginButtonDisabled, setIsLoginButtonDisabled] = useState(false);
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<Template
|
|
24
|
+
displayMessage={!messagesPerField.existsError("username")}
|
|
25
|
+
displayInfo={realm.password && realm.registrationAllowed && !registrationDisabled}
|
|
26
|
+
infoNode={
|
|
27
|
+
<div id="kc-registration">
|
|
28
|
+
<span>
|
|
29
|
+
{msg("noAccount")}
|
|
30
|
+
<a tabIndex={6} href={url.registrationUrl}>
|
|
31
|
+
{msg("doRegister")}
|
|
32
|
+
</a>
|
|
33
|
+
</span>
|
|
34
|
+
</div>
|
|
35
|
+
}
|
|
36
|
+
headerNode={msg("doLogIn")}
|
|
37
|
+
socialProvidersNode={
|
|
38
|
+
<>
|
|
39
|
+
{realm.password &&
|
|
40
|
+
social?.providers !== undefined &&
|
|
41
|
+
social.providers.length !== 0 && (
|
|
42
|
+
<div
|
|
43
|
+
id="kc-social-providers"
|
|
44
|
+
className={kcClsx("kcFormSocialAccountSectionClass")}
|
|
45
|
+
>
|
|
46
|
+
<hr />
|
|
47
|
+
<h2>{msg("identity-provider-login-label")}</h2>
|
|
48
|
+
<ul
|
|
49
|
+
className={kcClsx(
|
|
50
|
+
"kcFormSocialAccountListClass",
|
|
51
|
+
social.providers.length > 3 && "kcFormSocialAccountListGridClass"
|
|
52
|
+
)}
|
|
53
|
+
>
|
|
54
|
+
{social.providers.map((...[p, , providers]) => (
|
|
55
|
+
<li key={p.alias}>
|
|
56
|
+
<a
|
|
57
|
+
id={`social-${p.alias}`}
|
|
58
|
+
className={kcClsx(
|
|
59
|
+
"kcFormSocialAccountListButtonClass",
|
|
60
|
+
providers.length > 3 && "kcFormSocialAccountGridItem"
|
|
61
|
+
)}
|
|
62
|
+
type="button"
|
|
63
|
+
href={p.loginUrl}
|
|
64
|
+
>
|
|
65
|
+
{p.iconClasses && (
|
|
66
|
+
<i
|
|
67
|
+
className={clsx(
|
|
68
|
+
kcClsx("kcCommonLogoIdP"),
|
|
69
|
+
p.iconClasses
|
|
70
|
+
)}
|
|
71
|
+
aria-hidden="true"
|
|
72
|
+
></i>
|
|
73
|
+
)}
|
|
74
|
+
<span
|
|
75
|
+
className={clsx(
|
|
76
|
+
kcClsx("kcFormSocialAccountNameClass"),
|
|
77
|
+
p.iconClasses && "kc-social-icon-text"
|
|
78
|
+
)}
|
|
79
|
+
>
|
|
80
|
+
{p.displayName}
|
|
81
|
+
</span>
|
|
82
|
+
</a>
|
|
83
|
+
</li>
|
|
84
|
+
))}
|
|
85
|
+
</ul>
|
|
86
|
+
</div>
|
|
87
|
+
)}
|
|
88
|
+
</>
|
|
89
|
+
}
|
|
90
|
+
>
|
|
91
|
+
<div id="kc-form">
|
|
92
|
+
<div id="kc-form-wrapper">
|
|
93
|
+
{realm.password && (
|
|
94
|
+
<form
|
|
95
|
+
id="kc-form-login"
|
|
96
|
+
onSubmit={() => {
|
|
97
|
+
setIsLoginButtonDisabled(true);
|
|
98
|
+
return true;
|
|
99
|
+
}}
|
|
100
|
+
action={url.loginAction}
|
|
101
|
+
method="post"
|
|
102
|
+
>
|
|
103
|
+
{!usernameHidden && (
|
|
104
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
105
|
+
<label htmlFor="username" className={kcClsx("kcLabelClass")}>
|
|
106
|
+
{!realm.loginWithEmailAllowed
|
|
107
|
+
? msg("username")
|
|
108
|
+
: !realm.registrationEmailAsUsername
|
|
109
|
+
? msg("usernameOrEmail")
|
|
110
|
+
: msg("email")}
|
|
111
|
+
</label>
|
|
112
|
+
<input
|
|
113
|
+
tabIndex={2}
|
|
114
|
+
id="username"
|
|
115
|
+
className={kcClsx("kcInputClass")}
|
|
116
|
+
name="username"
|
|
117
|
+
defaultValue={login.username ?? ""}
|
|
118
|
+
type="text"
|
|
119
|
+
autoFocus
|
|
120
|
+
autoComplete="username"
|
|
121
|
+
aria-invalid={messagesPerField.existsError("username")}
|
|
122
|
+
/>
|
|
123
|
+
{messagesPerField.existsError("username") && (
|
|
124
|
+
<span
|
|
125
|
+
id="input-error"
|
|
126
|
+
className={kcClsx("kcInputErrorMessageClass")}
|
|
127
|
+
aria-live="polite"
|
|
128
|
+
>
|
|
129
|
+
{messagesPerField.getFirstError("username")}
|
|
130
|
+
</span>
|
|
131
|
+
)}
|
|
132
|
+
</div>
|
|
133
|
+
)}
|
|
134
|
+
|
|
135
|
+
<div className={kcClsx("kcFormGroupClass", "kcFormSettingClass")}>
|
|
136
|
+
<div id="kc-form-options">
|
|
137
|
+
{realm.rememberMe && !usernameHidden && (
|
|
138
|
+
<div className="checkbox">
|
|
139
|
+
<label>
|
|
140
|
+
<input
|
|
141
|
+
tabIndex={3}
|
|
142
|
+
id="rememberMe"
|
|
143
|
+
name="rememberMe"
|
|
144
|
+
type="checkbox"
|
|
145
|
+
defaultChecked={!!login.rememberMe}
|
|
146
|
+
/>{" "}
|
|
147
|
+
{msg("rememberMe")}
|
|
148
|
+
</label>
|
|
149
|
+
</div>
|
|
150
|
+
)}
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
<div id="kc-form-buttons" className={kcClsx("kcFormGroupClass")}>
|
|
155
|
+
<input
|
|
156
|
+
tabIndex={4}
|
|
157
|
+
disabled={isLoginButtonDisabled}
|
|
158
|
+
className={kcClsx(
|
|
159
|
+
"kcButtonClass",
|
|
160
|
+
"kcButtonPrimaryClass",
|
|
161
|
+
"kcButtonBlockClass",
|
|
162
|
+
"kcButtonLargeClass"
|
|
163
|
+
)}
|
|
164
|
+
name="login"
|
|
165
|
+
id="kc-login"
|
|
166
|
+
type="submit"
|
|
167
|
+
value={msgStr("doLogIn")}
|
|
168
|
+
/>
|
|
169
|
+
</div>
|
|
170
|
+
</form>
|
|
171
|
+
)}
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</Template>
|
|
175
|
+
);
|
|
176
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { assert } from "tsafe/assert";
|
|
2
|
+
import { useKcContext } from "../../KcContext";
|
|
3
|
+
import { useI18n } from "../../i18n";
|
|
4
|
+
import { Template } from "../../components/Template";
|
|
5
|
+
|
|
6
|
+
export function Page() {
|
|
7
|
+
const { kcContext } = useKcContext();
|
|
8
|
+
assert(kcContext.pageId === "login-verify-email.ftl");
|
|
9
|
+
|
|
10
|
+
const { msg } = useI18n();
|
|
11
|
+
|
|
12
|
+
const { url, user } = kcContext;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<Template
|
|
16
|
+
displayInfo
|
|
17
|
+
headerNode={msg("emailVerifyTitle")}
|
|
18
|
+
infoNode={
|
|
19
|
+
<p className="instruction">
|
|
20
|
+
{msg("emailVerifyInstruction2")}
|
|
21
|
+
<br />
|
|
22
|
+
<a href={url.loginAction}>{msg("doClickHere")}</a>
|
|
23
|
+
|
|
24
|
+
{msg("emailVerifyInstruction3")}
|
|
25
|
+
</p>
|
|
26
|
+
}
|
|
27
|
+
>
|
|
28
|
+
<p className="instruction">{msg("emailVerifyInstruction1", user?.email ?? "")}</p>
|
|
29
|
+
</Template>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { assert } from "tsafe/assert";
|
|
2
|
+
import { useKcClsx } from "@keycloakify/login-ui/useKcClsx";
|
|
3
|
+
import { useKcContext } from "../../KcContext";
|
|
4
|
+
import { useI18n } from "../../i18n";
|
|
5
|
+
import { Template } from "../../components/Template";
|
|
6
|
+
|
|
7
|
+
export function Page() {
|
|
8
|
+
const { kcContext } = useKcContext();
|
|
9
|
+
assert(kcContext.pageId === "login-x509-info.ftl");
|
|
10
|
+
|
|
11
|
+
const { kcClsx } = useKcClsx();
|
|
12
|
+
|
|
13
|
+
const { url, x509 } = kcContext;
|
|
14
|
+
|
|
15
|
+
const { msg, msgStr } = useI18n();
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<Template headerNode={msg("doLogIn")}>
|
|
19
|
+
<form
|
|
20
|
+
id="kc-x509-login-info"
|
|
21
|
+
className={kcClsx("kcFormClass")}
|
|
22
|
+
action={url.loginAction}
|
|
23
|
+
method="post"
|
|
24
|
+
>
|
|
25
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
26
|
+
<div className={kcClsx("kcLabelWrapperClass")}>
|
|
27
|
+
<label htmlFor="certificate_subjectDN" className={kcClsx("kcLabelClass")}>
|
|
28
|
+
{msg("clientCertificate")}
|
|
29
|
+
</label>
|
|
30
|
+
</div>
|
|
31
|
+
{x509.formData.subjectDN ? (
|
|
32
|
+
<div className={kcClsx("kcLabelWrapperClass")}>
|
|
33
|
+
<label id="certificate_subjectDN" className={kcClsx("kcLabelClass")}>
|
|
34
|
+
{x509.formData.subjectDN}
|
|
35
|
+
</label>
|
|
36
|
+
</div>
|
|
37
|
+
) : (
|
|
38
|
+
<div className={kcClsx("kcLabelWrapperClass")}>
|
|
39
|
+
<label id="certificate_subjectDN" className={kcClsx("kcLabelClass")}>
|
|
40
|
+
{msg("noCertificate")}
|
|
41
|
+
</label>
|
|
42
|
+
</div>
|
|
43
|
+
)}
|
|
44
|
+
</div>
|
|
45
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
46
|
+
{x509.formData.isUserEnabled && (
|
|
47
|
+
<>
|
|
48
|
+
<div className={kcClsx("kcLabelWrapperClass")}>
|
|
49
|
+
<label htmlFor="username" className={kcClsx("kcLabelClass")}>
|
|
50
|
+
{msg("doX509Login")}
|
|
51
|
+
</label>
|
|
52
|
+
</div>
|
|
53
|
+
<div className={kcClsx("kcLabelWrapperClass")}>
|
|
54
|
+
<label id="username" className={kcClsx("kcLabelClass")}>
|
|
55
|
+
{x509.formData.username}
|
|
56
|
+
</label>
|
|
57
|
+
</div>
|
|
58
|
+
</>
|
|
59
|
+
)}
|
|
60
|
+
</div>
|
|
61
|
+
<div className={kcClsx("kcFormGroupClass")}>
|
|
62
|
+
<div id="kc-form-options" className={kcClsx("kcFormOptionsClass")}>
|
|
63
|
+
<div className={kcClsx("kcFormOptionsWrapperClass")} />
|
|
64
|
+
</div>
|
|
65
|
+
<div id="kc-form-buttons" className={kcClsx("kcFormButtonsClass")}>
|
|
66
|
+
<div className={kcClsx("kcFormButtonsWrapperClass")}>
|
|
67
|
+
<input
|
|
68
|
+
className={kcClsx(
|
|
69
|
+
"kcButtonClass",
|
|
70
|
+
"kcButtonPrimaryClass",
|
|
71
|
+
"kcButtonLargeClass"
|
|
72
|
+
)}
|
|
73
|
+
name="login"
|
|
74
|
+
id="kc-login"
|
|
75
|
+
type="submit"
|
|
76
|
+
value={msgStr("doContinue")}
|
|
77
|
+
/>
|
|
78
|
+
{x509.formData.isUserEnabled && (
|
|
79
|
+
<input
|
|
80
|
+
className={kcClsx(
|
|
81
|
+
"kcButtonClass",
|
|
82
|
+
"kcButtonDefaultClass",
|
|
83
|
+
"kcButtonLargeClass"
|
|
84
|
+
)}
|
|
85
|
+
name="cancel"
|
|
86
|
+
id="kc-cancel"
|
|
87
|
+
type="submit"
|
|
88
|
+
value={msgStr("doIgnore")}
|
|
89
|
+
/>
|
|
90
|
+
)}
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</form>
|
|
95
|
+
</Template>
|
|
96
|
+
);
|
|
97
|
+
}
|