@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,84 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { getKcClsx } from 'keycloakify/account/lib/kcClsx';
|
|
3
|
+
import type { KcContext } from 'keycloakify/account/KcContext';
|
|
4
|
+
import type { I18n } from '../i18n/i18n';
|
|
5
|
+
import type { PageProps } from './PageProps';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'sessions.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, stateChecker, sessions } = kcContext;
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<component
|
|
20
|
+
:is="Template"
|
|
21
|
+
:kcContext="kcContext"
|
|
22
|
+
:i18n="props.i18n"
|
|
23
|
+
:doUseDefaultCss="props.doUseDefaultCss"
|
|
24
|
+
:classes="props.classes"
|
|
25
|
+
active="sessions"
|
|
26
|
+
>
|
|
27
|
+
<div :class="kcClsx('kcContentWrapperClass')">
|
|
28
|
+
<div class="col-md-10">
|
|
29
|
+
<h2><component :is="props.i18n.msg('sessionsHtmlTitle')" /></h2>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<table class="table table-striped table-bordered">
|
|
34
|
+
<thead>
|
|
35
|
+
<tr>
|
|
36
|
+
<th><component :is="props.i18n.msg('ip')" /></th>
|
|
37
|
+
<th><component :is="props.i18n.msg('started')" /></th>
|
|
38
|
+
<th><component :is="props.i18n.msg('lastAccess')" /></th>
|
|
39
|
+
<th><component :is="props.i18n.msg('expires')" /></th>
|
|
40
|
+
<th><component :is="props.i18n.msg('clients')" /></th>
|
|
41
|
+
</tr>
|
|
42
|
+
</thead>
|
|
43
|
+
|
|
44
|
+
<tbody role="rowgroup">
|
|
45
|
+
<tr
|
|
46
|
+
v-for="(session, index) in sessions.sessions"
|
|
47
|
+
:key="index"
|
|
48
|
+
>
|
|
49
|
+
<td>{{ session.ipAddress }}</td>
|
|
50
|
+
<td>{{ session.started }}</td>
|
|
51
|
+
<td>{{ session.lastAccess }}</td>
|
|
52
|
+
<td>{{ session.expires }}</td>
|
|
53
|
+
<td>
|
|
54
|
+
<div
|
|
55
|
+
v-for="(client, clientIndex) in session.clients"
|
|
56
|
+
:key="clientIndex"
|
|
57
|
+
>
|
|
58
|
+
{{ client }}<br />
|
|
59
|
+
</div>
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
62
|
+
</tbody>
|
|
63
|
+
</table>
|
|
64
|
+
|
|
65
|
+
<form
|
|
66
|
+
:action="url.sessionsUrl"
|
|
67
|
+
method="post"
|
|
68
|
+
>
|
|
69
|
+
<input
|
|
70
|
+
type="hidden"
|
|
71
|
+
id="stateChecker"
|
|
72
|
+
name="stateChecker"
|
|
73
|
+
:value="stateChecker"
|
|
74
|
+
/>
|
|
75
|
+
<button
|
|
76
|
+
id="logout-all-sessions"
|
|
77
|
+
type="submit"
|
|
78
|
+
:class="kcClsx('kcButtonDefaultClass', 'kcButtonClass')"
|
|
79
|
+
>
|
|
80
|
+
<component :is="props.i18n.msg('doLogOutAllSessions')" />
|
|
81
|
+
</button>
|
|
82
|
+
</form>
|
|
83
|
+
</component>
|
|
84
|
+
</template>
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { clsx } from 'keycloakify/tools/clsx';
|
|
3
|
+
import type { KcContext } from 'keycloakify/account/KcContext';
|
|
4
|
+
import { getKcClsx } from 'keycloakify/account/lib/kcClsx';
|
|
5
|
+
import { kcSanitize } from 'keycloakify/lib/kcSanitize';
|
|
6
|
+
import type { I18n } from '../i18n/i18n';
|
|
7
|
+
import type { PageProps } from './PageProps';
|
|
8
|
+
|
|
9
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'totp.ftl' }>, I18n>>();
|
|
10
|
+
|
|
11
|
+
const { kcClsx } = getKcClsx({
|
|
12
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
13
|
+
classes: props.classes,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const { totp, mode, url, messagesPerField, stateChecker } = props.kcContext;
|
|
17
|
+
const { msg, msgStr, advancedMsg } = props.i18n;
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<component
|
|
22
|
+
:is="Template"
|
|
23
|
+
:kcContext="props.kcContext"
|
|
24
|
+
:i18n="props.i18n"
|
|
25
|
+
:doUseDefaultCss="props.doUseDefaultCss"
|
|
26
|
+
:classes="props.classes"
|
|
27
|
+
active="totp"
|
|
28
|
+
>
|
|
29
|
+
<div class="row">
|
|
30
|
+
<div class="col-md-10">
|
|
31
|
+
<h2><component :is="msg('authenticatorTitle')" /></h2>
|
|
32
|
+
</div>
|
|
33
|
+
<div
|
|
34
|
+
v-if="totp.otpCredentials.length === 0"
|
|
35
|
+
class="subtitle col-md-2"
|
|
36
|
+
>
|
|
37
|
+
<span class="required">*</span>
|
|
38
|
+
<component :is="msg('requiredFields')" />
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<!-- Enabled: list existing OTP credentials -->
|
|
43
|
+
<template v-if="totp.enabled">
|
|
44
|
+
<table class="table table-bordered table-striped">
|
|
45
|
+
<thead>
|
|
46
|
+
<tr v-if="totp.otpCredentials.length > 1">
|
|
47
|
+
<th :colSpan="4"><component :is="msg('configureAuthenticators')" /></th>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr v-else>
|
|
50
|
+
<th :colSpan="3"><component :is="msg('configureAuthenticators')" /></th>
|
|
51
|
+
</tr>
|
|
52
|
+
</thead>
|
|
53
|
+
<tbody>
|
|
54
|
+
<tr
|
|
55
|
+
v-for="(credential, index) in totp.otpCredentials"
|
|
56
|
+
:key="index"
|
|
57
|
+
>
|
|
58
|
+
<td class="provider"><component :is="msg('mobile')" /></td>
|
|
59
|
+
<td
|
|
60
|
+
v-if="totp.otpCredentials.length > 1"
|
|
61
|
+
class="provider"
|
|
62
|
+
>
|
|
63
|
+
{{ credential.id }}
|
|
64
|
+
</td>
|
|
65
|
+
<td class="provider">{{ credential.userLabel || '' }}</td>
|
|
66
|
+
<td class="action">
|
|
67
|
+
<form
|
|
68
|
+
:action="url.totpUrl"
|
|
69
|
+
method="post"
|
|
70
|
+
class="form-inline"
|
|
71
|
+
>
|
|
72
|
+
<input
|
|
73
|
+
type="hidden"
|
|
74
|
+
id="stateChecker"
|
|
75
|
+
name="stateChecker"
|
|
76
|
+
:value="stateChecker"
|
|
77
|
+
/>
|
|
78
|
+
<input
|
|
79
|
+
type="hidden"
|
|
80
|
+
id="submitAction"
|
|
81
|
+
name="submitAction"
|
|
82
|
+
value="Delete"
|
|
83
|
+
/>
|
|
84
|
+
<input
|
|
85
|
+
type="hidden"
|
|
86
|
+
id="credentialId"
|
|
87
|
+
name="credentialId"
|
|
88
|
+
:value="credential.id"
|
|
89
|
+
/>
|
|
90
|
+
<button
|
|
91
|
+
:id="`remove-mobile-${index}`"
|
|
92
|
+
class="btn btn-default"
|
|
93
|
+
>
|
|
94
|
+
<i class="pficon pficon-delete"></i>
|
|
95
|
+
</button>
|
|
96
|
+
</form>
|
|
97
|
+
</td>
|
|
98
|
+
</tr>
|
|
99
|
+
</tbody>
|
|
100
|
+
</table>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<!-- Not enabled: setup wizard -->
|
|
104
|
+
<template v-else>
|
|
105
|
+
<div>
|
|
106
|
+
<hr />
|
|
107
|
+
<ol id="kc-totp-settings">
|
|
108
|
+
<li>
|
|
109
|
+
<p><component :is="msg('totpStep1')" /></p>
|
|
110
|
+
<ul id="kc-totp-supported-apps">
|
|
111
|
+
<li
|
|
112
|
+
v-for="app in totp.supportedApplications"
|
|
113
|
+
:key="app"
|
|
114
|
+
>
|
|
115
|
+
<component :is="advancedMsg(app)" />
|
|
116
|
+
</li>
|
|
117
|
+
</ul>
|
|
118
|
+
</li>
|
|
119
|
+
|
|
120
|
+
<!-- Manual mode -->
|
|
121
|
+
<template v-if="mode === 'manual'">
|
|
122
|
+
<li>
|
|
123
|
+
<p><component :is="msg('totpManualStep2')" /></p>
|
|
124
|
+
<p>
|
|
125
|
+
<span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
|
|
126
|
+
</p>
|
|
127
|
+
<p>
|
|
128
|
+
<a
|
|
129
|
+
:href="totp.qrUrl"
|
|
130
|
+
id="mode-barcode"
|
|
131
|
+
>
|
|
132
|
+
<component :is="msg('totpScanBarcode')" />
|
|
133
|
+
</a>
|
|
134
|
+
</p>
|
|
135
|
+
</li>
|
|
136
|
+
<li>
|
|
137
|
+
<p><component :is="msg('totpManualStep3')" /></p>
|
|
138
|
+
<ul>
|
|
139
|
+
<li id="kc-totp-type">
|
|
140
|
+
<component :is="msg('totpType')" />: <component :is="msg(`totp.${totp.policy.type}`)" />
|
|
141
|
+
</li>
|
|
142
|
+
<li id="kc-totp-algorithm">
|
|
143
|
+
<component :is="msg('totpAlgorithm')" />: {{ totp.policy.getAlgorithmKey() }}
|
|
144
|
+
</li>
|
|
145
|
+
<li id="kc-totp-digits"><component :is="msg('totpDigits')" />: {{ totp.policy.digits }}</li>
|
|
146
|
+
<li
|
|
147
|
+
v-if="totp.policy.type === 'totp'"
|
|
148
|
+
id="kc-totp-period"
|
|
149
|
+
>
|
|
150
|
+
<component :is="msg('totpInterval')" />: {{ totp.policy.period }}
|
|
151
|
+
</li>
|
|
152
|
+
<li
|
|
153
|
+
v-else
|
|
154
|
+
id="kc-totp-counter"
|
|
155
|
+
>
|
|
156
|
+
<component :is="msg('totpCounter')" />: {{ totp.policy.initialCounter }}
|
|
157
|
+
</li>
|
|
158
|
+
</ul>
|
|
159
|
+
</li>
|
|
160
|
+
</template>
|
|
161
|
+
|
|
162
|
+
<!-- QR mode (default) -->
|
|
163
|
+
<template v-else>
|
|
164
|
+
<li>
|
|
165
|
+
<p><component :is="msg('totpStep2')" /></p>
|
|
166
|
+
<p>
|
|
167
|
+
<img
|
|
168
|
+
id="kc-totp-secret-qr-code"
|
|
169
|
+
:src="`data:image/png;base64, ${totp.totpSecretQrCode}`"
|
|
170
|
+
alt="Figure: Barcode"
|
|
171
|
+
/>
|
|
172
|
+
</p>
|
|
173
|
+
<p>
|
|
174
|
+
<a
|
|
175
|
+
:href="totp.manualUrl"
|
|
176
|
+
id="mode-manual"
|
|
177
|
+
>
|
|
178
|
+
<component :is="msg('totpUnableToScan')" />
|
|
179
|
+
</a>
|
|
180
|
+
</p>
|
|
181
|
+
</li>
|
|
182
|
+
</template>
|
|
183
|
+
|
|
184
|
+
<li>
|
|
185
|
+
<p><component :is="msg('totpStep3')" /></p>
|
|
186
|
+
<p><component :is="msg('totpStep3DeviceName')" /></p>
|
|
187
|
+
</li>
|
|
188
|
+
</ol>
|
|
189
|
+
<hr />
|
|
190
|
+
|
|
191
|
+
<!-- Enrollment form -->
|
|
192
|
+
<form
|
|
193
|
+
:action="url.totpUrl"
|
|
194
|
+
:class="kcClsx('kcFormClass')"
|
|
195
|
+
id="kc-totp-settings-form"
|
|
196
|
+
method="post"
|
|
197
|
+
>
|
|
198
|
+
<input
|
|
199
|
+
type="hidden"
|
|
200
|
+
id="stateChecker"
|
|
201
|
+
name="stateChecker"
|
|
202
|
+
:value="stateChecker"
|
|
203
|
+
/>
|
|
204
|
+
|
|
205
|
+
<!-- OTP code field -->
|
|
206
|
+
<div :class="kcClsx('kcFormGroupClass')">
|
|
207
|
+
<div class="col-sm-2 col-md-2">
|
|
208
|
+
<label
|
|
209
|
+
for="totp"
|
|
210
|
+
class="control-label"
|
|
211
|
+
>
|
|
212
|
+
<component :is="msg('authenticatorCode')" />
|
|
213
|
+
</label>
|
|
214
|
+
<span class="required">*</span>
|
|
215
|
+
</div>
|
|
216
|
+
<div class="col-sm-10 col-md-10">
|
|
217
|
+
<input
|
|
218
|
+
type="text"
|
|
219
|
+
id="totp"
|
|
220
|
+
name="totp"
|
|
221
|
+
autocomplete="off"
|
|
222
|
+
:class="kcClsx('kcInputClass')"
|
|
223
|
+
:aria-invalid="messagesPerField.existsError('totp')"
|
|
224
|
+
/>
|
|
225
|
+
<span
|
|
226
|
+
v-if="messagesPerField.existsError('totp')"
|
|
227
|
+
id="input-error-otp-code"
|
|
228
|
+
:class="kcClsx('kcInputErrorMessageClass')"
|
|
229
|
+
aria-live="polite"
|
|
230
|
+
v-html="kcSanitize(messagesPerField.get('totp'))"
|
|
231
|
+
/>
|
|
232
|
+
</div>
|
|
233
|
+
<input
|
|
234
|
+
type="hidden"
|
|
235
|
+
id="totpSecret"
|
|
236
|
+
name="totpSecret"
|
|
237
|
+
:value="totp.totpSecret"
|
|
238
|
+
/>
|
|
239
|
+
<input
|
|
240
|
+
v-if="mode"
|
|
241
|
+
type="hidden"
|
|
242
|
+
id="mode"
|
|
243
|
+
:value="mode"
|
|
244
|
+
/>
|
|
245
|
+
</div>
|
|
246
|
+
|
|
247
|
+
<!-- Device name field -->
|
|
248
|
+
<div :class="kcClsx('kcFormGroupClass')">
|
|
249
|
+
<div class="col-sm-2 col-md-2">
|
|
250
|
+
<label
|
|
251
|
+
for="userLabel"
|
|
252
|
+
:class="kcClsx('kcLabelClass')"
|
|
253
|
+
>
|
|
254
|
+
<component :is="msg('totpDeviceName')" />
|
|
255
|
+
</label>
|
|
256
|
+
<span
|
|
257
|
+
v-if="totp.otpCredentials.length >= 1"
|
|
258
|
+
class="required"
|
|
259
|
+
>*</span
|
|
260
|
+
>
|
|
261
|
+
</div>
|
|
262
|
+
<div class="col-sm-10 col-md-10">
|
|
263
|
+
<input
|
|
264
|
+
type="text"
|
|
265
|
+
id="userLabel"
|
|
266
|
+
name="userLabel"
|
|
267
|
+
autocomplete="off"
|
|
268
|
+
:class="kcClsx('kcInputClass')"
|
|
269
|
+
:aria-invalid="messagesPerField.existsError('userLabel')"
|
|
270
|
+
/>
|
|
271
|
+
<span
|
|
272
|
+
v-if="messagesPerField.existsError('userLabel')"
|
|
273
|
+
id="input-error-otp-label"
|
|
274
|
+
:class="kcClsx('kcInputErrorMessageClass')"
|
|
275
|
+
aria-live="polite"
|
|
276
|
+
v-html="kcSanitize(messagesPerField.get('userLabel'))"
|
|
277
|
+
/>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
|
|
281
|
+
<!-- Submit/Cancel buttons -->
|
|
282
|
+
<div
|
|
283
|
+
id="kc-form-buttons"
|
|
284
|
+
:class="clsx(kcClsx('kcFormGroupClass'), 'text-right')"
|
|
285
|
+
>
|
|
286
|
+
<div :class="kcClsx('kcInputWrapperClass')">
|
|
287
|
+
<input
|
|
288
|
+
type="submit"
|
|
289
|
+
:class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass')"
|
|
290
|
+
id="saveTOTPBtn"
|
|
291
|
+
:value="msgStr('doSave')"
|
|
292
|
+
/>
|
|
293
|
+
<button
|
|
294
|
+
type="submit"
|
|
295
|
+
:class="kcClsx('kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass')"
|
|
296
|
+
id="cancelTOTPBtn"
|
|
297
|
+
name="submitAction"
|
|
298
|
+
value="Cancel"
|
|
299
|
+
>
|
|
300
|
+
<component :is="msg('doCancel')" />
|
|
301
|
+
</button>
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
</form>
|
|
305
|
+
</div>
|
|
306
|
+
</template>
|
|
307
|
+
</component>
|
|
308
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ExtendKcContext } from 'keycloakify/account';
|
|
2
|
+
import type { KcEnvName, ThemeName } from '../kc.gen';
|
|
3
|
+
|
|
4
|
+
export type KcContextExtension = {
|
|
5
|
+
themeName: ThemeName;
|
|
6
|
+
properties: Record<KcEnvName, string> & {};
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type KcContextExtensionPerPage = Record<string, Record<string, unknown>>;
|
|
10
|
+
|
|
11
|
+
export type KcContext = ExtendKcContext<KcContextExtension, KcContextExtensionPerPage>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { ClassKey } from 'keycloakify/account/lib/kcClsx';
|
|
3
|
+
import DefaultPage from '@andreyyolkin/keycloakify-vue/account/DefaultPage.vue';
|
|
4
|
+
import Template from '@andreyyolkin/keycloakify-vue/account/Template.vue';
|
|
5
|
+
import type { KcContext } from './KcContext';
|
|
6
|
+
import { useI18n } from './i18n';
|
|
7
|
+
|
|
8
|
+
const props = defineProps<{ kcContext: KcContext }>();
|
|
9
|
+
|
|
10
|
+
const { i18n } = useI18n({ kcContext: props.kcContext });
|
|
11
|
+
|
|
12
|
+
const classes = {} satisfies { [key in ClassKey]?: string };
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<DefaultPage
|
|
17
|
+
:kcContext="kcContext"
|
|
18
|
+
:i18n="i18n"
|
|
19
|
+
:classes="classes"
|
|
20
|
+
:Template="Template"
|
|
21
|
+
:doUseDefaultCss="true"
|
|
22
|
+
/>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createGetKcContextMock } from 'keycloakify/account/KcContext';
|
|
2
|
+
import type { DeepPartial } from 'keycloakify/tools/DeepPartial';
|
|
3
|
+
import { kcEnvDefaults, themeNames } from '../kc.gen';
|
|
4
|
+
import type { KcContext, KcContextExtension, KcContextExtensionPerPage } from './KcContext';
|
|
5
|
+
|
|
6
|
+
const kcContextExtension: KcContextExtension = {
|
|
7
|
+
themeName: themeNames[0],
|
|
8
|
+
properties: {
|
|
9
|
+
...kcEnvDefaults,
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
const kcContextExtensionPerPage: KcContextExtensionPerPage = {};
|
|
13
|
+
|
|
14
|
+
export const { getKcContextMock } = createGetKcContextMock({
|
|
15
|
+
kcContextExtension,
|
|
16
|
+
kcContextExtensionPerPage,
|
|
17
|
+
overrides: {},
|
|
18
|
+
overridesPerPage: {},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
type PageId = KcContext['pageId'];
|
|
22
|
+
export type KcPageStoryProps = { pageId: PageId; kcContext?: DeepPartial<Extract<KcContext, { pageId: PageId }>> };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import KcPage from './KcPage.vue';
|
|
4
|
+
import { getKcContextMock, type KcPageStoryProps } from './KcPageStory';
|
|
5
|
+
|
|
6
|
+
const props = defineProps<KcPageStoryProps>();
|
|
7
|
+
|
|
8
|
+
const kcContextMock = computed(() => getKcContextMock({ pageId: props.pageId, overrides: props.kcContext }));
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<KcPage :kcContext="kcContextMock" />
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { i18nBuilder } from '@andreyyolkin/keycloakify-vue/account';
|
|
2
|
+
import type { ThemeName } from '../kc.gen';
|
|
3
|
+
|
|
4
|
+
/** @see: https://docs.keycloakify.dev/features/i18n */
|
|
5
|
+
const { useI18n, ofTypeI18n } = i18nBuilder.withThemeName<ThemeName>().build();
|
|
6
|
+
|
|
7
|
+
type I18n = typeof ofTypeI18n;
|
|
8
|
+
export { useI18n, type I18n };
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
3
|
+
import { computed, defineAsyncComponent, type Component } from 'vue';
|
|
4
|
+
import DefaultUserProfileFormFields from './components/UserProfileFormFields.vue';
|
|
5
|
+
import type { ClassKey } from './TemplateProps';
|
|
6
|
+
import type { I18n } from './i18n/i18n';
|
|
7
|
+
import NotImplemented from './pages/NotImplemented.vue';
|
|
8
|
+
|
|
9
|
+
const Login = defineAsyncComponent(() => import('./pages/Login.vue'));
|
|
10
|
+
const Register = defineAsyncComponent(() => import('./pages/Register.vue'));
|
|
11
|
+
const Code = defineAsyncComponent(() => import('./pages/Code.vue'));
|
|
12
|
+
const DeleteAccountConfirm = defineAsyncComponent(() => import('./pages/DeleteAccountConfirm.vue'));
|
|
13
|
+
const DeleteCredential = defineAsyncComponent(() => import('./pages/DeleteCredential.vue'));
|
|
14
|
+
const Error = defineAsyncComponent(() => import('./pages/Error.vue'));
|
|
15
|
+
const FrontchannelLogout = defineAsyncComponent(() => import('./pages/FrontchannelLogout.vue'));
|
|
16
|
+
const IdpReviewUserProfile = defineAsyncComponent(() => import('./pages/IdpReviewUserProfile.vue'));
|
|
17
|
+
const Info = defineAsyncComponent(() => import('./pages/Info.vue'));
|
|
18
|
+
const LinkIdpAction = defineAsyncComponent(() => import('./pages/LinkIdpAction.vue'));
|
|
19
|
+
const LoginIdpLinkConfirm = defineAsyncComponent(() => import('./pages/LoginIdpLinkConfirm.vue'));
|
|
20
|
+
const LoginIdpLinkConfirmOverride = defineAsyncComponent(() => import('./pages/LoginIdpLinkConfirmOverride.vue'));
|
|
21
|
+
const LoginIdpLinkEmail = defineAsyncComponent(() => import('./pages/LoginIdpLinkEmail.vue'));
|
|
22
|
+
const LoginOauth2DeviceVerifyUserCode = defineAsyncComponent(
|
|
23
|
+
() => import('./pages/LoginOauth2DeviceVerifyUserCode.vue'),
|
|
24
|
+
);
|
|
25
|
+
const LoginOauthGrant = defineAsyncComponent(() => import('./pages/LoginOauthGrant.vue'));
|
|
26
|
+
const LoginPageExpired = defineAsyncComponent(() => import('./pages/LoginPageExpired.vue'));
|
|
27
|
+
const LoginUpdateProfile = defineAsyncComponent(() => import('./pages/LoginUpdateProfile.vue'));
|
|
28
|
+
const LoginVerifyEmail = defineAsyncComponent(() => import('./pages/LoginVerifyEmail.vue'));
|
|
29
|
+
const LoginX509Info = defineAsyncComponent(() => import('./pages/LoginX509Info.vue'));
|
|
30
|
+
const LogoutConfirm = defineAsyncComponent(() => import('./pages/LogoutConfirm.vue'));
|
|
31
|
+
const SamlPostForm = defineAsyncComponent(() => import('./pages/SamlPostForm.vue'));
|
|
32
|
+
const SelectAuthenticator = defineAsyncComponent(() => import('./pages/SelectAuthenticator.vue'));
|
|
33
|
+
const SelectOrganization = defineAsyncComponent(() => import('./pages/SelectOrganization.vue'));
|
|
34
|
+
const Terms = defineAsyncComponent(() => import('./pages/Terms.vue'));
|
|
35
|
+
const UpdateEmail = defineAsyncComponent(() => import('./pages/UpdateEmail.vue'));
|
|
36
|
+
const LoginResetOtp = defineAsyncComponent(() => import('./pages/LoginResetOtp.vue'));
|
|
37
|
+
const LoginRecoveryAuthnCodeInput = defineAsyncComponent(() => import('./pages/LoginRecoveryAuthnCodeInput.vue'));
|
|
38
|
+
const LoginOtp = defineAsyncComponent(() => import('./pages/LoginOtp.vue'));
|
|
39
|
+
const LoginRecoveryAuthnCodeConfig = defineAsyncComponent(() => import('./pages/LoginRecoveryAuthnCodeConfig.vue'));
|
|
40
|
+
const LoginResetPassword = defineAsyncComponent(() => import('./pages/LoginResetPassword.vue'));
|
|
41
|
+
const LoginUpdatePassword = defineAsyncComponent(() => import('./pages/LoginUpdatePassword.vue'));
|
|
42
|
+
const LoginPassword = defineAsyncComponent(() => import('./pages/LoginPassword.vue'));
|
|
43
|
+
const LoginConfigTotp = defineAsyncComponent(() => import('./pages/LoginConfigTotp.vue'));
|
|
44
|
+
const LoginUsername = defineAsyncComponent(() => import('./pages/LoginUsername.vue'));
|
|
45
|
+
const WebauthnError = defineAsyncComponent(() => import('./pages/WebauthnError.vue'));
|
|
46
|
+
const WebauthnRegister = defineAsyncComponent(() => import('./pages/WebauthnRegister.vue'));
|
|
47
|
+
const WebauthnAuthenticate = defineAsyncComponent(() => import('./pages/WebauthnAuthenticate.vue'));
|
|
48
|
+
const LoginPasskeysConditionalAuthenticate = defineAsyncComponent(
|
|
49
|
+
() => import('./pages/LoginPasskeysConditionalAuthenticate.vue'),
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const props = withDefaults(
|
|
53
|
+
defineProps<{
|
|
54
|
+
kcContext: KcContext;
|
|
55
|
+
i18n: I18n;
|
|
56
|
+
classes?: Partial<Record<ClassKey, string>>;
|
|
57
|
+
Template: Component;
|
|
58
|
+
UserProfileFormFields?: Component;
|
|
59
|
+
doUseDefaultCss: boolean;
|
|
60
|
+
doMakeUserConfirmPassword?: boolean;
|
|
61
|
+
}>(),
|
|
62
|
+
{
|
|
63
|
+
classes: undefined,
|
|
64
|
+
UserProfileFormFields: undefined,
|
|
65
|
+
doMakeUserConfirmPassword: true,
|
|
66
|
+
},
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
const userProfileFormFields = computed<Component>(() => props.UserProfileFormFields ?? DefaultUserProfileFormFields);
|
|
70
|
+
|
|
71
|
+
const pageComponent = computed<Component>(() => {
|
|
72
|
+
switch (props.kcContext.pageId) {
|
|
73
|
+
case 'login.ftl':
|
|
74
|
+
return Login;
|
|
75
|
+
case 'register.ftl':
|
|
76
|
+
return Register;
|
|
77
|
+
case 'code.ftl':
|
|
78
|
+
return Code;
|
|
79
|
+
case 'delete-account-confirm.ftl':
|
|
80
|
+
return DeleteAccountConfirm;
|
|
81
|
+
case 'delete-credential.ftl':
|
|
82
|
+
return DeleteCredential;
|
|
83
|
+
case 'error.ftl':
|
|
84
|
+
return Error;
|
|
85
|
+
case 'frontchannel-logout.ftl':
|
|
86
|
+
return FrontchannelLogout;
|
|
87
|
+
case 'idp-review-user-profile.ftl':
|
|
88
|
+
return IdpReviewUserProfile;
|
|
89
|
+
case 'info.ftl':
|
|
90
|
+
return Info;
|
|
91
|
+
case 'link-idp-action.ftl':
|
|
92
|
+
return LinkIdpAction;
|
|
93
|
+
case 'login-idp-link-confirm.ftl':
|
|
94
|
+
return LoginIdpLinkConfirm;
|
|
95
|
+
case 'login-idp-link-confirm-override.ftl':
|
|
96
|
+
return LoginIdpLinkConfirmOverride;
|
|
97
|
+
case 'login-idp-link-email.ftl':
|
|
98
|
+
return LoginIdpLinkEmail;
|
|
99
|
+
case 'login-oauth2-device-verify-user-code.ftl':
|
|
100
|
+
return LoginOauth2DeviceVerifyUserCode;
|
|
101
|
+
case 'login-oauth-grant.ftl':
|
|
102
|
+
return LoginOauthGrant;
|
|
103
|
+
case 'login-page-expired.ftl':
|
|
104
|
+
return LoginPageExpired;
|
|
105
|
+
case 'login-update-profile.ftl':
|
|
106
|
+
return LoginUpdateProfile;
|
|
107
|
+
case 'login-verify-email.ftl':
|
|
108
|
+
return LoginVerifyEmail;
|
|
109
|
+
case 'login-x509-info.ftl':
|
|
110
|
+
return LoginX509Info;
|
|
111
|
+
case 'logout-confirm.ftl':
|
|
112
|
+
return LogoutConfirm;
|
|
113
|
+
case 'saml-post-form.ftl':
|
|
114
|
+
return SamlPostForm;
|
|
115
|
+
case 'select-authenticator.ftl':
|
|
116
|
+
return SelectAuthenticator;
|
|
117
|
+
case 'select-organization.ftl':
|
|
118
|
+
return SelectOrganization;
|
|
119
|
+
case 'terms.ftl':
|
|
120
|
+
return Terms;
|
|
121
|
+
case 'update-email.ftl':
|
|
122
|
+
return UpdateEmail;
|
|
123
|
+
case 'login-reset-otp.ftl':
|
|
124
|
+
return LoginResetOtp;
|
|
125
|
+
case 'login-recovery-authn-code-input.ftl':
|
|
126
|
+
return LoginRecoveryAuthnCodeInput;
|
|
127
|
+
case 'login-otp.ftl':
|
|
128
|
+
return LoginOtp;
|
|
129
|
+
case 'login-recovery-authn-code-config.ftl':
|
|
130
|
+
return LoginRecoveryAuthnCodeConfig;
|
|
131
|
+
case 'login-reset-password.ftl':
|
|
132
|
+
return LoginResetPassword;
|
|
133
|
+
case 'login-update-password.ftl':
|
|
134
|
+
return LoginUpdatePassword;
|
|
135
|
+
case 'login-password.ftl':
|
|
136
|
+
return LoginPassword;
|
|
137
|
+
case 'login-config-totp.ftl':
|
|
138
|
+
return LoginConfigTotp;
|
|
139
|
+
case 'login-username.ftl':
|
|
140
|
+
return LoginUsername;
|
|
141
|
+
case 'webauthn-error.ftl':
|
|
142
|
+
return WebauthnError;
|
|
143
|
+
case 'webauthn-register.ftl':
|
|
144
|
+
return WebauthnRegister;
|
|
145
|
+
case 'webauthn-authenticate.ftl':
|
|
146
|
+
return WebauthnAuthenticate;
|
|
147
|
+
case 'login-passkeys-conditional-authenticate.ftl':
|
|
148
|
+
return LoginPasskeysConditionalAuthenticate;
|
|
149
|
+
default:
|
|
150
|
+
return NotImplemented;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
</script>
|
|
154
|
+
|
|
155
|
+
<template>
|
|
156
|
+
<component
|
|
157
|
+
:is="pageComponent"
|
|
158
|
+
:kcContext="kcContext"
|
|
159
|
+
:i18n="i18n"
|
|
160
|
+
:classes="classes"
|
|
161
|
+
:Template="Template"
|
|
162
|
+
:UserProfileFormFields="userProfileFormFields"
|
|
163
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
164
|
+
:doMakeUserConfirmPassword="doMakeUserConfirmPassword"
|
|
165
|
+
:pageId="kcContext.pageId"
|
|
166
|
+
/>
|
|
167
|
+
</template>
|