@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,247 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, computed } from 'vue';
|
|
3
|
+
import { clsx } from 'keycloakify/tools/clsx';
|
|
4
|
+
import type { KcContext } from 'keycloakify/account/KcContext';
|
|
5
|
+
import { getKcClsx } from 'keycloakify/account/lib/kcClsx';
|
|
6
|
+
import type { I18n } from '../i18n/i18n';
|
|
7
|
+
import type { PageProps } from './PageProps';
|
|
8
|
+
|
|
9
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'password.ftl' }>, I18n>>();
|
|
10
|
+
|
|
11
|
+
const classes = {
|
|
12
|
+
...props.classes,
|
|
13
|
+
kcBodyClass: clsx(props.classes?.kcBodyClass, 'password'),
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const { kcClsx } = getKcClsx({
|
|
17
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
18
|
+
classes,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const { url, password, account, stateChecker } = props.kcContext;
|
|
22
|
+
const { msgStr, msg } = props.i18n;
|
|
23
|
+
|
|
24
|
+
// Reactive state for password fields
|
|
25
|
+
const currentPassword = ref('');
|
|
26
|
+
const newPassword = ref('');
|
|
27
|
+
const newPasswordConfirm = ref('');
|
|
28
|
+
const newPasswordError = ref('');
|
|
29
|
+
const newPasswordConfirmError = ref('');
|
|
30
|
+
const hasNewPasswordBlurred = ref(false);
|
|
31
|
+
const hasNewPasswordConfirmBlurred = ref(false);
|
|
32
|
+
|
|
33
|
+
function checkNewPassword(value: string) {
|
|
34
|
+
if (!password.passwordSet) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (value === currentPassword.value) {
|
|
38
|
+
newPasswordError.value = msgStr('newPasswordSameAsOld');
|
|
39
|
+
} else {
|
|
40
|
+
newPasswordError.value = '';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function checkNewPasswordConfirm(value: string) {
|
|
45
|
+
if (value === '') {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (newPassword.value !== value) {
|
|
49
|
+
newPasswordConfirmError.value = msgStr('passwordConfirmNotMatch');
|
|
50
|
+
} else {
|
|
51
|
+
newPasswordConfirmError.value = '';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function onNewPasswordChange(event: Event) {
|
|
56
|
+
const value = (event.target as HTMLInputElement).value;
|
|
57
|
+
newPassword.value = value;
|
|
58
|
+
if (hasNewPasswordBlurred.value) {
|
|
59
|
+
checkNewPassword(value);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function onNewPasswordBlur() {
|
|
64
|
+
hasNewPasswordBlurred.value = true;
|
|
65
|
+
checkNewPassword(newPassword.value);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function onNewPasswordConfirmChange(event: Event) {
|
|
69
|
+
const value = (event.target as HTMLInputElement).value;
|
|
70
|
+
newPasswordConfirm.value = value;
|
|
71
|
+
if (hasNewPasswordConfirmBlurred.value) {
|
|
72
|
+
checkNewPasswordConfirm(value);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function onNewPasswordConfirmBlur() {
|
|
77
|
+
hasNewPasswordConfirmBlurred.value = true;
|
|
78
|
+
checkNewPasswordConfirm(newPasswordConfirm.value);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Synthetic kcContext override: replace message with client-side validation error
|
|
82
|
+
const kcContextWithMessageOverride = computed(() => ({
|
|
83
|
+
...props.kcContext,
|
|
84
|
+
message: (() => {
|
|
85
|
+
if (newPasswordError.value !== '') {
|
|
86
|
+
return {
|
|
87
|
+
type: 'error' as const,
|
|
88
|
+
summary: newPasswordError.value,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (newPasswordConfirmError.value !== '') {
|
|
92
|
+
return {
|
|
93
|
+
type: 'error' as const,
|
|
94
|
+
summary: newPasswordConfirmError.value,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
return props.kcContext.message;
|
|
98
|
+
})(),
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
const isSubmitDisabled = computed(() => newPasswordError.value !== '' || newPasswordConfirmError.value !== '');
|
|
102
|
+
</script>
|
|
103
|
+
|
|
104
|
+
<template>
|
|
105
|
+
<component
|
|
106
|
+
:is="Template"
|
|
107
|
+
:kcContext="kcContextWithMessageOverride"
|
|
108
|
+
:i18n="props.i18n"
|
|
109
|
+
:doUseDefaultCss="props.doUseDefaultCss"
|
|
110
|
+
:classes="classes"
|
|
111
|
+
active="password"
|
|
112
|
+
>
|
|
113
|
+
<div class="row">
|
|
114
|
+
<div class="col-md-10">
|
|
115
|
+
<h2><component :is="msg('changePasswordHtmlTitle')" /></h2>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="col-md-2 subtitle">
|
|
118
|
+
<span class="subtitle">
|
|
119
|
+
<component :is="msg('allFieldsRequired')" />
|
|
120
|
+
</span>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<form
|
|
125
|
+
:action="url.passwordUrl"
|
|
126
|
+
class="form-horizontal"
|
|
127
|
+
method="post"
|
|
128
|
+
>
|
|
129
|
+
<!-- Hidden username input for password-manager autocomplete -->
|
|
130
|
+
<input
|
|
131
|
+
type="text"
|
|
132
|
+
id="username"
|
|
133
|
+
name="username"
|
|
134
|
+
:value="account.username ?? ''"
|
|
135
|
+
autocomplete="username"
|
|
136
|
+
readonly
|
|
137
|
+
style="display: none"
|
|
138
|
+
/>
|
|
139
|
+
|
|
140
|
+
<!-- Current password (only shown when password is already set) -->
|
|
141
|
+
<div
|
|
142
|
+
v-if="password.passwordSet"
|
|
143
|
+
class="form-group"
|
|
144
|
+
>
|
|
145
|
+
<div class="col-sm-2 col-md-2">
|
|
146
|
+
<label
|
|
147
|
+
for="password"
|
|
148
|
+
class="control-label"
|
|
149
|
+
>
|
|
150
|
+
<component :is="msg('password')" />
|
|
151
|
+
</label>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="col-sm-10 col-md-10">
|
|
154
|
+
<input
|
|
155
|
+
type="password"
|
|
156
|
+
class="form-control"
|
|
157
|
+
id="password"
|
|
158
|
+
name="password"
|
|
159
|
+
autofocus
|
|
160
|
+
autocomplete="current-password"
|
|
161
|
+
:value="currentPassword"
|
|
162
|
+
@input="
|
|
163
|
+
(e) => {
|
|
164
|
+
currentPassword = (e.target as HTMLInputElement).value;
|
|
165
|
+
}
|
|
166
|
+
"
|
|
167
|
+
/>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
|
|
171
|
+
<input
|
|
172
|
+
type="hidden"
|
|
173
|
+
id="stateChecker"
|
|
174
|
+
name="stateChecker"
|
|
175
|
+
:value="stateChecker"
|
|
176
|
+
/>
|
|
177
|
+
|
|
178
|
+
<!-- New password -->
|
|
179
|
+
<div class="form-group">
|
|
180
|
+
<div class="col-sm-2 col-md-2">
|
|
181
|
+
<label
|
|
182
|
+
for="password-new"
|
|
183
|
+
class="control-label"
|
|
184
|
+
>
|
|
185
|
+
<component :is="msg('passwordNew')" />
|
|
186
|
+
</label>
|
|
187
|
+
</div>
|
|
188
|
+
<div class="col-sm-10 col-md-10">
|
|
189
|
+
<input
|
|
190
|
+
type="password"
|
|
191
|
+
class="form-control"
|
|
192
|
+
id="password-new"
|
|
193
|
+
name="password-new"
|
|
194
|
+
autocomplete="new-password"
|
|
195
|
+
:value="newPassword"
|
|
196
|
+
@input="onNewPasswordChange"
|
|
197
|
+
@blur="onNewPasswordBlur"
|
|
198
|
+
/>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
<!-- Confirm new password -->
|
|
203
|
+
<div class="form-group">
|
|
204
|
+
<div class="col-sm-2 col-md-2">
|
|
205
|
+
<label
|
|
206
|
+
for="password-confirm"
|
|
207
|
+
class="control-label two-lines"
|
|
208
|
+
>
|
|
209
|
+
<component :is="msg('passwordConfirm')" />
|
|
210
|
+
</label>
|
|
211
|
+
</div>
|
|
212
|
+
<div class="col-sm-10 col-md-10">
|
|
213
|
+
<input
|
|
214
|
+
type="password"
|
|
215
|
+
class="form-control"
|
|
216
|
+
id="password-confirm"
|
|
217
|
+
name="password-confirm"
|
|
218
|
+
autocomplete="new-password"
|
|
219
|
+
:value="newPasswordConfirm"
|
|
220
|
+
@input="onNewPasswordConfirmChange"
|
|
221
|
+
@blur="onNewPasswordConfirmBlur"
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
|
|
226
|
+
<!-- Submit -->
|
|
227
|
+
<div class="form-group">
|
|
228
|
+
<div
|
|
229
|
+
id="kc-form-buttons"
|
|
230
|
+
class="col-md-offset-2 col-md-10 submit"
|
|
231
|
+
>
|
|
232
|
+
<div>
|
|
233
|
+
<button
|
|
234
|
+
:disabled="isSubmitDisabled"
|
|
235
|
+
type="submit"
|
|
236
|
+
:class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass')"
|
|
237
|
+
name="submitAction"
|
|
238
|
+
value="Save"
|
|
239
|
+
>
|
|
240
|
+
<component :is="msg('doSave')" />
|
|
241
|
+
</button>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
</form>
|
|
246
|
+
</component>
|
|
247
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/account/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'password.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,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,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/account/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'sessions.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,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,9 @@
|
|
|
1
|
+
import type { KcContext } from 'keycloakify/account/KcContext';
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
type __VLS_Props = PageProps<Extract<KcContext, {
|
|
5
|
+
pageId: 'totp.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;
|