@andreyyolkin/keycloakify-vue 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/keycloakify-vue/account/DefaultPage.vue +55 -0
- package/keycloakify-vue/account/DefaultPage.vue.d.ts +14 -0
- package/keycloakify-vue/account/KcContext/index.d.ts +1 -0
- package/keycloakify-vue/account/KcContext/index.js +0 -0
- package/keycloakify-vue/account/Template.useInitialize.d.ts +13 -0
- package/keycloakify-vue/account/Template.useInitialize.js +20 -0
- package/keycloakify-vue/account/Template.vue +178 -0
- package/keycloakify-vue/account/Template.vue.d.ts +17 -0
- package/keycloakify-vue/account/TemplateProps.d.ts +9 -0
- package/keycloakify-vue/account/TemplateProps.js +0 -0
- package/keycloakify-vue/account/i18n/i18n.d.ts +11 -0
- package/keycloakify-vue/account/i18n/i18n.js +0 -0
- package/keycloakify-vue/account/i18n/i18nBuilder.d.ts +18 -0
- package/keycloakify-vue/account/i18n/i18nBuilder.js +29 -0
- package/keycloakify-vue/account/i18n/index.d.ts +1 -0
- package/keycloakify-vue/account/i18n/index.js +1 -0
- package/keycloakify-vue/account/i18n/useI18n.d.ts +28 -0
- package/keycloakify-vue/account/i18n/useI18n.js +67 -0
- package/keycloakify-vue/account/index.d.ts +4 -0
- package/keycloakify-vue/account/index.js +8 -0
- package/keycloakify-vue/account/pages/Account.vue +182 -0
- package/keycloakify-vue/account/pages/Account.vue.d.ts +9 -0
- package/keycloakify-vue/account/pages/Applications.vue +192 -0
- package/keycloakify-vue/account/pages/Applications.vue.d.ts +9 -0
- package/keycloakify-vue/account/pages/FederatedIdentity.vue +123 -0
- package/keycloakify-vue/account/pages/FederatedIdentity.vue.d.ts +9 -0
- package/keycloakify-vue/account/pages/Log.vue +64 -0
- package/keycloakify-vue/account/pages/Log.vue.d.ts +9 -0
- package/keycloakify-vue/account/pages/NotImplemented.vue +24 -0
- package/keycloakify-vue/account/pages/NotImplemented.vue.d.ts +6 -0
- package/keycloakify-vue/account/pages/PageProps.d.ts +9 -0
- package/keycloakify-vue/account/pages/PageProps.js +0 -0
- package/keycloakify-vue/account/pages/Password.vue +247 -0
- package/keycloakify-vue/account/pages/Password.vue.d.ts +9 -0
- package/keycloakify-vue/account/pages/Sessions.vue +84 -0
- package/keycloakify-vue/account/pages/Sessions.vue.d.ts +9 -0
- package/keycloakify-vue/account/pages/Totp.vue +308 -0
- package/keycloakify-vue/account/pages/Totp.vue.d.ts +9 -0
- package/keycloakify-vue/bin/index.js +14 -0
- package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcContext.js +0 -0
- package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPage.vue +23 -0
- package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPageStory.js +18 -0
- package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPageStory.vue +13 -0
- package/keycloakify-vue/bin/initialize-account-theme/boilerplate/i18n.js +5 -0
- package/keycloakify-vue/login/DefaultPage.vue +167 -0
- package/keycloakify-vue/login/DefaultPage.vue.d.ts +20 -0
- package/keycloakify-vue/login/Template.useInitialize.d.ts +18 -0
- package/keycloakify-vue/login/Template.useInitialize.js +49 -0
- package/keycloakify-vue/login/Template.vue +239 -0
- package/keycloakify-vue/login/Template.vue.d.ts +26 -0
- package/keycloakify-vue/login/TemplateProps.d.ts +14 -0
- package/keycloakify-vue/login/TemplateProps.js +0 -0
- package/keycloakify-vue/login/components/AddRemoveButtonsMultiValuedAttribute.vue +59 -0
- package/keycloakify-vue/login/components/AddRemoveButtonsMultiValuedAttribute.vue.d.ts +15 -0
- package/keycloakify-vue/login/components/FieldErrors.vue +35 -0
- package/keycloakify-vue/login/components/FieldErrors.vue.d.ts +14 -0
- package/keycloakify-vue/login/components/GroupLabel.vue +68 -0
- package/keycloakify-vue/login/components/GroupLabel.vue.d.ts +14 -0
- package/keycloakify-vue/login/components/InputFieldByType.vue +94 -0
- package/keycloakify-vue/login/components/InputFieldByType.vue.d.ts +4 -0
- package/keycloakify-vue/login/components/InputFieldByTypeProps.d.ts +12 -0
- package/keycloakify-vue/login/components/InputFieldByTypeProps.js +0 -0
- package/keycloakify-vue/login/components/InputTag.vue +105 -0
- package/keycloakify-vue/login/components/InputTag.vue.d.ts +7 -0
- package/keycloakify-vue/login/components/InputTagSelects.vue +108 -0
- package/keycloakify-vue/login/components/InputTagSelects.vue.d.ts +4 -0
- package/keycloakify-vue/login/components/LogoutOtherSessions.vue +27 -0
- package/keycloakify-vue/login/components/LogoutOtherSessions.vue.d.ts +9 -0
- package/keycloakify-vue/login/components/PasswordWrapper.vue +42 -0
- package/keycloakify-vue/login/components/PasswordWrapper.vue.d.ts +20 -0
- package/keycloakify-vue/login/components/SelectTag.vue +74 -0
- package/keycloakify-vue/login/components/SelectTag.vue.d.ts +4 -0
- package/keycloakify-vue/login/components/TermsAcceptance.vue +59 -0
- package/keycloakify-vue/login/components/TermsAcceptance.vue.d.ts +13 -0
- package/keycloakify-vue/login/components/TextareaTag.vue +47 -0
- package/keycloakify-vue/login/components/TextareaTag.vue.d.ts +4 -0
- package/keycloakify-vue/login/components/UserProfileFormFields.vue +119 -0
- package/keycloakify-vue/login/components/UserProfileFormFields.vue.d.ts +33 -0
- package/keycloakify-vue/login/components/UserProfileFormFieldsProps.d.ts +22 -0
- package/keycloakify-vue/login/components/UserProfileFormFieldsProps.js +0 -0
- package/keycloakify-vue/login/components/inputLabel.d.ts +4 -0
- package/keycloakify-vue/login/components/inputLabel.js +15 -0
- package/keycloakify-vue/login/i18n/i18n.d.ts +11 -0
- package/keycloakify-vue/login/i18n/i18n.js +0 -0
- package/keycloakify-vue/login/i18n/i18nBuilder.d.ts +18 -0
- package/keycloakify-vue/login/i18n/i18nBuilder.js +29 -0
- package/keycloakify-vue/login/i18n/index.d.ts +1 -0
- package/keycloakify-vue/login/i18n/index.js +1 -0
- package/keycloakify-vue/login/i18n/useI18n.d.ts +28 -0
- package/keycloakify-vue/login/i18n/useI18n.js +67 -0
- package/keycloakify-vue/login/index.d.ts +5 -0
- package/keycloakify-vue/login/index.js +10 -0
- package/keycloakify-vue/login/lib/useUserProfileForm.d.ts +53 -0
- package/keycloakify-vue/login/lib/useUserProfileForm.js +50 -0
- package/keycloakify-vue/login/pages/Code.vue +54 -0
- package/keycloakify-vue/login/pages/Code.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/DeleteAccountConfirm.vue +69 -0
- package/keycloakify-vue/login/pages/DeleteAccountConfirm.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/DeleteCredential.vue +56 -0
- package/keycloakify-vue/login/pages/DeleteCredential.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/Error.vue +41 -0
- package/keycloakify-vue/login/pages/Error.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/FrontchannelLogout.vue +67 -0
- package/keycloakify-vue/login/pages/FrontchannelLogout.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/IdpReviewUserProfile.vue +77 -0
- package/keycloakify-vue/login/pages/IdpReviewUserProfile.vue.d.ts +14 -0
- package/keycloakify-vue/login/pages/Info.vue +61 -0
- package/keycloakify-vue/login/pages/Info.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LinkIdpAction.vue +66 -0
- package/keycloakify-vue/login/pages/LinkIdpAction.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/Login.vue +230 -0
- package/keycloakify-vue/login/pages/Login.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginConfigTotp.vue +233 -0
- package/keycloakify-vue/login/pages/LoginConfigTotp.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginIdpLinkConfirm.vue +57 -0
- package/keycloakify-vue/login/pages/LoginIdpLinkConfirm.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginIdpLinkConfirmOverride.vue +56 -0
- package/keycloakify-vue/login/pages/LoginIdpLinkConfirmOverride.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginIdpLinkEmail.vue +52 -0
- package/keycloakify-vue/login/pages/LoginIdpLinkEmail.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginOauth2DeviceVerifyUserCode.vue +82 -0
- package/keycloakify-vue/login/pages/LoginOauth2DeviceVerifyUserCode.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginOauthGrant.vue +131 -0
- package/keycloakify-vue/login/pages/LoginOauthGrant.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginOtp.vue +135 -0
- package/keycloakify-vue/login/pages/LoginOtp.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginPageExpired.vue +44 -0
- package/keycloakify-vue/login/pages/LoginPageExpired.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.useScript.d.ts +21 -0
- package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.useScript.js +74 -0
- package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.vue +255 -0
- package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginPassword.useScript.d.ts +23 -0
- package/keycloakify-vue/login/pages/LoginPassword.useScript.js +64 -0
- package/keycloakify-vue/login/pages/LoginPassword.vue +191 -0
- package/keycloakify-vue/login/pages/LoginPassword.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.useScript.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.useScript.js +139 -0
- package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.vue +183 -0
- package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeInput.vue +90 -0
- package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeInput.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginResetOtp.vue +88 -0
- package/keycloakify-vue/login/pages/LoginResetOtp.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginResetPassword.vue +114 -0
- package/keycloakify-vue/login/pages/LoginResetPassword.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginUpdatePassword.vue +145 -0
- package/keycloakify-vue/login/pages/LoginUpdatePassword.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginUpdateProfile.vue +94 -0
- package/keycloakify-vue/login/pages/LoginUpdateProfile.vue.d.ts +14 -0
- package/keycloakify-vue/login/pages/LoginUsername.useScript.d.ts +23 -0
- package/keycloakify-vue/login/pages/LoginUsername.useScript.js +64 -0
- package/keycloakify-vue/login/pages/LoginUsername.vue +263 -0
- package/keycloakify-vue/login/pages/LoginUsername.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginVerifyEmail.vue +39 -0
- package/keycloakify-vue/login/pages/LoginVerifyEmail.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LoginX509Info.vue +120 -0
- package/keycloakify-vue/login/pages/LoginX509Info.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/LogoutConfirm.vue +73 -0
- package/keycloakify-vue/login/pages/LogoutConfirm.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/NotImplemented.vue +12 -0
- package/keycloakify-vue/login/pages/NotImplemented.vue.d.ts +6 -0
- package/keycloakify-vue/login/pages/PageProps.d.ts +9 -0
- package/keycloakify-vue/login/pages/PageProps.js +0 -0
- package/keycloakify-vue/login/pages/Register.vue +158 -0
- package/keycloakify-vue/login/pages/Register.vue.d.ts +14 -0
- package/keycloakify-vue/login/pages/SamlPostForm.vue +75 -0
- package/keycloakify-vue/login/pages/SamlPostForm.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/SelectAuthenticator.vue +65 -0
- package/keycloakify-vue/login/pages/SelectAuthenticator.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/SelectOrganization.vue +89 -0
- package/keycloakify-vue/login/pages/SelectOrganization.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/Terms.vue +56 -0
- package/keycloakify-vue/login/pages/Terms.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/UpdateEmail.vue +100 -0
- package/keycloakify-vue/login/pages/UpdateEmail.vue.d.ts +14 -0
- package/keycloakify-vue/login/pages/WebauthnAuthenticate.useScript.d.ts +22 -0
- package/keycloakify-vue/login/pages/WebauthnAuthenticate.useScript.js +53 -0
- package/keycloakify-vue/login/pages/WebauthnAuthenticate.vue +186 -0
- package/keycloakify-vue/login/pages/WebauthnAuthenticate.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/WebauthnError.vue +84 -0
- package/keycloakify-vue/login/pages/WebauthnError.vue.d.ts +9 -0
- package/keycloakify-vue/login/pages/WebauthnRegister.useScript.d.ts +28 -0
- package/keycloakify-vue/login/pages/WebauthnRegister.useScript.js +75 -0
- package/keycloakify-vue/login/pages/WebauthnRegister.vue +105 -0
- package/keycloakify-vue/login/pages/WebauthnRegister.vue.d.ts +9 -0
- package/keycloakify-vue/tools/useInsertLinkTags.d.ts +12 -0
- package/keycloakify-vue/tools/useInsertLinkTags.js +47 -0
- package/keycloakify-vue/tools/useInsertScriptTags.d.ts +19 -0
- package/keycloakify-vue/tools/useInsertScriptTags.js +56 -0
- package/keycloakify-vue/tools/useSetClassName.d.ts +4 -0
- package/keycloakify-vue/tools/useSetClassName.js +16 -0
- package/package.json +553 -0
- package/src/account/DefaultPage.vue +55 -0
- package/src/account/KcContext/index.ts +1 -0
- package/src/account/Template.useInitialize.ts +34 -0
- package/src/account/Template.vue +178 -0
- package/src/account/TemplateProps.ts +11 -0
- package/src/account/i18n/i18n.ts +16 -0
- package/src/account/i18n/i18nBuilder.ts +100 -0
- package/src/account/i18n/index.ts +1 -0
- package/src/account/i18n/useI18n.ts +128 -0
- package/src/account/index.ts +4 -0
- package/src/account/pages/Account.vue +182 -0
- package/src/account/pages/Applications.vue +192 -0
- package/src/account/pages/FederatedIdentity.vue +123 -0
- package/src/account/pages/Log.vue +64 -0
- package/src/account/pages/NotImplemented.vue +24 -0
- package/src/account/pages/PageProps.ts +10 -0
- package/src/account/pages/Password.vue +247 -0
- package/src/account/pages/Sessions.vue +84 -0
- package/src/account/pages/Totp.vue +308 -0
- package/src/bin/initialize-account-theme/boilerplate/KcContext.ts +11 -0
- package/src/bin/initialize-account-theme/boilerplate/KcPage.vue +23 -0
- package/src/bin/initialize-account-theme/boilerplate/KcPageStory.ts +22 -0
- package/src/bin/initialize-account-theme/boilerplate/KcPageStory.vue +13 -0
- package/src/bin/initialize-account-theme/boilerplate/i18n.ts +8 -0
- package/src/login/DefaultPage.vue +167 -0
- package/src/login/Template.useInitialize.ts +71 -0
- package/src/login/Template.vue +239 -0
- package/src/login/TemplateProps.ts +17 -0
- package/src/login/components/AddRemoveButtonsMultiValuedAttribute.vue +59 -0
- package/src/login/components/FieldErrors.vue +35 -0
- package/src/login/components/GroupLabel.vue +68 -0
- package/src/login/components/InputFieldByType.vue +94 -0
- package/src/login/components/InputFieldByTypeProps.ts +13 -0
- package/src/login/components/InputTag.vue +105 -0
- package/src/login/components/InputTagSelects.vue +108 -0
- package/src/login/components/LogoutOtherSessions.vue +27 -0
- package/src/login/components/PasswordWrapper.vue +42 -0
- package/src/login/components/SelectTag.vue +74 -0
- package/src/login/components/TermsAcceptance.vue +59 -0
- package/src/login/components/TextareaTag.vue +47 -0
- package/src/login/components/UserProfileFormFields.vue +119 -0
- package/src/login/components/UserProfileFormFieldsProps.ts +22 -0
- package/src/login/components/inputLabel.ts +18 -0
- package/src/login/i18n/i18n.ts +16 -0
- package/src/login/i18n/i18nBuilder.ts +100 -0
- package/src/login/i18n/index.ts +1 -0
- package/src/login/i18n/useI18n.ts +128 -0
- package/src/login/index.ts +5 -0
- package/src/login/lib/useUserProfileForm.ts +121 -0
- package/src/login/pages/Code.vue +54 -0
- package/src/login/pages/DeleteAccountConfirm.vue +69 -0
- package/src/login/pages/DeleteCredential.vue +56 -0
- package/src/login/pages/Error.vue +41 -0
- package/src/login/pages/FrontchannelLogout.vue +67 -0
- package/src/login/pages/IdpReviewUserProfile.vue +77 -0
- package/src/login/pages/Info.vue +61 -0
- package/src/login/pages/LinkIdpAction.vue +66 -0
- package/src/login/pages/Login.vue +230 -0
- package/src/login/pages/LoginConfigTotp.vue +233 -0
- package/src/login/pages/LoginIdpLinkConfirm.vue +57 -0
- package/src/login/pages/LoginIdpLinkConfirmOverride.vue +56 -0
- package/src/login/pages/LoginIdpLinkEmail.vue +52 -0
- package/src/login/pages/LoginOauth2DeviceVerifyUserCode.vue +82 -0
- package/src/login/pages/LoginOauthGrant.vue +131 -0
- package/src/login/pages/LoginOtp.vue +135 -0
- package/src/login/pages/LoginPageExpired.vue +44 -0
- package/src/login/pages/LoginPasskeysConditionalAuthenticate.useScript.ts +96 -0
- package/src/login/pages/LoginPasskeysConditionalAuthenticate.vue +255 -0
- package/src/login/pages/LoginPassword.useScript.ts +88 -0
- package/src/login/pages/LoginPassword.vue +191 -0
- package/src/login/pages/LoginRecoveryAuthnCodeConfig.useScript.ts +152 -0
- package/src/login/pages/LoginRecoveryAuthnCodeConfig.vue +183 -0
- package/src/login/pages/LoginRecoveryAuthnCodeInput.vue +90 -0
- package/src/login/pages/LoginResetOtp.vue +88 -0
- package/src/login/pages/LoginResetPassword.vue +114 -0
- package/src/login/pages/LoginUpdatePassword.vue +145 -0
- package/src/login/pages/LoginUpdateProfile.vue +94 -0
- package/src/login/pages/LoginUsername.useScript.ts +88 -0
- package/src/login/pages/LoginUsername.vue +263 -0
- package/src/login/pages/LoginVerifyEmail.vue +39 -0
- package/src/login/pages/LoginX509Info.vue +120 -0
- package/src/login/pages/LogoutConfirm.vue +73 -0
- package/src/login/pages/NotImplemented.vue +12 -0
- package/src/login/pages/PageProps.ts +10 -0
- package/src/login/pages/Register.vue +158 -0
- package/src/login/pages/SamlPostForm.vue +75 -0
- package/src/login/pages/SelectAuthenticator.vue +65 -0
- package/src/login/pages/SelectOrganization.vue +89 -0
- package/src/login/pages/Terms.vue +56 -0
- package/src/login/pages/UpdateEmail.vue +100 -0
- package/src/login/pages/WebauthnAuthenticate.useScript.ts +75 -0
- package/src/login/pages/WebauthnAuthenticate.vue +186 -0
- package/src/login/pages/WebauthnError.vue +84 -0
- package/src/login/pages/WebauthnRegister.useScript.ts +109 -0
- package/src/login/pages/WebauthnRegister.vue +105 -0
- package/src/tools/useInsertLinkTags.ts +62 -0
- package/src/tools/useInsertScriptTags.ts +75 -0
- package/src/tools/useSetClassName.ts +15 -0
- package/stories/account/KcContext.ts +13 -0
- package/stories/account/KcContextMock.ts +26 -0
- package/stories/account/KcPage.vue +26 -0
- package/stories/account/KcPageStory.vue +13 -0
- package/stories/account/i18n.ts +7 -0
- package/stories/account/pages/Account.stories.ts +22 -0
- package/stories/account/pages/Applications.stories.ts +70 -0
- package/stories/account/pages/FederatedIdentity.stories.ts +64 -0
- package/stories/account/pages/Log.stories.ts +42 -0
- package/stories/account/pages/Password.stories.ts +22 -0
- package/stories/account/pages/Sessions.stories.ts +41 -0
- package/stories/account/pages/Totp.stories.ts +33 -0
- package/stories/kc.gen.ts +17 -0
- package/stories/login/KcContext.ts +13 -0
- package/stories/login/KcContextMock.ts +26 -0
- package/stories/login/KcPage.vue +28 -0
- package/stories/login/KcPageStory.vue +13 -0
- package/stories/login/i18n.ts +7 -0
- package/stories/login/pages/Code.stories.ts +50 -0
- package/stories/login/pages/DeleteAccountConfirm.stories.ts +32 -0
- package/stories/login/pages/DeleteCredential.stories.ts +23 -0
- package/stories/login/pages/Error.stories.ts +53 -0
- package/stories/login/pages/FrontchannelLogout.stories.ts +24 -0
- package/stories/login/pages/IdpReviewUserProfile.stories.ts +56 -0
- package/stories/login/pages/Info.stories.ts +52 -0
- package/stories/login/pages/LinkIdpAction.stories.ts +30 -0
- package/stories/login/pages/Login.stories.ts +76 -0
- package/stories/login/pages/LoginConfigTotp.stories.ts +53 -0
- package/stories/login/pages/LoginIdpLinkConfirm.stories.ts +34 -0
- package/stories/login/pages/LoginIdpLinkConfirmOverride.stories.ts +14 -0
- package/stories/login/pages/LoginIdpLinkEmail.stories.ts +60 -0
- package/stories/login/pages/LoginOauth2DeviceVerifyUserCode.stories.ts +42 -0
- package/stories/login/pages/LoginOauthGrant.stories.ts +95 -0
- package/stories/login/pages/LoginOtp.stories.ts +92 -0
- package/stories/login/pages/LoginPageExpired.stories.ts +29 -0
- package/stories/login/pages/LoginPasskeysConditionalAuthenticate.stories.ts +14 -0
- package/stories/login/pages/LoginPassword.stories.ts +49 -0
- package/stories/login/pages/LoginRecoveryAuthnCodeConfig.stories.ts +28 -0
- package/stories/login/pages/LoginRecoveryAuthnCodeInput.stories.ts +14 -0
- package/stories/login/pages/LoginResetOtp.stories.ts +69 -0
- package/stories/login/pages/LoginResetPassword.stories.ts +48 -0
- package/stories/login/pages/LoginUpdatePassword.stories.ts +52 -0
- package/stories/login/pages/LoginUpdateProfile.stories.ts +29 -0
- package/stories/login/pages/LoginUsername.stories.ts +25 -0
- package/stories/login/pages/LoginVerifyEmail.stories.ts +63 -0
- package/stories/login/pages/LoginX509Info.stories.ts +29 -0
- package/stories/login/pages/LogoutConfirm.stories.ts +35 -0
- package/stories/login/pages/Register.stories.ts +76 -0
- package/stories/login/pages/SamlPostForm.stories.ts +14 -0
- package/stories/login/pages/SelectAuthenticator.stories.ts +89 -0
- package/stories/login/pages/SelectOrganization.stories.ts +63 -0
- package/stories/login/pages/Terms.stories.ts +78 -0
- package/stories/login/pages/UpdateEmail.stories.ts +28 -0
- package/stories/login/pages/WebauthnAuthenticate.stories.ts +147 -0
- package/stories/login/pages/WebauthnError.stories.ts +77 -0
- package/stories/login/pages/WebauthnRegister.stories.ts +54 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
LanguageTag as LanguageTag_defaultSet,
|
|
3
|
+
MessageKey as MessageKey_defaultSet,
|
|
4
|
+
} from 'keycloakify/login/i18n/messages_defaultSet/types';
|
|
5
|
+
import { type ReturnTypeOfCreateUseI18n, createUseI18n } from './useI18n';
|
|
6
|
+
|
|
7
|
+
export type I18nBuilder<
|
|
8
|
+
ThemeName extends string = never,
|
|
9
|
+
MessageKey_themeDefined extends string = never,
|
|
10
|
+
LanguageTag_notInDefaultSet extends string = never,
|
|
11
|
+
ExcludedMethod extends 'withThemeName' | 'withExtraLanguages' | 'withCustomTranslations' = never,
|
|
12
|
+
> = Omit<
|
|
13
|
+
{
|
|
14
|
+
withThemeName: <ThemeName extends string>() => I18nBuilder<
|
|
15
|
+
ThemeName,
|
|
16
|
+
MessageKey_themeDefined,
|
|
17
|
+
LanguageTag_notInDefaultSet,
|
|
18
|
+
ExcludedMethod | 'withThemeName'
|
|
19
|
+
>;
|
|
20
|
+
withExtraLanguages: <LanguageTag_notInDefaultSet extends string>(extraLanguageTranslations: {
|
|
21
|
+
[LanguageTag in LanguageTag_notInDefaultSet]: {
|
|
22
|
+
label: string;
|
|
23
|
+
getMessages: () => Promise<{
|
|
24
|
+
default: Record<MessageKey_defaultSet, string>;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
}) => I18nBuilder<
|
|
28
|
+
ThemeName,
|
|
29
|
+
MessageKey_themeDefined,
|
|
30
|
+
LanguageTag_notInDefaultSet,
|
|
31
|
+
ExcludedMethod | 'withExtraLanguages'
|
|
32
|
+
>;
|
|
33
|
+
withCustomTranslations: <MessageKey_themeDefined extends string>(
|
|
34
|
+
messagesByLanguageTag_themeDefined: Partial<{
|
|
35
|
+
[LanguageTag in LanguageTag_defaultSet | LanguageTag_notInDefaultSet]: Record<
|
|
36
|
+
MessageKey_themeDefined,
|
|
37
|
+
string | Record<ThemeName, string>
|
|
38
|
+
>;
|
|
39
|
+
}>,
|
|
40
|
+
) => I18nBuilder<
|
|
41
|
+
ThemeName,
|
|
42
|
+
MessageKey_themeDefined,
|
|
43
|
+
LanguageTag_notInDefaultSet,
|
|
44
|
+
ExcludedMethod | 'withCustomTranslations'
|
|
45
|
+
>;
|
|
46
|
+
build: () => ReturnTypeOfCreateUseI18n<MessageKey_themeDefined, LanguageTag_notInDefaultSet>;
|
|
47
|
+
},
|
|
48
|
+
ExcludedMethod
|
|
49
|
+
>;
|
|
50
|
+
|
|
51
|
+
function createI18nBuilder<
|
|
52
|
+
ThemeName extends string = never,
|
|
53
|
+
MessageKey_themeDefined extends string = never,
|
|
54
|
+
LanguageTag_notInDefaultSet extends string = never,
|
|
55
|
+
>(params: {
|
|
56
|
+
extraLanguageTranslations: {
|
|
57
|
+
[LanguageTag in LanguageTag_notInDefaultSet]: {
|
|
58
|
+
label: string;
|
|
59
|
+
getMessages: () => Promise<{
|
|
60
|
+
default: Record<MessageKey_defaultSet, string>;
|
|
61
|
+
}>;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
messagesByLanguageTag_themeDefined: Partial<{
|
|
65
|
+
[LanguageTag in LanguageTag_defaultSet | LanguageTag_notInDefaultSet]: Record<
|
|
66
|
+
MessageKey_themeDefined,
|
|
67
|
+
string | Record<ThemeName, string>
|
|
68
|
+
>;
|
|
69
|
+
}>;
|
|
70
|
+
}): I18nBuilder<ThemeName, MessageKey_themeDefined, LanguageTag_notInDefaultSet> {
|
|
71
|
+
const i18nBuilder: I18nBuilder<ThemeName, MessageKey_themeDefined, LanguageTag_notInDefaultSet> = {
|
|
72
|
+
withThemeName: () =>
|
|
73
|
+
createI18nBuilder({
|
|
74
|
+
extraLanguageTranslations: params.extraLanguageTranslations,
|
|
75
|
+
messagesByLanguageTag_themeDefined: params.messagesByLanguageTag_themeDefined as any,
|
|
76
|
+
}),
|
|
77
|
+
withExtraLanguages: (extraLanguageTranslations) =>
|
|
78
|
+
createI18nBuilder({
|
|
79
|
+
extraLanguageTranslations,
|
|
80
|
+
messagesByLanguageTag_themeDefined: params.messagesByLanguageTag_themeDefined as any,
|
|
81
|
+
}),
|
|
82
|
+
withCustomTranslations: (messagesByLanguageTag_themeDefined) =>
|
|
83
|
+
createI18nBuilder({
|
|
84
|
+
extraLanguageTranslations: params.extraLanguageTranslations,
|
|
85
|
+
messagesByLanguageTag_themeDefined,
|
|
86
|
+
}),
|
|
87
|
+
build: () =>
|
|
88
|
+
createUseI18n({
|
|
89
|
+
extraLanguageTranslations: params.extraLanguageTranslations,
|
|
90
|
+
messagesByLanguageTag_themeDefined: params.messagesByLanguageTag_themeDefined,
|
|
91
|
+
}),
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
return i18nBuilder;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const i18nBuilder = createI18nBuilder({
|
|
98
|
+
extraLanguageTranslations: {},
|
|
99
|
+
messagesByLanguageTag_themeDefined: {},
|
|
100
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './i18n';
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type LanguageTag as LanguageTag_defaultSet,
|
|
3
|
+
type MessageKey as MessageKey_defaultSet,
|
|
4
|
+
} from 'keycloakify/login/i18n/messages_defaultSet/types';
|
|
5
|
+
import type { GenericI18n_noJsx } from 'keycloakify/login/i18n/noJsx/GenericI18n_noJsx';
|
|
6
|
+
import { createGetI18n, type KcContextLike } from 'keycloakify/login/i18n/noJsx/getI18n';
|
|
7
|
+
import { kcSanitize } from 'keycloakify/lib/kcSanitize';
|
|
8
|
+
import { Reflect } from 'tsafe/Reflect';
|
|
9
|
+
import { getCurrentInstance, h, onMounted, onUnmounted, ref, type Ref, type VNode } from 'vue';
|
|
10
|
+
import type { GenericI18n_vue } from './i18n';
|
|
11
|
+
|
|
12
|
+
export type ReturnTypeOfCreateUseI18n<
|
|
13
|
+
MessageKey_themeDefined extends string,
|
|
14
|
+
LanguageTag_notInDefaultSet extends string,
|
|
15
|
+
> = {
|
|
16
|
+
useI18n: (params: { kcContext: KcContextLike }) => {
|
|
17
|
+
i18n: Ref<
|
|
18
|
+
GenericI18n_vue<
|
|
19
|
+
MessageKey_defaultSet | MessageKey_themeDefined,
|
|
20
|
+
LanguageTag_defaultSet | LanguageTag_notInDefaultSet
|
|
21
|
+
>
|
|
22
|
+
>;
|
|
23
|
+
};
|
|
24
|
+
ofTypeI18n: GenericI18n_vue<
|
|
25
|
+
MessageKey_defaultSet | MessageKey_themeDefined,
|
|
26
|
+
LanguageTag_defaultSet | LanguageTag_notInDefaultSet
|
|
27
|
+
>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type { KcContextLike };
|
|
31
|
+
|
|
32
|
+
export function createUseI18n<
|
|
33
|
+
ThemeName extends string = string,
|
|
34
|
+
MessageKey_themeDefined extends string = never,
|
|
35
|
+
LanguageTag_notInDefaultSet extends string = never,
|
|
36
|
+
>(params: {
|
|
37
|
+
extraLanguageTranslations: {
|
|
38
|
+
[languageTag in LanguageTag_notInDefaultSet]: {
|
|
39
|
+
label: string;
|
|
40
|
+
getMessages: () => Promise<{
|
|
41
|
+
default: Record<MessageKey_defaultSet, string>;
|
|
42
|
+
}>;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
messagesByLanguageTag_themeDefined: Partial<{
|
|
46
|
+
[languageTag in LanguageTag_defaultSet | LanguageTag_notInDefaultSet]: {
|
|
47
|
+
[key in MessageKey_themeDefined]: string | Record<ThemeName, string>;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
}): ReturnTypeOfCreateUseI18n<MessageKey_themeDefined, LanguageTag_notInDefaultSet> {
|
|
51
|
+
const { extraLanguageTranslations, messagesByLanguageTag_themeDefined } = params;
|
|
52
|
+
|
|
53
|
+
type LanguageTag = LanguageTag_defaultSet | LanguageTag_notInDefaultSet;
|
|
54
|
+
type MessageKey = MessageKey_defaultSet | MessageKey_themeDefined;
|
|
55
|
+
type I18n = GenericI18n_vue<MessageKey, LanguageTag>;
|
|
56
|
+
|
|
57
|
+
const cache = new WeakMap<GenericI18n_noJsx<MessageKey, LanguageTag>, I18n>();
|
|
58
|
+
|
|
59
|
+
function renderHtmlString(htmlString: string, msgKey: string): VNode {
|
|
60
|
+
const hasBlockLevelTag =
|
|
61
|
+
htmlString.includes('<') &&
|
|
62
|
+
htmlString.includes('>') &&
|
|
63
|
+
['div', 'section', 'article', 'ul', 'ol'].some((tagName) => htmlString.includes(`<${tagName}`));
|
|
64
|
+
const elementName = hasBlockLevelTag ? 'div' : 'span';
|
|
65
|
+
return h(elementName, {
|
|
66
|
+
'data-kc-msg': msgKey,
|
|
67
|
+
innerHTML: kcSanitize(htmlString),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function withVue(i18n_noJsx: GenericI18n_noJsx<MessageKey, LanguageTag>): I18n {
|
|
72
|
+
const cached = cache.get(i18n_noJsx);
|
|
73
|
+
if (cached !== undefined) {
|
|
74
|
+
return cached;
|
|
75
|
+
}
|
|
76
|
+
const i18n: I18n = {
|
|
77
|
+
...i18n_noJsx,
|
|
78
|
+
msg: (msgKey, ...args) => renderHtmlString(i18n_noJsx.msgStr(msgKey, ...args), msgKey),
|
|
79
|
+
advancedMsg: (msgKey, ...args) => renderHtmlString(i18n_noJsx.advancedMsgStr(msgKey, ...args), msgKey),
|
|
80
|
+
};
|
|
81
|
+
cache.set(i18n_noJsx, i18n);
|
|
82
|
+
return i18n;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Make block-level kc messages render inline (mirrors the Svelte port).
|
|
86
|
+
if (typeof document !== 'undefined' && document.querySelector('style[data-kc-i18n]') === null) {
|
|
87
|
+
const styleElement = document.createElement('style');
|
|
88
|
+
styleElement.setAttribute('data-kc-i18n', '');
|
|
89
|
+
styleElement.textContent = `div[data-kc-msg] { display: inline-block; }`;
|
|
90
|
+
document.head.prepend(styleElement);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const { getI18n } = createGetI18n({
|
|
94
|
+
extraLanguageTranslations,
|
|
95
|
+
messagesByLanguageTag_themeDefined,
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
function useI18n(params: { kcContext: KcContextLike }): { i18n: Ref<I18n> } {
|
|
99
|
+
const { kcContext } = params;
|
|
100
|
+
const { i18n, prI18n_currentLanguage } = getI18n({ kcContext });
|
|
101
|
+
|
|
102
|
+
const i18nRef = ref(withVue(i18n)) as Ref<I18n>;
|
|
103
|
+
|
|
104
|
+
if (getCurrentInstance() !== null) {
|
|
105
|
+
onMounted(() => {
|
|
106
|
+
let isActive = true;
|
|
107
|
+
onUnmounted(() => {
|
|
108
|
+
isActive = false;
|
|
109
|
+
});
|
|
110
|
+
prI18n_currentLanguage?.then((i18n_currentLanguage) => {
|
|
111
|
+
if (!isActive) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
i18nRef.value = withVue(i18n_currentLanguage);
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
} else {
|
|
118
|
+
// Outside component context (e.g. tests): resolve the promise directly.
|
|
119
|
+
prI18n_currentLanguage?.then((i18n_currentLanguage) => {
|
|
120
|
+
i18nRef.value = withVue(i18n_currentLanguage);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return { i18n: i18nRef };
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return { useI18n, ofTypeI18n: Reflect<I18n>() };
|
|
128
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ExtendKcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
export { i18nBuilder } from './i18n/i18nBuilder';
|
|
3
|
+
export { default as DefaultPage } from './DefaultPage.vue';
|
|
4
|
+
export { default as Template } from './Template.vue';
|
|
5
|
+
export { default as UserProfileFormFields } from './components/UserProfileFormFields.vue';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
import type { Attribute, PasswordPolicies, Validators } from 'keycloakify/login/KcContext';
|
|
3
|
+
import * as reactlessApi from 'keycloakify/login/lib/getUserProfileApi';
|
|
4
|
+
import { assert, type Equals } from 'tsafe/assert';
|
|
5
|
+
import { computed, onMounted, onUnmounted, ref, type ComputedRef, type VNode } from 'vue';
|
|
6
|
+
import type { I18n } from '../i18n/i18n';
|
|
7
|
+
export { getButtonToDisplayForMultivaluedAttributeField } from 'keycloakify/login/lib/getUserProfileApi';
|
|
8
|
+
|
|
9
|
+
export type FormFieldError = {
|
|
10
|
+
errorMessage: VNode;
|
|
11
|
+
errorMessageStr: string;
|
|
12
|
+
source: FormFieldError.Source;
|
|
13
|
+
fieldIndex: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
{
|
|
17
|
+
type A = Omit<FormFieldError, 'errorMessage' | 'errorMessageStr'>;
|
|
18
|
+
type B = Omit<reactlessApi.FormFieldError, 'advancedMsgArgs'>;
|
|
19
|
+
assert<Equals<A, B>>();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace FormFieldError {
|
|
23
|
+
export type Source = Source.Validator | Source.PasswordPolicy | Source.Server | Source.Other;
|
|
24
|
+
export namespace Source {
|
|
25
|
+
export type Validator = { type: 'validator'; name: keyof Validators };
|
|
26
|
+
export type PasswordPolicy = {
|
|
27
|
+
type: 'passwordPolicy';
|
|
28
|
+
name: keyof PasswordPolicies;
|
|
29
|
+
};
|
|
30
|
+
export type Server = { type: 'server' };
|
|
31
|
+
export type Other = {
|
|
32
|
+
type: 'other';
|
|
33
|
+
rule: 'passwordConfirmMatchesPassword' | 'requiredField';
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
{
|
|
39
|
+
type A = FormFieldError.Source;
|
|
40
|
+
type B = reactlessApi.FormFieldError.Source;
|
|
41
|
+
assert<Equals<A, B>>();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type FormFieldState = {
|
|
45
|
+
attribute: Attribute;
|
|
46
|
+
displayableErrors: FormFieldError[];
|
|
47
|
+
valueOrValues: string | string[];
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
{
|
|
51
|
+
type A = Omit<FormFieldState, 'displayableErrors'>;
|
|
52
|
+
type B = Omit<reactlessApi.FormFieldState, 'displayableErrors'>;
|
|
53
|
+
assert<Equals<A, B>>();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type FormState = {
|
|
57
|
+
isFormSubmittable: boolean;
|
|
58
|
+
formFieldStates: FormFieldState[];
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type FormAction = reactlessApi.FormAction;
|
|
62
|
+
|
|
63
|
+
export type KcContextLike = reactlessApi.KcContextLike;
|
|
64
|
+
|
|
65
|
+
export type I18nLike = Pick<I18n, 'advancedMsg' | 'advancedMsgStr'>;
|
|
66
|
+
|
|
67
|
+
export type ParamsOfUseUserProfileForm = {
|
|
68
|
+
kcContext: KcContextLike;
|
|
69
|
+
doMakeUserConfirmPassword: boolean;
|
|
70
|
+
i18n: I18nLike;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
{
|
|
74
|
+
type A = Omit<ParamsOfUseUserProfileForm, 'i18n'>;
|
|
75
|
+
type B = reactlessApi.ParamsOfGetUserProfileApi;
|
|
76
|
+
assert<Equals<A, B>>();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type ReturnTypeOfUseUserProfileForm = {
|
|
80
|
+
formState: ComputedRef<FormState>;
|
|
81
|
+
dispatchFormAction: (action: FormAction) => void;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export function useUserProfileForm(params: ParamsOfUseUserProfileForm): ReturnTypeOfUseUserProfileForm {
|
|
85
|
+
const { doMakeUserConfirmPassword, i18n, kcContext } = params;
|
|
86
|
+
|
|
87
|
+
const { advancedMsg, advancedMsgStr } = i18n;
|
|
88
|
+
|
|
89
|
+
const api = reactlessApi.getUserProfileApi({
|
|
90
|
+
kcContext,
|
|
91
|
+
doMakeUserConfirmPassword,
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
const formState_reactless = ref(api.getFormState());
|
|
95
|
+
|
|
96
|
+
let unsubscribe: (() => void) | undefined;
|
|
97
|
+
|
|
98
|
+
onMounted(() => {
|
|
99
|
+
unsubscribe = api.subscribeToFormState(() => {
|
|
100
|
+
formState_reactless.value = api.getFormState();
|
|
101
|
+
}).unsubscribe;
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
onUnmounted(() => unsubscribe?.());
|
|
105
|
+
|
|
106
|
+
const formState = computed<FormState>(() => ({
|
|
107
|
+
isFormSubmittable: formState_reactless.value.isFormSubmittable,
|
|
108
|
+
formFieldStates: formState_reactless.value.formFieldStates.map((formFieldState_reactless) => ({
|
|
109
|
+
attribute: formFieldState_reactless.attribute,
|
|
110
|
+
valueOrValues: formFieldState_reactless.valueOrValues,
|
|
111
|
+
displayableErrors: formFieldState_reactless.displayableErrors.map((formFieldError_reactless) => ({
|
|
112
|
+
errorMessage: advancedMsg(...formFieldError_reactless.advancedMsgArgs),
|
|
113
|
+
errorMessageStr: advancedMsgStr(...formFieldError_reactless.advancedMsgArgs),
|
|
114
|
+
source: formFieldError_reactless.source,
|
|
115
|
+
fieldIndex: formFieldError_reactless.fieldIndex,
|
|
116
|
+
})),
|
|
117
|
+
})),
|
|
118
|
+
}));
|
|
119
|
+
|
|
120
|
+
return { formState, dispatchFormAction: api.dispatchFormAction };
|
|
121
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { kcSanitize } from 'keycloakify/lib/kcSanitize';
|
|
3
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
4
|
+
import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
5
|
+
import type { I18n } from '../i18n/i18n';
|
|
6
|
+
import type { PageProps } from './PageProps';
|
|
7
|
+
|
|
8
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'code.ftl' }>, I18n>>();
|
|
9
|
+
|
|
10
|
+
const { kcClsx } = getKcClsx({
|
|
11
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
12
|
+
classes: props.classes,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const kcContext = props.kcContext;
|
|
16
|
+
const { code } = kcContext;
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<component
|
|
21
|
+
:is="Template"
|
|
22
|
+
:kcContext="kcContext"
|
|
23
|
+
:i18n="props.i18n"
|
|
24
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
25
|
+
:classes="classes"
|
|
26
|
+
>
|
|
27
|
+
<template #header>
|
|
28
|
+
<component
|
|
29
|
+
v-if="code.success"
|
|
30
|
+
:is="props.i18n.msg('codeSuccessTitle')"
|
|
31
|
+
/>
|
|
32
|
+
<component
|
|
33
|
+
v-else
|
|
34
|
+
:is="props.i18n.msg('codeErrorTitle', code.error)"
|
|
35
|
+
/>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<div id="kc-code">
|
|
39
|
+
<template v-if="code.success">
|
|
40
|
+
<p><component :is="props.i18n.msg('copyCodeInstruction')" /></p>
|
|
41
|
+
<input
|
|
42
|
+
id="code"
|
|
43
|
+
:class="kcClsx('kcTextareaClass')"
|
|
44
|
+
:value="code.code"
|
|
45
|
+
/>
|
|
46
|
+
</template>
|
|
47
|
+
<p
|
|
48
|
+
v-else-if="code.error"
|
|
49
|
+
id="error"
|
|
50
|
+
v-html="kcSanitize(code.error)"
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
53
|
+
</component>
|
|
54
|
+
</template>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
3
|
+
import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
4
|
+
import type { I18n } from '../i18n/i18n';
|
|
5
|
+
import type { PageProps } from './PageProps';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'delete-account-confirm.ftl' }>, I18n>>();
|
|
8
|
+
|
|
9
|
+
const { kcClsx } = getKcClsx({
|
|
10
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
11
|
+
classes: props.classes,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const kcContext = props.kcContext;
|
|
15
|
+
const { url, triggered_from_aia } = kcContext;
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<component
|
|
20
|
+
:is="Template"
|
|
21
|
+
:kcContext="kcContext"
|
|
22
|
+
:i18n="props.i18n"
|
|
23
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
24
|
+
:classes="classes"
|
|
25
|
+
>
|
|
26
|
+
<template #header>
|
|
27
|
+
<component :is="props.i18n.msg('deleteAccountConfirm')" />
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<form
|
|
31
|
+
:action="url.loginAction"
|
|
32
|
+
class="form-vertical"
|
|
33
|
+
method="post"
|
|
34
|
+
>
|
|
35
|
+
<div
|
|
36
|
+
class="alert alert-warning"
|
|
37
|
+
style="margin-top: 0; margin-bottom: 30px"
|
|
38
|
+
>
|
|
39
|
+
<span class="pficon pficon-warning-triangle-o"></span>
|
|
40
|
+
<component :is="props.i18n.msg('irreversibleAction')" />
|
|
41
|
+
</div>
|
|
42
|
+
<p><component :is="props.i18n.msg('deletingImplies')" /></p>
|
|
43
|
+
<ul style="color: #72767b; list-style: disc; list-style-position: inside">
|
|
44
|
+
<li><component :is="props.i18n.msg('loggingOutImmediately')" /></li>
|
|
45
|
+
<li><component :is="props.i18n.msg('errasingData')" /></li>
|
|
46
|
+
</ul>
|
|
47
|
+
<p class="delete-account-text">
|
|
48
|
+
<component :is="props.i18n.msg('finalDeletionConfirmation')" />
|
|
49
|
+
</p>
|
|
50
|
+
<div id="kc-form-buttons">
|
|
51
|
+
<input
|
|
52
|
+
:class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass')"
|
|
53
|
+
type="submit"
|
|
54
|
+
:value="props.i18n.msgStr('doConfirmDelete')"
|
|
55
|
+
/>
|
|
56
|
+
<button
|
|
57
|
+
v-if="triggered_from_aia"
|
|
58
|
+
:class="kcClsx('kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass')"
|
|
59
|
+
style="margin-left: calc(100% - 220px)"
|
|
60
|
+
type="submit"
|
|
61
|
+
name="cancel-aia"
|
|
62
|
+
value="true"
|
|
63
|
+
>
|
|
64
|
+
{{ props.i18n.msgStr('doCancel') }}
|
|
65
|
+
</button>
|
|
66
|
+
</div>
|
|
67
|
+
</form>
|
|
68
|
+
</component>
|
|
69
|
+
</template>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
3
|
+
import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
4
|
+
import type { I18n } from '../i18n/i18n';
|
|
5
|
+
import type { PageProps } from './PageProps';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'delete-credential.ftl' }>, I18n>>();
|
|
8
|
+
|
|
9
|
+
const { kcClsx } = getKcClsx({
|
|
10
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
11
|
+
classes: props.classes,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const kcContext = props.kcContext;
|
|
15
|
+
const { url, credentialLabel } = kcContext;
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<component
|
|
20
|
+
:is="Template"
|
|
21
|
+
:kcContext="kcContext"
|
|
22
|
+
:i18n="props.i18n"
|
|
23
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
24
|
+
:classes="classes"
|
|
25
|
+
:displayMessage="false"
|
|
26
|
+
>
|
|
27
|
+
<template #header>
|
|
28
|
+
<component :is="props.i18n.msg('deleteCredentialTitle', credentialLabel)" />
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<div id="kc-delete-text">
|
|
32
|
+
<component :is="props.i18n.msg('deleteCredentialMessage', credentialLabel)" />
|
|
33
|
+
</div>
|
|
34
|
+
<form
|
|
35
|
+
class="form-actions"
|
|
36
|
+
:action="url.loginAction"
|
|
37
|
+
method="POST"
|
|
38
|
+
>
|
|
39
|
+
<input
|
|
40
|
+
:class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass')"
|
|
41
|
+
name="accept"
|
|
42
|
+
id="kc-accept"
|
|
43
|
+
type="submit"
|
|
44
|
+
:value="props.i18n.msgStr('doConfirmDelete')"
|
|
45
|
+
/>
|
|
46
|
+
<input
|
|
47
|
+
:class="kcClsx('kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass')"
|
|
48
|
+
name="cancel-aia"
|
|
49
|
+
:value="props.i18n.msgStr('doCancel')"
|
|
50
|
+
id="kc-decline"
|
|
51
|
+
type="submit"
|
|
52
|
+
/>
|
|
53
|
+
</form>
|
|
54
|
+
<div class="clearfix" />
|
|
55
|
+
</component>
|
|
56
|
+
</template>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { kcSanitize } from 'keycloakify/lib/kcSanitize';
|
|
3
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
4
|
+
import type { I18n } from '../i18n/i18n';
|
|
5
|
+
import type { PageProps } from './PageProps';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'error.ftl' }>, I18n>>();
|
|
8
|
+
|
|
9
|
+
const kcContext = props.kcContext;
|
|
10
|
+
const { message, client, skipLink } = kcContext;
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<component
|
|
15
|
+
:is="Template"
|
|
16
|
+
:kcContext="kcContext"
|
|
17
|
+
:i18n="props.i18n"
|
|
18
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
19
|
+
:classes="classes"
|
|
20
|
+
:displayMessage="false"
|
|
21
|
+
>
|
|
22
|
+
<template #header>
|
|
23
|
+
<component :is="props.i18n.msg('errorTitle')" />
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<div id="kc-error-message">
|
|
27
|
+
<p
|
|
28
|
+
class="instruction"
|
|
29
|
+
v-html="kcSanitize(message.summary)"
|
|
30
|
+
/>
|
|
31
|
+
<p v-if="!skipLink && !!client?.baseUrl">
|
|
32
|
+
<a
|
|
33
|
+
id="backToApplication"
|
|
34
|
+
:href="client.baseUrl"
|
|
35
|
+
>
|
|
36
|
+
<component :is="props.i18n.msg('backToApplication')" />
|
|
37
|
+
</a>
|
|
38
|
+
</p>
|
|
39
|
+
</div>
|
|
40
|
+
</component>
|
|
41
|
+
</template>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
3
|
+
import { ref, watch } from 'vue';
|
|
4
|
+
import type { I18n } from '../i18n/i18n';
|
|
5
|
+
import type { PageProps } from './PageProps';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'frontchannel-logout.ftl' }>, I18n>>();
|
|
8
|
+
|
|
9
|
+
const kcContext = props.kcContext;
|
|
10
|
+
const { logout } = kcContext;
|
|
11
|
+
|
|
12
|
+
const iframeLoadCount = ref(0);
|
|
13
|
+
|
|
14
|
+
watch(iframeLoadCount, (count) => {
|
|
15
|
+
if (!logout.logoutRedirectUri) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (count !== logout.clients.length) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
window.location.replace(logout.logoutRedirectUri);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
function onIframeLoad() {
|
|
27
|
+
iframeLoadCount.value++;
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<component
|
|
33
|
+
:is="Template"
|
|
34
|
+
:kcContext="kcContext"
|
|
35
|
+
:i18n="props.i18n"
|
|
36
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
37
|
+
:classes="classes"
|
|
38
|
+
:documentTitle="props.i18n.msgStr('frontchannel-logout.title')"
|
|
39
|
+
>
|
|
40
|
+
<template #header>
|
|
41
|
+
<component :is="props.i18n.msg('frontchannel-logout.title')" />
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<p><component :is="props.i18n.msg('frontchannel-logout.message')" /></p>
|
|
45
|
+
<ul>
|
|
46
|
+
<li
|
|
47
|
+
v-for="client in logout.clients"
|
|
48
|
+
:key="client.name"
|
|
49
|
+
>
|
|
50
|
+
{{ client.name }}
|
|
51
|
+
<iframe
|
|
52
|
+
:src="client.frontChannelLogoutUrl"
|
|
53
|
+
style="display: none"
|
|
54
|
+
@load="onIframeLoad"
|
|
55
|
+
/>
|
|
56
|
+
</li>
|
|
57
|
+
</ul>
|
|
58
|
+
<a
|
|
59
|
+
v-if="logout.logoutRedirectUri !== undefined"
|
|
60
|
+
id="continue"
|
|
61
|
+
class="btn btn-primary"
|
|
62
|
+
:href="logout.logoutRedirectUri"
|
|
63
|
+
>
|
|
64
|
+
<component :is="props.i18n.msg('doContinue')" />
|
|
65
|
+
</a>
|
|
66
|
+
</component>
|
|
67
|
+
</template>
|