@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,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'login-idp-link-confirm-override.ftl';
|
|
6
|
+
}>, I18n>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
3
|
+
import type { I18n } from '../i18n/i18n';
|
|
4
|
+
import type { PageProps } from './PageProps';
|
|
5
|
+
|
|
6
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'login-idp-link-email.ftl' }>, I18n>>();
|
|
7
|
+
|
|
8
|
+
const kcContext = props.kcContext;
|
|
9
|
+
const { url, realm, brokerContext, idpAlias } = kcContext;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<component
|
|
14
|
+
:is="Template"
|
|
15
|
+
:kcContext="kcContext"
|
|
16
|
+
:i18n="props.i18n"
|
|
17
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
18
|
+
:classes="classes"
|
|
19
|
+
:displayMessage="false"
|
|
20
|
+
>
|
|
21
|
+
<template #header>
|
|
22
|
+
<component :is="props.i18n.msg('emailLinkIdpTitle', idpAlias)" />
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<p
|
|
26
|
+
id="instruction1"
|
|
27
|
+
class="instruction"
|
|
28
|
+
>
|
|
29
|
+
<component :is="props.i18n.msg('emailLinkIdp1', idpAlias, brokerContext.username, realm.displayName)" />
|
|
30
|
+
</p>
|
|
31
|
+
<p
|
|
32
|
+
id="instruction2"
|
|
33
|
+
class="instruction"
|
|
34
|
+
>
|
|
35
|
+
<component :is="props.i18n.msg('emailLinkIdp2')" />
|
|
36
|
+
{{ ' ' }}
|
|
37
|
+
<a :href="url.loginAction"><component :is="props.i18n.msg('doClickHere')" /></a>
|
|
38
|
+
{{ ' ' }}
|
|
39
|
+
<component :is="props.i18n.msg('emailLinkIdp3')" />
|
|
40
|
+
</p>
|
|
41
|
+
<p
|
|
42
|
+
id="instruction3"
|
|
43
|
+
class="instruction"
|
|
44
|
+
>
|
|
45
|
+
<component :is="props.i18n.msg('emailLinkIdp4')" />
|
|
46
|
+
{{ ' ' }}
|
|
47
|
+
<a :href="url.loginAction"><component :is="props.i18n.msg('doClickHere')" /></a>
|
|
48
|
+
{{ ' ' }}
|
|
49
|
+
<component :is="props.i18n.msg('emailLinkIdp5')" />
|
|
50
|
+
</p>
|
|
51
|
+
</component>
|
|
52
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'login-idp-link-email.ftl';
|
|
6
|
+
}>, I18n>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 =
|
|
8
|
+
defineProps<PageProps<Extract<KcContext, { pageId: 'login-oauth2-device-verify-user-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 { url } = kcContext;
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<component
|
|
21
|
+
:is="Template"
|
|
22
|
+
:kcContext="kcContext"
|
|
23
|
+
:i18n="i18n"
|
|
24
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
25
|
+
:classes="classes"
|
|
26
|
+
>
|
|
27
|
+
<template #header>
|
|
28
|
+
<component :is="i18n.msg('oauth2DeviceVerificationTitle')" />
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<form
|
|
32
|
+
id="kc-user-verify-device-user-code-form"
|
|
33
|
+
:class="kcClsx('kcFormClass')"
|
|
34
|
+
:action="url.oauth2DeviceVerificationAction"
|
|
35
|
+
method="post"
|
|
36
|
+
>
|
|
37
|
+
<div :class="kcClsx('kcFormGroupClass')">
|
|
38
|
+
<div :class="kcClsx('kcLabelWrapperClass')">
|
|
39
|
+
<label
|
|
40
|
+
for="device-user-code"
|
|
41
|
+
:class="kcClsx('kcLabelClass')"
|
|
42
|
+
>
|
|
43
|
+
<component :is="i18n.msg('verifyOAuth2DeviceUserCode')" />
|
|
44
|
+
</label>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div :class="kcClsx('kcInputWrapperClass')">
|
|
48
|
+
<input
|
|
49
|
+
id="device-user-code"
|
|
50
|
+
name="device_user_code"
|
|
51
|
+
autocomplete="off"
|
|
52
|
+
type="text"
|
|
53
|
+
:class="kcClsx('kcInputClass')"
|
|
54
|
+
autofocus
|
|
55
|
+
/>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div :class="kcClsx('kcFormGroupClass')">
|
|
60
|
+
<div
|
|
61
|
+
id="kc-form-options"
|
|
62
|
+
:class="kcClsx('kcFormOptionsClass')"
|
|
63
|
+
>
|
|
64
|
+
<div :class="kcClsx('kcFormOptionsWrapperClass')"></div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div
|
|
68
|
+
id="kc-form-buttons"
|
|
69
|
+
:class="kcClsx('kcFormButtonsClass')"
|
|
70
|
+
>
|
|
71
|
+
<div :class="kcClsx('kcFormButtonsWrapperClass')">
|
|
72
|
+
<input
|
|
73
|
+
:class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass')"
|
|
74
|
+
type="submit"
|
|
75
|
+
:value="i18n.msgStr('doSubmit')"
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</form>
|
|
81
|
+
</component>
|
|
82
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'login-oauth2-device-verify-user-code.ftl';
|
|
6
|
+
}>, I18n>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,131 @@
|
|
|
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: 'login-oauth-grant.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, oauth, client } = kcContext;
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<component
|
|
20
|
+
:is="Template"
|
|
21
|
+
:kcContext="kcContext"
|
|
22
|
+
:i18n="i18n"
|
|
23
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
24
|
+
:classes="classes"
|
|
25
|
+
bodyClassName="oauth"
|
|
26
|
+
>
|
|
27
|
+
<template #header>
|
|
28
|
+
<img
|
|
29
|
+
v-if="client.attributes.logoUri"
|
|
30
|
+
:src="client.attributes.logoUri"
|
|
31
|
+
alt="logo"
|
|
32
|
+
/>
|
|
33
|
+
<p>
|
|
34
|
+
<component
|
|
35
|
+
v-if="client.name"
|
|
36
|
+
:is="i18n.msg('oauthGrantTitle', i18n.advancedMsgStr(client.name))"
|
|
37
|
+
/>
|
|
38
|
+
<component
|
|
39
|
+
v-else
|
|
40
|
+
:is="i18n.msg('oauthGrantTitle', client.clientId)"
|
|
41
|
+
/>
|
|
42
|
+
</p>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<div
|
|
46
|
+
id="kc-oauth"
|
|
47
|
+
class="content-area"
|
|
48
|
+
>
|
|
49
|
+
<h3><component :is="i18n.msg('oauthGrantRequest')" /></h3>
|
|
50
|
+
<ul>
|
|
51
|
+
<li
|
|
52
|
+
v-for="clientScope in oauth.clientScopesRequested"
|
|
53
|
+
:key="clientScope.consentScreenText"
|
|
54
|
+
>
|
|
55
|
+
<span>
|
|
56
|
+
<component :is="i18n.advancedMsg(clientScope.consentScreenText)" />
|
|
57
|
+
<template v-if="clientScope.dynamicScopeParameter">
|
|
58
|
+
: <b>{{ clientScope.dynamicScopeParameter }}</b>
|
|
59
|
+
</template>
|
|
60
|
+
</span>
|
|
61
|
+
</li>
|
|
62
|
+
</ul>
|
|
63
|
+
|
|
64
|
+
<h3 v-if="client.attributes.policyUri || client.attributes.tosUri">
|
|
65
|
+
<component
|
|
66
|
+
v-if="client.name"
|
|
67
|
+
:is="i18n.msg('oauthGrantInformation', i18n.advancedMsgStr(client.name))"
|
|
68
|
+
/>
|
|
69
|
+
<component
|
|
70
|
+
v-else
|
|
71
|
+
:is="i18n.msg('oauthGrantInformation', client.clientId)"
|
|
72
|
+
/>
|
|
73
|
+
<template v-if="client.attributes.tosUri">
|
|
74
|
+
<component :is="i18n.msg('oauthGrantReview')" />
|
|
75
|
+
<a
|
|
76
|
+
:href="client.attributes.tosUri"
|
|
77
|
+
target="_blank"
|
|
78
|
+
>
|
|
79
|
+
<component :is="i18n.msg('oauthGrantTos')" />
|
|
80
|
+
</a>
|
|
81
|
+
</template>
|
|
82
|
+
<template v-if="client.attributes.policyUri">
|
|
83
|
+
<component :is="i18n.msg('oauthGrantReview')" />
|
|
84
|
+
<a
|
|
85
|
+
:href="client.attributes.policyUri"
|
|
86
|
+
target="_blank"
|
|
87
|
+
>
|
|
88
|
+
<component :is="i18n.msg('oauthGrantPolicy')" />
|
|
89
|
+
</a>
|
|
90
|
+
</template>
|
|
91
|
+
</h3>
|
|
92
|
+
|
|
93
|
+
<form
|
|
94
|
+
class="form-actions"
|
|
95
|
+
:action="url.oauthAction"
|
|
96
|
+
method="POST"
|
|
97
|
+
>
|
|
98
|
+
<input
|
|
99
|
+
type="hidden"
|
|
100
|
+
name="code"
|
|
101
|
+
:value="oauth.code"
|
|
102
|
+
/>
|
|
103
|
+
<div :class="kcClsx('kcFormGroupClass')">
|
|
104
|
+
<div id="kc-form-options">
|
|
105
|
+
<div :class="kcClsx('kcFormOptionsWrapperClass')"></div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div id="kc-form-buttons">
|
|
109
|
+
<div :class="kcClsx('kcFormButtonsWrapperClass')">
|
|
110
|
+
<input
|
|
111
|
+
:class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass')"
|
|
112
|
+
name="accept"
|
|
113
|
+
id="kc-login"
|
|
114
|
+
type="submit"
|
|
115
|
+
:value="i18n.msgStr('doYes')"
|
|
116
|
+
/>
|
|
117
|
+
<input
|
|
118
|
+
:class="kcClsx('kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass')"
|
|
119
|
+
name="cancel"
|
|
120
|
+
id="kc-cancel"
|
|
121
|
+
type="submit"
|
|
122
|
+
:value="i18n.msgStr('doNo')"
|
|
123
|
+
/>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</form>
|
|
128
|
+
<div class="clearfix"></div>
|
|
129
|
+
</div>
|
|
130
|
+
</component>
|
|
131
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'login-oauth-grant.ftl';
|
|
6
|
+
}>, I18n>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { ref } from 'vue';
|
|
6
|
+
import type { I18n } from '../i18n/i18n';
|
|
7
|
+
import type { PageProps } from './PageProps';
|
|
8
|
+
|
|
9
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'login-otp.ftl' }>, I18n>>();
|
|
10
|
+
|
|
11
|
+
const { kcClsx } = getKcClsx({
|
|
12
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
13
|
+
classes: props.classes,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const kcContext = props.kcContext;
|
|
17
|
+
const { otpLogin, url, messagesPerField } = kcContext;
|
|
18
|
+
|
|
19
|
+
const isSubmitting = ref(false);
|
|
20
|
+
|
|
21
|
+
function onSubmit() {
|
|
22
|
+
isSubmitting.value = true;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
28
|
+
<component
|
|
29
|
+
:is="Template"
|
|
30
|
+
:kcContext="kcContext"
|
|
31
|
+
:i18n="i18n"
|
|
32
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
33
|
+
:classes="classes"
|
|
34
|
+
:displayMessage="!messagesPerField.existsError('totp')"
|
|
35
|
+
>
|
|
36
|
+
<template #header>
|
|
37
|
+
<component :is="i18n.msg('doLogIn')" />
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<form
|
|
41
|
+
id="kc-otp-login-form"
|
|
42
|
+
:class="kcClsx('kcFormClass')"
|
|
43
|
+
:action="url.loginAction"
|
|
44
|
+
method="post"
|
|
45
|
+
@submit="onSubmit"
|
|
46
|
+
>
|
|
47
|
+
<div
|
|
48
|
+
v-if="otpLogin.userOtpCredentials.length > 1"
|
|
49
|
+
:class="kcClsx('kcFormGroupClass')"
|
|
50
|
+
>
|
|
51
|
+
<div :class="kcClsx('kcInputWrapperClass')">
|
|
52
|
+
<template
|
|
53
|
+
v-for="(otpCredential, index) in otpLogin.userOtpCredentials"
|
|
54
|
+
:key="otpCredential.id"
|
|
55
|
+
>
|
|
56
|
+
<input
|
|
57
|
+
:id="`kc-otp-credential-${index}`"
|
|
58
|
+
:class="kcClsx('kcLoginOTPListInputClass')"
|
|
59
|
+
type="radio"
|
|
60
|
+
name="selectedCredentialId"
|
|
61
|
+
:value="otpCredential.id"
|
|
62
|
+
:checked="otpCredential.id === otpLogin.selectedCredentialId"
|
|
63
|
+
/>
|
|
64
|
+
<label
|
|
65
|
+
:for="`kc-otp-credential-${index}`"
|
|
66
|
+
:class="kcClsx('kcLoginOTPListClass')"
|
|
67
|
+
:tabindex="index"
|
|
68
|
+
>
|
|
69
|
+
<span :class="kcClsx('kcLoginOTPListItemHeaderClass')">
|
|
70
|
+
<span :class="kcClsx('kcLoginOTPListItemIconBodyClass')">
|
|
71
|
+
<i
|
|
72
|
+
:class="kcClsx('kcLoginOTPListItemIconClass')"
|
|
73
|
+
aria-hidden="true"
|
|
74
|
+
></i>
|
|
75
|
+
</span>
|
|
76
|
+
<span :class="kcClsx('kcLoginOTPListItemTitleClass')">{{ otpCredential.userLabel }}</span>
|
|
77
|
+
</span>
|
|
78
|
+
</label>
|
|
79
|
+
</template>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<div :class="kcClsx('kcFormGroupClass')">
|
|
84
|
+
<div :class="kcClsx('kcLabelWrapperClass')">
|
|
85
|
+
<label
|
|
86
|
+
for="otp"
|
|
87
|
+
:class="kcClsx('kcLabelClass')"
|
|
88
|
+
>
|
|
89
|
+
<component :is="i18n.msg('loginOtpOneTime')" />
|
|
90
|
+
</label>
|
|
91
|
+
</div>
|
|
92
|
+
<div :class="kcClsx('kcInputWrapperClass')">
|
|
93
|
+
<input
|
|
94
|
+
id="otp"
|
|
95
|
+
name="otp"
|
|
96
|
+
autocomplete="off"
|
|
97
|
+
type="text"
|
|
98
|
+
:class="kcClsx('kcInputClass')"
|
|
99
|
+
autofocus
|
|
100
|
+
:aria-invalid="messagesPerField.existsError('totp')"
|
|
101
|
+
/>
|
|
102
|
+
<span
|
|
103
|
+
v-if="messagesPerField.existsError('totp')"
|
|
104
|
+
id="input-error-otp-code"
|
|
105
|
+
:class="kcClsx('kcInputErrorMessageClass')"
|
|
106
|
+
aria-live="polite"
|
|
107
|
+
v-html="kcSanitize(messagesPerField.get('totp'))"
|
|
108
|
+
></span>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
|
|
112
|
+
<div :class="kcClsx('kcFormGroupClass')">
|
|
113
|
+
<div
|
|
114
|
+
id="kc-form-options"
|
|
115
|
+
:class="kcClsx('kcFormOptionsClass')"
|
|
116
|
+
>
|
|
117
|
+
<div :class="kcClsx('kcFormOptionsWrapperClass')"></div>
|
|
118
|
+
</div>
|
|
119
|
+
<div
|
|
120
|
+
id="kc-form-buttons"
|
|
121
|
+
:class="kcClsx('kcFormButtonsClass')"
|
|
122
|
+
>
|
|
123
|
+
<input
|
|
124
|
+
:class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass')"
|
|
125
|
+
name="login"
|
|
126
|
+
id="kc-login"
|
|
127
|
+
type="submit"
|
|
128
|
+
:value="i18n.msgStr('doLogIn')"
|
|
129
|
+
:disabled="isSubmitting"
|
|
130
|
+
/>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</form>
|
|
134
|
+
</component>
|
|
135
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'login-otp.ftl';
|
|
6
|
+
}>, I18n>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
3
|
+
import type { I18n } from '../i18n/i18n';
|
|
4
|
+
import type { PageProps } from './PageProps';
|
|
5
|
+
|
|
6
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'login-page-expired.ftl' }>, I18n>>();
|
|
7
|
+
|
|
8
|
+
const kcContext = props.kcContext;
|
|
9
|
+
const { url } = kcContext;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<component
|
|
14
|
+
:is="Template"
|
|
15
|
+
:kcContext="kcContext"
|
|
16
|
+
:i18n="props.i18n"
|
|
17
|
+
:doUseDefaultCss="doUseDefaultCss"
|
|
18
|
+
:classes="classes"
|
|
19
|
+
>
|
|
20
|
+
<template #header>
|
|
21
|
+
<component :is="props.i18n.msg('pageExpiredTitle')" />
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<p
|
|
25
|
+
id="instruction1"
|
|
26
|
+
class="instruction"
|
|
27
|
+
>
|
|
28
|
+
<component :is="props.i18n.msg('pageExpiredMsg1')" />
|
|
29
|
+
<a
|
|
30
|
+
id="loginRestartLink"
|
|
31
|
+
:href="url.loginRestartFlowUrl"
|
|
32
|
+
>
|
|
33
|
+
<component :is="props.i18n.msg('doClickHere')" /> </a
|
|
34
|
+
> .<br />
|
|
35
|
+
<component :is="props.i18n.msg('pageExpiredMsg2')" />
|
|
36
|
+
<a
|
|
37
|
+
id="loginContinueLink"
|
|
38
|
+
:href="url.loginAction"
|
|
39
|
+
>
|
|
40
|
+
<component :is="props.i18n.msg('doClickHere')" /> </a
|
|
41
|
+
> .
|
|
42
|
+
</p>
|
|
43
|
+
</component>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/login/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'login-page-expired.ftl';
|
|
6
|
+
}>, I18n>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
type KcContextLike = {
|
|
3
|
+
url: {
|
|
4
|
+
resourcesPath: string;
|
|
5
|
+
};
|
|
6
|
+
isUserIdentified: boolean | 'true' | 'false';
|
|
7
|
+
challenge: string;
|
|
8
|
+
userVerification: string;
|
|
9
|
+
rpId: string;
|
|
10
|
+
createTimeout: number | string;
|
|
11
|
+
};
|
|
12
|
+
type I18nLike = {
|
|
13
|
+
msgStr: (key: 'webauthn-unsupported-browser-text' | 'passkey-unsupported-browser-text') => string;
|
|
14
|
+
isFetchingTranslations: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function useScript(params: {
|
|
17
|
+
authButtonId: string;
|
|
18
|
+
kcContext: KcContextLike;
|
|
19
|
+
i18n: Ref<I18nLike>;
|
|
20
|
+
}): void;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { onMounted, watch } from "vue";
|
|
2
|
+
import { useInsertScriptTags } from "../../tools/useInsertScriptTags";
|
|
3
|
+
import { assert } from "keycloakify/tools/assert";
|
|
4
|
+
import { waitForElementMountedOnDom } from "keycloakify/tools/waitForElementMountedOnDom";
|
|
5
|
+
assert();
|
|
6
|
+
assert();
|
|
7
|
+
function useScript(params) {
|
|
8
|
+
const { authButtonId, kcContext, i18n } = params;
|
|
9
|
+
const { url, isUserIdentified, challenge, userVerification, rpId, createTimeout } = kcContext;
|
|
10
|
+
const { insertScriptTags } = useInsertScriptTags({
|
|
11
|
+
componentOrHookName: "LoginPasskeysConditionalAuthenticate",
|
|
12
|
+
scriptTags: [
|
|
13
|
+
{
|
|
14
|
+
type: "module",
|
|
15
|
+
textContent: () => `
|
|
16
|
+
import { authenticateByWebAuthn } from "${url.resourcesPath}/js/webauthnAuthenticate.js";
|
|
17
|
+
import { initAuthenticate } from "${url.resourcesPath}/js/passkeysConditionalAuth.js";
|
|
18
|
+
|
|
19
|
+
const authButton = document.getElementById("${authButtonId}");
|
|
20
|
+
const input = {
|
|
21
|
+
isUserIdentified : ${isUserIdentified},
|
|
22
|
+
challenge : ${JSON.stringify(challenge)},
|
|
23
|
+
userVerification : ${JSON.stringify(userVerification)},
|
|
24
|
+
rpId : ${JSON.stringify(rpId)},
|
|
25
|
+
createTimeout : ${createTimeout}
|
|
26
|
+
};
|
|
27
|
+
authButton.addEventListener("click", () => {
|
|
28
|
+
authenticateByWebAuthn({
|
|
29
|
+
...input,
|
|
30
|
+
errmsg : ${JSON.stringify(i18n.value.msgStr("webauthn-unsupported-browser-text"))}
|
|
31
|
+
});
|
|
32
|
+
}, { once: true });
|
|
33
|
+
|
|
34
|
+
initAuthenticate({
|
|
35
|
+
...input,
|
|
36
|
+
errmsg : ${JSON.stringify(i18n.value.msgStr("passkey-unsupported-browser-text"))}
|
|
37
|
+
}, available => {
|
|
38
|
+
const loginForm = document.getElementById("kc-form-login");
|
|
39
|
+
const passkeyButton = document.getElementById("kc-form-passkey-button");
|
|
40
|
+
|
|
41
|
+
if (!loginForm || !passkeyButton) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (available) {
|
|
46
|
+
loginForm.style.display = "block";
|
|
47
|
+
} else {
|
|
48
|
+
passkeyButton.style.display = "block";
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
`
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
onMounted(() => {
|
|
56
|
+
const stopWatch = watch(
|
|
57
|
+
() => i18n.value.isFetchingTranslations,
|
|
58
|
+
async (isFetching) => {
|
|
59
|
+
if (isFetching) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
stopWatch();
|
|
63
|
+
await waitForElementMountedOnDom({
|
|
64
|
+
elementId: authButtonId
|
|
65
|
+
});
|
|
66
|
+
insertScriptTags();
|
|
67
|
+
},
|
|
68
|
+
{ immediate: true }
|
|
69
|
+
);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
useScript
|
|
74
|
+
};
|