@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,182 @@
|
|
|
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 type { I18n } from '../i18n/i18n';
|
|
6
|
+
import type { PageProps } from './PageProps';
|
|
7
|
+
|
|
8
|
+
const props = defineProps<PageProps<Extract<KcContext, { pageId: 'account.ftl' }>, I18n>>();
|
|
9
|
+
|
|
10
|
+
const classes = {
|
|
11
|
+
...props.classes,
|
|
12
|
+
kcBodyClass: clsx(props.classes?.kcBodyClass, 'user'),
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const { kcClsx } = getKcClsx({
|
|
16
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
17
|
+
classes,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const kcContext = props.kcContext;
|
|
21
|
+
const { url, realm, messagesPerField, stateChecker, account, referrer } = kcContext;
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<component
|
|
26
|
+
:is="Template"
|
|
27
|
+
:kcContext="kcContext"
|
|
28
|
+
:i18n="props.i18n"
|
|
29
|
+
:doUseDefaultCss="props.doUseDefaultCss"
|
|
30
|
+
:classes="classes"
|
|
31
|
+
active="account"
|
|
32
|
+
>
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10">
|
|
35
|
+
<h2><component :is="props.i18n.msg('editAccountHtmlTitle')" /></h2>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-md-2 subtitle">
|
|
38
|
+
<span class="subtitle">
|
|
39
|
+
<span class="required">*</span>
|
|
40
|
+
<component :is="props.i18n.msg('requiredFields')" />
|
|
41
|
+
</span>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<form
|
|
46
|
+
:action="url.accountUrl"
|
|
47
|
+
class="form-horizontal"
|
|
48
|
+
method="post"
|
|
49
|
+
>
|
|
50
|
+
<input
|
|
51
|
+
type="hidden"
|
|
52
|
+
id="stateChecker"
|
|
53
|
+
name="stateChecker"
|
|
54
|
+
:value="stateChecker"
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
<template v-if="!realm.registrationEmailAsUsername">
|
|
58
|
+
<div :class="clsx('form-group', messagesPerField.printIfExists('username', 'has-error'))">
|
|
59
|
+
<div class="col-sm-2 col-md-2">
|
|
60
|
+
<label
|
|
61
|
+
for="username"
|
|
62
|
+
class="control-label"
|
|
63
|
+
>
|
|
64
|
+
<component :is="props.i18n.msg('username')" />
|
|
65
|
+
</label>
|
|
66
|
+
<span
|
|
67
|
+
v-if="realm.editUsernameAllowed"
|
|
68
|
+
class="required"
|
|
69
|
+
>*</span
|
|
70
|
+
>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-10 col-md-10">
|
|
73
|
+
<input
|
|
74
|
+
type="text"
|
|
75
|
+
class="form-control"
|
|
76
|
+
id="username"
|
|
77
|
+
name="username"
|
|
78
|
+
:disabled="!realm.editUsernameAllowed"
|
|
79
|
+
:value="account.username ?? ''"
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<div :class="clsx('form-group', messagesPerField.printIfExists('email', 'has-error'))">
|
|
86
|
+
<div class="col-sm-2 col-md-2">
|
|
87
|
+
<label
|
|
88
|
+
for="email"
|
|
89
|
+
class="control-label"
|
|
90
|
+
>
|
|
91
|
+
<component :is="props.i18n.msg('email')" />
|
|
92
|
+
</label>
|
|
93
|
+
<span class="required">*</span>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-10 col-md-10">
|
|
96
|
+
<input
|
|
97
|
+
type="text"
|
|
98
|
+
class="form-control"
|
|
99
|
+
id="email"
|
|
100
|
+
name="email"
|
|
101
|
+
autofocus
|
|
102
|
+
:value="account.email ?? ''"
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<div :class="clsx('form-group', messagesPerField.printIfExists('firstName', 'has-error'))">
|
|
108
|
+
<div class="col-sm-2 col-md-2">
|
|
109
|
+
<label
|
|
110
|
+
for="firstName"
|
|
111
|
+
class="control-label"
|
|
112
|
+
>
|
|
113
|
+
<component :is="props.i18n.msg('firstName')" />
|
|
114
|
+
</label>
|
|
115
|
+
<span class="required">*</span>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="col-sm-10 col-md-10">
|
|
118
|
+
<input
|
|
119
|
+
type="text"
|
|
120
|
+
class="form-control"
|
|
121
|
+
id="firstName"
|
|
122
|
+
name="firstName"
|
|
123
|
+
:value="account.firstName ?? ''"
|
|
124
|
+
/>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<div :class="clsx('form-group', messagesPerField.printIfExists('lastName', 'has-error'))">
|
|
129
|
+
<div class="col-sm-2 col-md-2">
|
|
130
|
+
<label
|
|
131
|
+
for="lastName"
|
|
132
|
+
class="control-label"
|
|
133
|
+
>
|
|
134
|
+
<component :is="props.i18n.msg('lastName')" />
|
|
135
|
+
</label>
|
|
136
|
+
<span class="required">*</span>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="col-sm-10 col-md-10">
|
|
139
|
+
<input
|
|
140
|
+
type="text"
|
|
141
|
+
class="form-control"
|
|
142
|
+
id="lastName"
|
|
143
|
+
name="lastName"
|
|
144
|
+
:value="account.lastName ?? ''"
|
|
145
|
+
/>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<div class="form-group">
|
|
150
|
+
<div
|
|
151
|
+
id="kc-form-buttons"
|
|
152
|
+
class="col-md-offset-2 col-md-10 submit"
|
|
153
|
+
>
|
|
154
|
+
<div>
|
|
155
|
+
<a
|
|
156
|
+
v-if="referrer !== undefined"
|
|
157
|
+
:href="referrer?.url"
|
|
158
|
+
>
|
|
159
|
+
<component :is="props.i18n.msg('backToApplication')" />
|
|
160
|
+
</a>
|
|
161
|
+
<button
|
|
162
|
+
type="submit"
|
|
163
|
+
:class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass')"
|
|
164
|
+
name="submitAction"
|
|
165
|
+
value="Save"
|
|
166
|
+
>
|
|
167
|
+
<component :is="props.i18n.msg('doSave')" />
|
|
168
|
+
</button>
|
|
169
|
+
<button
|
|
170
|
+
type="submit"
|
|
171
|
+
:class="kcClsx('kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass')"
|
|
172
|
+
name="submitAction"
|
|
173
|
+
value="Cancel"
|
|
174
|
+
>
|
|
175
|
+
<component :is="props.i18n.msg('doCancel')" />
|
|
176
|
+
</button>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</form>
|
|
181
|
+
</component>
|
|
182
|
+
</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: 'account.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,192 @@
|
|
|
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: 'applications.ftl' }>, I18n>>();
|
|
8
|
+
|
|
9
|
+
const { kcClsx } = getKcClsx({
|
|
10
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
11
|
+
classes: props.classes,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const kcContext = props.kcContext;
|
|
15
|
+
const {
|
|
16
|
+
url,
|
|
17
|
+
applications: { applications },
|
|
18
|
+
stateChecker,
|
|
19
|
+
} = kcContext;
|
|
20
|
+
|
|
21
|
+
function isArrayWithEmptyObject(variable: unknown): boolean {
|
|
22
|
+
return (
|
|
23
|
+
Array.isArray(variable) &&
|
|
24
|
+
variable.length === 1 &&
|
|
25
|
+
typeof variable[0] === 'object' &&
|
|
26
|
+
variable[0] !== null &&
|
|
27
|
+
Object.keys(variable[0]).length === 0
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<component
|
|
34
|
+
:is="Template"
|
|
35
|
+
:kcContext="kcContext"
|
|
36
|
+
:i18n="props.i18n"
|
|
37
|
+
:doUseDefaultCss="props.doUseDefaultCss"
|
|
38
|
+
:classes="props.classes"
|
|
39
|
+
active="applications"
|
|
40
|
+
>
|
|
41
|
+
<div class="row">
|
|
42
|
+
<div class="col-md-10">
|
|
43
|
+
<h2><component :is="props.i18n.msg('applicationsHtmlTitle')" /></h2>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<form
|
|
47
|
+
:action="url.applicationsUrl"
|
|
48
|
+
method="post"
|
|
49
|
+
>
|
|
50
|
+
<input
|
|
51
|
+
type="hidden"
|
|
52
|
+
id="stateChecker"
|
|
53
|
+
name="stateChecker"
|
|
54
|
+
:value="stateChecker"
|
|
55
|
+
/>
|
|
56
|
+
<input
|
|
57
|
+
type="hidden"
|
|
58
|
+
id="referrer"
|
|
59
|
+
name="referrer"
|
|
60
|
+
:value="stateChecker"
|
|
61
|
+
/>
|
|
62
|
+
|
|
63
|
+
<table class="table table-striped table-bordered">
|
|
64
|
+
<thead>
|
|
65
|
+
<tr>
|
|
66
|
+
<td><component :is="props.i18n.msg('application')" /></td>
|
|
67
|
+
<td><component :is="props.i18n.msg('availableRoles')" /></td>
|
|
68
|
+
<td><component :is="props.i18n.msg('grantedPermissions')" /></td>
|
|
69
|
+
<td><component :is="props.i18n.msg('additionalGrants')" /></td>
|
|
70
|
+
<td><component :is="props.i18n.msg('action')" /></td>
|
|
71
|
+
</tr>
|
|
72
|
+
</thead>
|
|
73
|
+
|
|
74
|
+
<tbody>
|
|
75
|
+
<tr
|
|
76
|
+
v-for="application in applications"
|
|
77
|
+
:key="application.client.clientId"
|
|
78
|
+
>
|
|
79
|
+
<!-- Application name cell -->
|
|
80
|
+
<td>
|
|
81
|
+
<template v-if="application.effectiveUrl">
|
|
82
|
+
<a :href="application.effectiveUrl">
|
|
83
|
+
<template v-if="application.client.name">
|
|
84
|
+
<component :is="props.i18n.advancedMsg(application.client.name)" />
|
|
85
|
+
</template>
|
|
86
|
+
<template v-else>{{ application.client.clientId }}</template>
|
|
87
|
+
</a>
|
|
88
|
+
</template>
|
|
89
|
+
<template v-else>
|
|
90
|
+
<template v-if="application.client.name">
|
|
91
|
+
<component :is="props.i18n.advancedMsg(application.client.name)" />
|
|
92
|
+
</template>
|
|
93
|
+
<template v-else>{{ application.client.clientId }}</template>
|
|
94
|
+
</template>
|
|
95
|
+
</td>
|
|
96
|
+
|
|
97
|
+
<!-- Available roles cell -->
|
|
98
|
+
<td>
|
|
99
|
+
<template v-if="!isArrayWithEmptyObject(application.realmRolesAvailable)">
|
|
100
|
+
<span
|
|
101
|
+
v-for="(role, index) in application.realmRolesAvailable"
|
|
102
|
+
:key="role.name"
|
|
103
|
+
>
|
|
104
|
+
<template v-if="role.description">
|
|
105
|
+
<component :is="props.i18n.advancedMsg(role.description)" />
|
|
106
|
+
</template>
|
|
107
|
+
<template v-else>
|
|
108
|
+
<component :is="props.i18n.advancedMsg(role.name)" />
|
|
109
|
+
</template>
|
|
110
|
+
<template v-if="index < application.realmRolesAvailable.length - 1">, </template>
|
|
111
|
+
</span>
|
|
112
|
+
</template>
|
|
113
|
+
|
|
114
|
+
<template v-if="application.resourceRolesAvailable">
|
|
115
|
+
<span
|
|
116
|
+
v-for="resource in Object.keys(application.resourceRolesAvailable)"
|
|
117
|
+
:key="resource"
|
|
118
|
+
>
|
|
119
|
+
<template v-if="!isArrayWithEmptyObject(application.realmRolesAvailable)">, </template>
|
|
120
|
+
<span
|
|
121
|
+
v-for="(clientRole, roleIndex) in application.resourceRolesAvailable[resource]"
|
|
122
|
+
:key="clientRole.roleName"
|
|
123
|
+
>
|
|
124
|
+
<template v-if="clientRole.roleDescription">
|
|
125
|
+
<component :is="props.i18n.advancedMsg(clientRole.roleDescription)" />
|
|
126
|
+
</template>
|
|
127
|
+
<template v-else>
|
|
128
|
+
<component :is="props.i18n.advancedMsg(clientRole.roleName)" />
|
|
129
|
+
</template>
|
|
130
|
+
{{ ' ' }}<component :is="props.i18n.msg('inResource')" />{{ ' ' }}
|
|
131
|
+
<strong>
|
|
132
|
+
<template v-if="clientRole.clientName">
|
|
133
|
+
<component :is="props.i18n.advancedMsg(clientRole.clientName)" />
|
|
134
|
+
</template>
|
|
135
|
+
<template v-else>{{ clientRole.clientId }}</template>
|
|
136
|
+
</strong>
|
|
137
|
+
<template v-if="roleIndex < application.resourceRolesAvailable[resource].length - 1">, </template>
|
|
138
|
+
</span>
|
|
139
|
+
</span>
|
|
140
|
+
</template>
|
|
141
|
+
</td>
|
|
142
|
+
|
|
143
|
+
<!-- Granted permissions cell -->
|
|
144
|
+
<td>
|
|
145
|
+
<template v-if="application.client.consentRequired">
|
|
146
|
+
<span
|
|
147
|
+
v-for="(claim, claimIndex) in application.clientScopesGranted"
|
|
148
|
+
:key="claim"
|
|
149
|
+
>
|
|
150
|
+
<component :is="props.i18n.advancedMsg(claim)" />
|
|
151
|
+
<template v-if="claimIndex < application.clientScopesGranted.length - 1">, </template>
|
|
152
|
+
</span>
|
|
153
|
+
</template>
|
|
154
|
+
<template v-else>
|
|
155
|
+
<strong><component :is="props.i18n.msg('fullAccess')" /></strong>
|
|
156
|
+
</template>
|
|
157
|
+
</td>
|
|
158
|
+
|
|
159
|
+
<!-- Additional grants cell -->
|
|
160
|
+
<td>
|
|
161
|
+
<span
|
|
162
|
+
v-for="(grant, grantIndex) in application.additionalGrants"
|
|
163
|
+
:key="grant"
|
|
164
|
+
>
|
|
165
|
+
<component :is="props.i18n.advancedMsg(grant)" />
|
|
166
|
+
<template v-if="grantIndex < application.additionalGrants.length - 1">, </template>
|
|
167
|
+
</span>
|
|
168
|
+
</td>
|
|
169
|
+
|
|
170
|
+
<!-- Action cell -->
|
|
171
|
+
<td>
|
|
172
|
+
<button
|
|
173
|
+
v-if="
|
|
174
|
+
(application.client.consentRequired && application.clientScopesGranted.length > 0) ||
|
|
175
|
+
application.additionalGrants.length > 0
|
|
176
|
+
"
|
|
177
|
+
type="submit"
|
|
178
|
+
:class="kcClsx('kcButtonPrimaryClass', 'kcButtonClass')"
|
|
179
|
+
:id="`revoke-${application.client.clientId}`"
|
|
180
|
+
name="clientId"
|
|
181
|
+
:value="application.client.id"
|
|
182
|
+
>
|
|
183
|
+
<component :is="props.i18n.msg('revoke')" />
|
|
184
|
+
</button>
|
|
185
|
+
</td>
|
|
186
|
+
</tr>
|
|
187
|
+
</tbody>
|
|
188
|
+
</table>
|
|
189
|
+
</form>
|
|
190
|
+
</div>
|
|
191
|
+
</component>
|
|
192
|
+
</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: 'applications.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,123 @@
|
|
|
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: 'federatedIdentity.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, federatedIdentity, stateChecker } = 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="social"
|
|
26
|
+
>
|
|
27
|
+
<div class="main-layout social">
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="col-md-10">
|
|
30
|
+
<h2><component :is="props.i18n.msg('federatedIdentitiesHtmlTitle')" /></h2>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div id="federated-identities">
|
|
35
|
+
<div
|
|
36
|
+
v-for="identity in federatedIdentity.identities"
|
|
37
|
+
:key="identity.providerId"
|
|
38
|
+
class="row margin-bottom"
|
|
39
|
+
>
|
|
40
|
+
<div class="col-sm-2 col-md-2">
|
|
41
|
+
<label
|
|
42
|
+
:for="identity.providerId"
|
|
43
|
+
class="control-label"
|
|
44
|
+
>
|
|
45
|
+
{{ identity.displayName }}
|
|
46
|
+
</label>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div class="col-sm-5 col-md-5">
|
|
50
|
+
<input
|
|
51
|
+
disabled
|
|
52
|
+
class="form-control"
|
|
53
|
+
:value="identity.userName"
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div class="col-sm-5 col-md-5">
|
|
58
|
+
<template v-if="identity.connected">
|
|
59
|
+
<form
|
|
60
|
+
v-if="federatedIdentity.removeLinkPossible"
|
|
61
|
+
:action="url.socialUrl"
|
|
62
|
+
method="post"
|
|
63
|
+
class="form-inline"
|
|
64
|
+
>
|
|
65
|
+
<input
|
|
66
|
+
type="hidden"
|
|
67
|
+
name="stateChecker"
|
|
68
|
+
:value="stateChecker"
|
|
69
|
+
/>
|
|
70
|
+
<input
|
|
71
|
+
type="hidden"
|
|
72
|
+
name="action"
|
|
73
|
+
value="remove"
|
|
74
|
+
/>
|
|
75
|
+
<input
|
|
76
|
+
type="hidden"
|
|
77
|
+
name="providerId"
|
|
78
|
+
:value="identity.providerId"
|
|
79
|
+
/>
|
|
80
|
+
<button
|
|
81
|
+
:id="`remove-link-${identity.providerId}`"
|
|
82
|
+
class="btn btn-default"
|
|
83
|
+
>
|
|
84
|
+
<component :is="props.i18n.msg('doRemove')" />
|
|
85
|
+
</button>
|
|
86
|
+
</form>
|
|
87
|
+
</template>
|
|
88
|
+
|
|
89
|
+
<template v-else>
|
|
90
|
+
<form
|
|
91
|
+
:action="url.socialUrl"
|
|
92
|
+
method="post"
|
|
93
|
+
class="form-inline"
|
|
94
|
+
>
|
|
95
|
+
<input
|
|
96
|
+
type="hidden"
|
|
97
|
+
name="stateChecker"
|
|
98
|
+
:value="stateChecker"
|
|
99
|
+
/>
|
|
100
|
+
<input
|
|
101
|
+
type="hidden"
|
|
102
|
+
name="action"
|
|
103
|
+
value="add"
|
|
104
|
+
/>
|
|
105
|
+
<input
|
|
106
|
+
type="hidden"
|
|
107
|
+
name="providerId"
|
|
108
|
+
:value="identity.providerId"
|
|
109
|
+
/>
|
|
110
|
+
<button
|
|
111
|
+
:id="`add-link-${identity.providerId}`"
|
|
112
|
+
class="btn btn-default"
|
|
113
|
+
>
|
|
114
|
+
<component :is="props.i18n.msg('doAdd')" />
|
|
115
|
+
</button>
|
|
116
|
+
</form>
|
|
117
|
+
</template>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</component>
|
|
123
|
+
</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: 'federatedIdentity.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,64 @@
|
|
|
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: 'log.ftl' }>, I18n>>();
|
|
8
|
+
|
|
9
|
+
const { kcClsx } = getKcClsx({
|
|
10
|
+
doUseDefaultCss: props.doUseDefaultCss,
|
|
11
|
+
classes: props.classes,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const kcContext = props.kcContext;
|
|
15
|
+
const { log } = 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="log"
|
|
26
|
+
>
|
|
27
|
+
<div :class="kcClsx('kcContentWrapperClass')">
|
|
28
|
+
<div class="col-md-10">
|
|
29
|
+
<h2><component :is="props.i18n.msg('accountLogHtmlTitle')" /></h2>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<table class="table table-striped table-bordered">
|
|
34
|
+
<thead>
|
|
35
|
+
<tr>
|
|
36
|
+
<td><component :is="props.i18n.msg('date')" /></td>
|
|
37
|
+
<td><component :is="props.i18n.msg('event')" /></td>
|
|
38
|
+
<td><component :is="props.i18n.msg('ip')" /></td>
|
|
39
|
+
<td><component :is="props.i18n.msg('client')" /></td>
|
|
40
|
+
<td><component :is="props.i18n.msg('details')" /></td>
|
|
41
|
+
</tr>
|
|
42
|
+
</thead>
|
|
43
|
+
|
|
44
|
+
<tbody>
|
|
45
|
+
<tr
|
|
46
|
+
v-for="(event, index) in log.events"
|
|
47
|
+
:key="index"
|
|
48
|
+
>
|
|
49
|
+
<td>{{ event.date ? new Date(event.date).toLocaleString() : '' }}</td>
|
|
50
|
+
<td>{{ event.event }}</td>
|
|
51
|
+
<td>{{ event.ipAddress }}</td>
|
|
52
|
+
<td>{{ event.client || '' }}</td>
|
|
53
|
+
<td>
|
|
54
|
+
<span
|
|
55
|
+
v-for="(detail, detailIndex) in event.details"
|
|
56
|
+
:key="detailIndex"
|
|
57
|
+
>{{ `${detail.key} = ${detail.value}` }}{{ detailIndex < event.details.length - 1 ? ', ' : '' }}</span
|
|
58
|
+
>
|
|
59
|
+
</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</tbody>
|
|
62
|
+
</table>
|
|
63
|
+
</component>
|
|
64
|
+
</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: 'log.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,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { I18n } from '../i18n/i18n';
|
|
3
|
+
import type { PageProps } from './PageProps';
|
|
4
|
+
|
|
5
|
+
const props = defineProps<PageProps<any, I18n>>();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<component
|
|
10
|
+
:is="Template"
|
|
11
|
+
:kcContext="props.kcContext"
|
|
12
|
+
:i18n="props.i18n"
|
|
13
|
+
:doUseDefaultCss="props.doUseDefaultCss"
|
|
14
|
+
:classes="props.classes"
|
|
15
|
+
active=""
|
|
16
|
+
>
|
|
17
|
+
<div style="padding: 2rem; font-family: sans-serif">
|
|
18
|
+
<h1>Not implemented yet</h1>
|
|
19
|
+
<p>
|
|
20
|
+
Page <code>{{ props.kcContext.pageId }}</code> does not have a Vue implementation yet.
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
|
+
</component>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { I18n } from '../i18n/i18n';
|
|
2
|
+
import type { PageProps } from './PageProps';
|
|
3
|
+
type __VLS_Props = PageProps<any, I18n>;
|
|
4
|
+
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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ClassKey, type TemplateProps } from '../TemplateProps';
|
|
2
|
+
import type { Component } from 'vue';
|
|
3
|
+
export type PageProps<NarrowedKcContext, I18n> = {
|
|
4
|
+
Template: Component<TemplateProps<NarrowedKcContext, I18n>>;
|
|
5
|
+
kcContext: NarrowedKcContext;
|
|
6
|
+
i18n: I18n;
|
|
7
|
+
doUseDefaultCss: boolean;
|
|
8
|
+
classes?: Partial<Record<ClassKey, string>>;
|
|
9
|
+
};
|
|
File without changes
|