@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.
Files changed (349) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -0
  3. package/keycloakify-vue/account/DefaultPage.vue +55 -0
  4. package/keycloakify-vue/account/DefaultPage.vue.d.ts +14 -0
  5. package/keycloakify-vue/account/KcContext/index.d.ts +1 -0
  6. package/keycloakify-vue/account/KcContext/index.js +0 -0
  7. package/keycloakify-vue/account/Template.useInitialize.d.ts +13 -0
  8. package/keycloakify-vue/account/Template.useInitialize.js +20 -0
  9. package/keycloakify-vue/account/Template.vue +178 -0
  10. package/keycloakify-vue/account/Template.vue.d.ts +17 -0
  11. package/keycloakify-vue/account/TemplateProps.d.ts +9 -0
  12. package/keycloakify-vue/account/TemplateProps.js +0 -0
  13. package/keycloakify-vue/account/i18n/i18n.d.ts +11 -0
  14. package/keycloakify-vue/account/i18n/i18n.js +0 -0
  15. package/keycloakify-vue/account/i18n/i18nBuilder.d.ts +18 -0
  16. package/keycloakify-vue/account/i18n/i18nBuilder.js +29 -0
  17. package/keycloakify-vue/account/i18n/index.d.ts +1 -0
  18. package/keycloakify-vue/account/i18n/index.js +1 -0
  19. package/keycloakify-vue/account/i18n/useI18n.d.ts +28 -0
  20. package/keycloakify-vue/account/i18n/useI18n.js +67 -0
  21. package/keycloakify-vue/account/index.d.ts +4 -0
  22. package/keycloakify-vue/account/index.js +8 -0
  23. package/keycloakify-vue/account/pages/Account.vue +182 -0
  24. package/keycloakify-vue/account/pages/Account.vue.d.ts +9 -0
  25. package/keycloakify-vue/account/pages/Applications.vue +192 -0
  26. package/keycloakify-vue/account/pages/Applications.vue.d.ts +9 -0
  27. package/keycloakify-vue/account/pages/FederatedIdentity.vue +123 -0
  28. package/keycloakify-vue/account/pages/FederatedIdentity.vue.d.ts +9 -0
  29. package/keycloakify-vue/account/pages/Log.vue +64 -0
  30. package/keycloakify-vue/account/pages/Log.vue.d.ts +9 -0
  31. package/keycloakify-vue/account/pages/NotImplemented.vue +24 -0
  32. package/keycloakify-vue/account/pages/NotImplemented.vue.d.ts +6 -0
  33. package/keycloakify-vue/account/pages/PageProps.d.ts +9 -0
  34. package/keycloakify-vue/account/pages/PageProps.js +0 -0
  35. package/keycloakify-vue/account/pages/Password.vue +247 -0
  36. package/keycloakify-vue/account/pages/Password.vue.d.ts +9 -0
  37. package/keycloakify-vue/account/pages/Sessions.vue +84 -0
  38. package/keycloakify-vue/account/pages/Sessions.vue.d.ts +9 -0
  39. package/keycloakify-vue/account/pages/Totp.vue +308 -0
  40. package/keycloakify-vue/account/pages/Totp.vue.d.ts +9 -0
  41. package/keycloakify-vue/bin/index.js +14 -0
  42. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcContext.js +0 -0
  43. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPage.vue +23 -0
  44. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPageStory.js +18 -0
  45. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/KcPageStory.vue +13 -0
  46. package/keycloakify-vue/bin/initialize-account-theme/boilerplate/i18n.js +5 -0
  47. package/keycloakify-vue/login/DefaultPage.vue +167 -0
  48. package/keycloakify-vue/login/DefaultPage.vue.d.ts +20 -0
  49. package/keycloakify-vue/login/Template.useInitialize.d.ts +18 -0
  50. package/keycloakify-vue/login/Template.useInitialize.js +49 -0
  51. package/keycloakify-vue/login/Template.vue +239 -0
  52. package/keycloakify-vue/login/Template.vue.d.ts +26 -0
  53. package/keycloakify-vue/login/TemplateProps.d.ts +14 -0
  54. package/keycloakify-vue/login/TemplateProps.js +0 -0
  55. package/keycloakify-vue/login/components/AddRemoveButtonsMultiValuedAttribute.vue +59 -0
  56. package/keycloakify-vue/login/components/AddRemoveButtonsMultiValuedAttribute.vue.d.ts +15 -0
  57. package/keycloakify-vue/login/components/FieldErrors.vue +35 -0
  58. package/keycloakify-vue/login/components/FieldErrors.vue.d.ts +14 -0
  59. package/keycloakify-vue/login/components/GroupLabel.vue +68 -0
  60. package/keycloakify-vue/login/components/GroupLabel.vue.d.ts +14 -0
  61. package/keycloakify-vue/login/components/InputFieldByType.vue +94 -0
  62. package/keycloakify-vue/login/components/InputFieldByType.vue.d.ts +4 -0
  63. package/keycloakify-vue/login/components/InputFieldByTypeProps.d.ts +12 -0
  64. package/keycloakify-vue/login/components/InputFieldByTypeProps.js +0 -0
  65. package/keycloakify-vue/login/components/InputTag.vue +105 -0
  66. package/keycloakify-vue/login/components/InputTag.vue.d.ts +7 -0
  67. package/keycloakify-vue/login/components/InputTagSelects.vue +108 -0
  68. package/keycloakify-vue/login/components/InputTagSelects.vue.d.ts +4 -0
  69. package/keycloakify-vue/login/components/LogoutOtherSessions.vue +27 -0
  70. package/keycloakify-vue/login/components/LogoutOtherSessions.vue.d.ts +9 -0
  71. package/keycloakify-vue/login/components/PasswordWrapper.vue +42 -0
  72. package/keycloakify-vue/login/components/PasswordWrapper.vue.d.ts +20 -0
  73. package/keycloakify-vue/login/components/SelectTag.vue +74 -0
  74. package/keycloakify-vue/login/components/SelectTag.vue.d.ts +4 -0
  75. package/keycloakify-vue/login/components/TermsAcceptance.vue +59 -0
  76. package/keycloakify-vue/login/components/TermsAcceptance.vue.d.ts +13 -0
  77. package/keycloakify-vue/login/components/TextareaTag.vue +47 -0
  78. package/keycloakify-vue/login/components/TextareaTag.vue.d.ts +4 -0
  79. package/keycloakify-vue/login/components/UserProfileFormFields.vue +119 -0
  80. package/keycloakify-vue/login/components/UserProfileFormFields.vue.d.ts +33 -0
  81. package/keycloakify-vue/login/components/UserProfileFormFieldsProps.d.ts +22 -0
  82. package/keycloakify-vue/login/components/UserProfileFormFieldsProps.js +0 -0
  83. package/keycloakify-vue/login/components/inputLabel.d.ts +4 -0
  84. package/keycloakify-vue/login/components/inputLabel.js +15 -0
  85. package/keycloakify-vue/login/i18n/i18n.d.ts +11 -0
  86. package/keycloakify-vue/login/i18n/i18n.js +0 -0
  87. package/keycloakify-vue/login/i18n/i18nBuilder.d.ts +18 -0
  88. package/keycloakify-vue/login/i18n/i18nBuilder.js +29 -0
  89. package/keycloakify-vue/login/i18n/index.d.ts +1 -0
  90. package/keycloakify-vue/login/i18n/index.js +1 -0
  91. package/keycloakify-vue/login/i18n/useI18n.d.ts +28 -0
  92. package/keycloakify-vue/login/i18n/useI18n.js +67 -0
  93. package/keycloakify-vue/login/index.d.ts +5 -0
  94. package/keycloakify-vue/login/index.js +10 -0
  95. package/keycloakify-vue/login/lib/useUserProfileForm.d.ts +53 -0
  96. package/keycloakify-vue/login/lib/useUserProfileForm.js +50 -0
  97. package/keycloakify-vue/login/pages/Code.vue +54 -0
  98. package/keycloakify-vue/login/pages/Code.vue.d.ts +9 -0
  99. package/keycloakify-vue/login/pages/DeleteAccountConfirm.vue +69 -0
  100. package/keycloakify-vue/login/pages/DeleteAccountConfirm.vue.d.ts +9 -0
  101. package/keycloakify-vue/login/pages/DeleteCredential.vue +56 -0
  102. package/keycloakify-vue/login/pages/DeleteCredential.vue.d.ts +9 -0
  103. package/keycloakify-vue/login/pages/Error.vue +41 -0
  104. package/keycloakify-vue/login/pages/Error.vue.d.ts +9 -0
  105. package/keycloakify-vue/login/pages/FrontchannelLogout.vue +67 -0
  106. package/keycloakify-vue/login/pages/FrontchannelLogout.vue.d.ts +9 -0
  107. package/keycloakify-vue/login/pages/IdpReviewUserProfile.vue +77 -0
  108. package/keycloakify-vue/login/pages/IdpReviewUserProfile.vue.d.ts +14 -0
  109. package/keycloakify-vue/login/pages/Info.vue +61 -0
  110. package/keycloakify-vue/login/pages/Info.vue.d.ts +9 -0
  111. package/keycloakify-vue/login/pages/LinkIdpAction.vue +66 -0
  112. package/keycloakify-vue/login/pages/LinkIdpAction.vue.d.ts +9 -0
  113. package/keycloakify-vue/login/pages/Login.vue +230 -0
  114. package/keycloakify-vue/login/pages/Login.vue.d.ts +9 -0
  115. package/keycloakify-vue/login/pages/LoginConfigTotp.vue +233 -0
  116. package/keycloakify-vue/login/pages/LoginConfigTotp.vue.d.ts +9 -0
  117. package/keycloakify-vue/login/pages/LoginIdpLinkConfirm.vue +57 -0
  118. package/keycloakify-vue/login/pages/LoginIdpLinkConfirm.vue.d.ts +9 -0
  119. package/keycloakify-vue/login/pages/LoginIdpLinkConfirmOverride.vue +56 -0
  120. package/keycloakify-vue/login/pages/LoginIdpLinkConfirmOverride.vue.d.ts +9 -0
  121. package/keycloakify-vue/login/pages/LoginIdpLinkEmail.vue +52 -0
  122. package/keycloakify-vue/login/pages/LoginIdpLinkEmail.vue.d.ts +9 -0
  123. package/keycloakify-vue/login/pages/LoginOauth2DeviceVerifyUserCode.vue +82 -0
  124. package/keycloakify-vue/login/pages/LoginOauth2DeviceVerifyUserCode.vue.d.ts +9 -0
  125. package/keycloakify-vue/login/pages/LoginOauthGrant.vue +131 -0
  126. package/keycloakify-vue/login/pages/LoginOauthGrant.vue.d.ts +9 -0
  127. package/keycloakify-vue/login/pages/LoginOtp.vue +135 -0
  128. package/keycloakify-vue/login/pages/LoginOtp.vue.d.ts +9 -0
  129. package/keycloakify-vue/login/pages/LoginPageExpired.vue +44 -0
  130. package/keycloakify-vue/login/pages/LoginPageExpired.vue.d.ts +9 -0
  131. package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.useScript.d.ts +21 -0
  132. package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.useScript.js +74 -0
  133. package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.vue +255 -0
  134. package/keycloakify-vue/login/pages/LoginPasskeysConditionalAuthenticate.vue.d.ts +9 -0
  135. package/keycloakify-vue/login/pages/LoginPassword.useScript.d.ts +23 -0
  136. package/keycloakify-vue/login/pages/LoginPassword.useScript.js +64 -0
  137. package/keycloakify-vue/login/pages/LoginPassword.vue +191 -0
  138. package/keycloakify-vue/login/pages/LoginPassword.vue.d.ts +9 -0
  139. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.useScript.d.ts +9 -0
  140. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.useScript.js +139 -0
  141. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.vue +183 -0
  142. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeConfig.vue.d.ts +9 -0
  143. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeInput.vue +90 -0
  144. package/keycloakify-vue/login/pages/LoginRecoveryAuthnCodeInput.vue.d.ts +9 -0
  145. package/keycloakify-vue/login/pages/LoginResetOtp.vue +88 -0
  146. package/keycloakify-vue/login/pages/LoginResetOtp.vue.d.ts +9 -0
  147. package/keycloakify-vue/login/pages/LoginResetPassword.vue +114 -0
  148. package/keycloakify-vue/login/pages/LoginResetPassword.vue.d.ts +9 -0
  149. package/keycloakify-vue/login/pages/LoginUpdatePassword.vue +145 -0
  150. package/keycloakify-vue/login/pages/LoginUpdatePassword.vue.d.ts +9 -0
  151. package/keycloakify-vue/login/pages/LoginUpdateProfile.vue +94 -0
  152. package/keycloakify-vue/login/pages/LoginUpdateProfile.vue.d.ts +14 -0
  153. package/keycloakify-vue/login/pages/LoginUsername.useScript.d.ts +23 -0
  154. package/keycloakify-vue/login/pages/LoginUsername.useScript.js +64 -0
  155. package/keycloakify-vue/login/pages/LoginUsername.vue +263 -0
  156. package/keycloakify-vue/login/pages/LoginUsername.vue.d.ts +9 -0
  157. package/keycloakify-vue/login/pages/LoginVerifyEmail.vue +39 -0
  158. package/keycloakify-vue/login/pages/LoginVerifyEmail.vue.d.ts +9 -0
  159. package/keycloakify-vue/login/pages/LoginX509Info.vue +120 -0
  160. package/keycloakify-vue/login/pages/LoginX509Info.vue.d.ts +9 -0
  161. package/keycloakify-vue/login/pages/LogoutConfirm.vue +73 -0
  162. package/keycloakify-vue/login/pages/LogoutConfirm.vue.d.ts +9 -0
  163. package/keycloakify-vue/login/pages/NotImplemented.vue +12 -0
  164. package/keycloakify-vue/login/pages/NotImplemented.vue.d.ts +6 -0
  165. package/keycloakify-vue/login/pages/PageProps.d.ts +9 -0
  166. package/keycloakify-vue/login/pages/PageProps.js +0 -0
  167. package/keycloakify-vue/login/pages/Register.vue +158 -0
  168. package/keycloakify-vue/login/pages/Register.vue.d.ts +14 -0
  169. package/keycloakify-vue/login/pages/SamlPostForm.vue +75 -0
  170. package/keycloakify-vue/login/pages/SamlPostForm.vue.d.ts +9 -0
  171. package/keycloakify-vue/login/pages/SelectAuthenticator.vue +65 -0
  172. package/keycloakify-vue/login/pages/SelectAuthenticator.vue.d.ts +9 -0
  173. package/keycloakify-vue/login/pages/SelectOrganization.vue +89 -0
  174. package/keycloakify-vue/login/pages/SelectOrganization.vue.d.ts +9 -0
  175. package/keycloakify-vue/login/pages/Terms.vue +56 -0
  176. package/keycloakify-vue/login/pages/Terms.vue.d.ts +9 -0
  177. package/keycloakify-vue/login/pages/UpdateEmail.vue +100 -0
  178. package/keycloakify-vue/login/pages/UpdateEmail.vue.d.ts +14 -0
  179. package/keycloakify-vue/login/pages/WebauthnAuthenticate.useScript.d.ts +22 -0
  180. package/keycloakify-vue/login/pages/WebauthnAuthenticate.useScript.js +53 -0
  181. package/keycloakify-vue/login/pages/WebauthnAuthenticate.vue +186 -0
  182. package/keycloakify-vue/login/pages/WebauthnAuthenticate.vue.d.ts +9 -0
  183. package/keycloakify-vue/login/pages/WebauthnError.vue +84 -0
  184. package/keycloakify-vue/login/pages/WebauthnError.vue.d.ts +9 -0
  185. package/keycloakify-vue/login/pages/WebauthnRegister.useScript.d.ts +28 -0
  186. package/keycloakify-vue/login/pages/WebauthnRegister.useScript.js +75 -0
  187. package/keycloakify-vue/login/pages/WebauthnRegister.vue +105 -0
  188. package/keycloakify-vue/login/pages/WebauthnRegister.vue.d.ts +9 -0
  189. package/keycloakify-vue/tools/useInsertLinkTags.d.ts +12 -0
  190. package/keycloakify-vue/tools/useInsertLinkTags.js +47 -0
  191. package/keycloakify-vue/tools/useInsertScriptTags.d.ts +19 -0
  192. package/keycloakify-vue/tools/useInsertScriptTags.js +56 -0
  193. package/keycloakify-vue/tools/useSetClassName.d.ts +4 -0
  194. package/keycloakify-vue/tools/useSetClassName.js +16 -0
  195. package/package.json +553 -0
  196. package/src/account/DefaultPage.vue +55 -0
  197. package/src/account/KcContext/index.ts +1 -0
  198. package/src/account/Template.useInitialize.ts +34 -0
  199. package/src/account/Template.vue +178 -0
  200. package/src/account/TemplateProps.ts +11 -0
  201. package/src/account/i18n/i18n.ts +16 -0
  202. package/src/account/i18n/i18nBuilder.ts +100 -0
  203. package/src/account/i18n/index.ts +1 -0
  204. package/src/account/i18n/useI18n.ts +128 -0
  205. package/src/account/index.ts +4 -0
  206. package/src/account/pages/Account.vue +182 -0
  207. package/src/account/pages/Applications.vue +192 -0
  208. package/src/account/pages/FederatedIdentity.vue +123 -0
  209. package/src/account/pages/Log.vue +64 -0
  210. package/src/account/pages/NotImplemented.vue +24 -0
  211. package/src/account/pages/PageProps.ts +10 -0
  212. package/src/account/pages/Password.vue +247 -0
  213. package/src/account/pages/Sessions.vue +84 -0
  214. package/src/account/pages/Totp.vue +308 -0
  215. package/src/bin/initialize-account-theme/boilerplate/KcContext.ts +11 -0
  216. package/src/bin/initialize-account-theme/boilerplate/KcPage.vue +23 -0
  217. package/src/bin/initialize-account-theme/boilerplate/KcPageStory.ts +22 -0
  218. package/src/bin/initialize-account-theme/boilerplate/KcPageStory.vue +13 -0
  219. package/src/bin/initialize-account-theme/boilerplate/i18n.ts +8 -0
  220. package/src/login/DefaultPage.vue +167 -0
  221. package/src/login/Template.useInitialize.ts +71 -0
  222. package/src/login/Template.vue +239 -0
  223. package/src/login/TemplateProps.ts +17 -0
  224. package/src/login/components/AddRemoveButtonsMultiValuedAttribute.vue +59 -0
  225. package/src/login/components/FieldErrors.vue +35 -0
  226. package/src/login/components/GroupLabel.vue +68 -0
  227. package/src/login/components/InputFieldByType.vue +94 -0
  228. package/src/login/components/InputFieldByTypeProps.ts +13 -0
  229. package/src/login/components/InputTag.vue +105 -0
  230. package/src/login/components/InputTagSelects.vue +108 -0
  231. package/src/login/components/LogoutOtherSessions.vue +27 -0
  232. package/src/login/components/PasswordWrapper.vue +42 -0
  233. package/src/login/components/SelectTag.vue +74 -0
  234. package/src/login/components/TermsAcceptance.vue +59 -0
  235. package/src/login/components/TextareaTag.vue +47 -0
  236. package/src/login/components/UserProfileFormFields.vue +119 -0
  237. package/src/login/components/UserProfileFormFieldsProps.ts +22 -0
  238. package/src/login/components/inputLabel.ts +18 -0
  239. package/src/login/i18n/i18n.ts +16 -0
  240. package/src/login/i18n/i18nBuilder.ts +100 -0
  241. package/src/login/i18n/index.ts +1 -0
  242. package/src/login/i18n/useI18n.ts +128 -0
  243. package/src/login/index.ts +5 -0
  244. package/src/login/lib/useUserProfileForm.ts +121 -0
  245. package/src/login/pages/Code.vue +54 -0
  246. package/src/login/pages/DeleteAccountConfirm.vue +69 -0
  247. package/src/login/pages/DeleteCredential.vue +56 -0
  248. package/src/login/pages/Error.vue +41 -0
  249. package/src/login/pages/FrontchannelLogout.vue +67 -0
  250. package/src/login/pages/IdpReviewUserProfile.vue +77 -0
  251. package/src/login/pages/Info.vue +61 -0
  252. package/src/login/pages/LinkIdpAction.vue +66 -0
  253. package/src/login/pages/Login.vue +230 -0
  254. package/src/login/pages/LoginConfigTotp.vue +233 -0
  255. package/src/login/pages/LoginIdpLinkConfirm.vue +57 -0
  256. package/src/login/pages/LoginIdpLinkConfirmOverride.vue +56 -0
  257. package/src/login/pages/LoginIdpLinkEmail.vue +52 -0
  258. package/src/login/pages/LoginOauth2DeviceVerifyUserCode.vue +82 -0
  259. package/src/login/pages/LoginOauthGrant.vue +131 -0
  260. package/src/login/pages/LoginOtp.vue +135 -0
  261. package/src/login/pages/LoginPageExpired.vue +44 -0
  262. package/src/login/pages/LoginPasskeysConditionalAuthenticate.useScript.ts +96 -0
  263. package/src/login/pages/LoginPasskeysConditionalAuthenticate.vue +255 -0
  264. package/src/login/pages/LoginPassword.useScript.ts +88 -0
  265. package/src/login/pages/LoginPassword.vue +191 -0
  266. package/src/login/pages/LoginRecoveryAuthnCodeConfig.useScript.ts +152 -0
  267. package/src/login/pages/LoginRecoveryAuthnCodeConfig.vue +183 -0
  268. package/src/login/pages/LoginRecoveryAuthnCodeInput.vue +90 -0
  269. package/src/login/pages/LoginResetOtp.vue +88 -0
  270. package/src/login/pages/LoginResetPassword.vue +114 -0
  271. package/src/login/pages/LoginUpdatePassword.vue +145 -0
  272. package/src/login/pages/LoginUpdateProfile.vue +94 -0
  273. package/src/login/pages/LoginUsername.useScript.ts +88 -0
  274. package/src/login/pages/LoginUsername.vue +263 -0
  275. package/src/login/pages/LoginVerifyEmail.vue +39 -0
  276. package/src/login/pages/LoginX509Info.vue +120 -0
  277. package/src/login/pages/LogoutConfirm.vue +73 -0
  278. package/src/login/pages/NotImplemented.vue +12 -0
  279. package/src/login/pages/PageProps.ts +10 -0
  280. package/src/login/pages/Register.vue +158 -0
  281. package/src/login/pages/SamlPostForm.vue +75 -0
  282. package/src/login/pages/SelectAuthenticator.vue +65 -0
  283. package/src/login/pages/SelectOrganization.vue +89 -0
  284. package/src/login/pages/Terms.vue +56 -0
  285. package/src/login/pages/UpdateEmail.vue +100 -0
  286. package/src/login/pages/WebauthnAuthenticate.useScript.ts +75 -0
  287. package/src/login/pages/WebauthnAuthenticate.vue +186 -0
  288. package/src/login/pages/WebauthnError.vue +84 -0
  289. package/src/login/pages/WebauthnRegister.useScript.ts +109 -0
  290. package/src/login/pages/WebauthnRegister.vue +105 -0
  291. package/src/tools/useInsertLinkTags.ts +62 -0
  292. package/src/tools/useInsertScriptTags.ts +75 -0
  293. package/src/tools/useSetClassName.ts +15 -0
  294. package/stories/account/KcContext.ts +13 -0
  295. package/stories/account/KcContextMock.ts +26 -0
  296. package/stories/account/KcPage.vue +26 -0
  297. package/stories/account/KcPageStory.vue +13 -0
  298. package/stories/account/i18n.ts +7 -0
  299. package/stories/account/pages/Account.stories.ts +22 -0
  300. package/stories/account/pages/Applications.stories.ts +70 -0
  301. package/stories/account/pages/FederatedIdentity.stories.ts +64 -0
  302. package/stories/account/pages/Log.stories.ts +42 -0
  303. package/stories/account/pages/Password.stories.ts +22 -0
  304. package/stories/account/pages/Sessions.stories.ts +41 -0
  305. package/stories/account/pages/Totp.stories.ts +33 -0
  306. package/stories/kc.gen.ts +17 -0
  307. package/stories/login/KcContext.ts +13 -0
  308. package/stories/login/KcContextMock.ts +26 -0
  309. package/stories/login/KcPage.vue +28 -0
  310. package/stories/login/KcPageStory.vue +13 -0
  311. package/stories/login/i18n.ts +7 -0
  312. package/stories/login/pages/Code.stories.ts +50 -0
  313. package/stories/login/pages/DeleteAccountConfirm.stories.ts +32 -0
  314. package/stories/login/pages/DeleteCredential.stories.ts +23 -0
  315. package/stories/login/pages/Error.stories.ts +53 -0
  316. package/stories/login/pages/FrontchannelLogout.stories.ts +24 -0
  317. package/stories/login/pages/IdpReviewUserProfile.stories.ts +56 -0
  318. package/stories/login/pages/Info.stories.ts +52 -0
  319. package/stories/login/pages/LinkIdpAction.stories.ts +30 -0
  320. package/stories/login/pages/Login.stories.ts +76 -0
  321. package/stories/login/pages/LoginConfigTotp.stories.ts +53 -0
  322. package/stories/login/pages/LoginIdpLinkConfirm.stories.ts +34 -0
  323. package/stories/login/pages/LoginIdpLinkConfirmOverride.stories.ts +14 -0
  324. package/stories/login/pages/LoginIdpLinkEmail.stories.ts +60 -0
  325. package/stories/login/pages/LoginOauth2DeviceVerifyUserCode.stories.ts +42 -0
  326. package/stories/login/pages/LoginOauthGrant.stories.ts +95 -0
  327. package/stories/login/pages/LoginOtp.stories.ts +92 -0
  328. package/stories/login/pages/LoginPageExpired.stories.ts +29 -0
  329. package/stories/login/pages/LoginPasskeysConditionalAuthenticate.stories.ts +14 -0
  330. package/stories/login/pages/LoginPassword.stories.ts +49 -0
  331. package/stories/login/pages/LoginRecoveryAuthnCodeConfig.stories.ts +28 -0
  332. package/stories/login/pages/LoginRecoveryAuthnCodeInput.stories.ts +14 -0
  333. package/stories/login/pages/LoginResetOtp.stories.ts +69 -0
  334. package/stories/login/pages/LoginResetPassword.stories.ts +48 -0
  335. package/stories/login/pages/LoginUpdatePassword.stories.ts +52 -0
  336. package/stories/login/pages/LoginUpdateProfile.stories.ts +29 -0
  337. package/stories/login/pages/LoginUsername.stories.ts +25 -0
  338. package/stories/login/pages/LoginVerifyEmail.stories.ts +63 -0
  339. package/stories/login/pages/LoginX509Info.stories.ts +29 -0
  340. package/stories/login/pages/LogoutConfirm.stories.ts +35 -0
  341. package/stories/login/pages/Register.stories.ts +76 -0
  342. package/stories/login/pages/SamlPostForm.stories.ts +14 -0
  343. package/stories/login/pages/SelectAuthenticator.stories.ts +89 -0
  344. package/stories/login/pages/SelectOrganization.stories.ts +63 -0
  345. package/stories/login/pages/Terms.stories.ts +78 -0
  346. package/stories/login/pages/UpdateEmail.stories.ts +28 -0
  347. package/stories/login/pages/WebauthnAuthenticate.stories.ts +147 -0
  348. package/stories/login/pages/WebauthnError.stories.ts +77 -0
  349. package/stories/login/pages/WebauthnRegister.stories.ts +54 -0
@@ -0,0 +1,94 @@
1
+ <script setup lang="ts">
2
+ import type { KcContext } from 'keycloakify/login/KcContext';
3
+ import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
4
+ import { ref, type Component } from 'vue';
5
+ import type { UserProfileFormFieldsProps } from '../components/UserProfileFormFieldsProps';
6
+ import type { I18n } from '../i18n/i18n';
7
+ import type { PageProps } from './PageProps';
8
+
9
+ const props = defineProps<
10
+ PageProps<Extract<KcContext, { pageId: 'login-update-profile.ftl' }>, I18n> & {
11
+ UserProfileFormFields: Component<UserProfileFormFieldsProps>;
12
+ doMakeUserConfirmPassword: boolean;
13
+ }
14
+ >();
15
+
16
+ const { kcClsx } = getKcClsx({
17
+ doUseDefaultCss: props.doUseDefaultCss,
18
+ classes: props.classes,
19
+ });
20
+
21
+ const kcContext = props.kcContext;
22
+ const { messagesPerField, url, isAppInitiatedAction } = kcContext;
23
+
24
+ const isFormSubmittable = ref(false);
25
+ </script>
26
+
27
+ <template>
28
+ <component
29
+ :is="Template"
30
+ :kcContext="kcContext"
31
+ :i18n="props.i18n"
32
+ :doUseDefaultCss="doUseDefaultCss"
33
+ :classes="classes"
34
+ :displayRequiredFields="true"
35
+ :displayMessage="messagesPerField.exists('global')"
36
+ >
37
+ <template #header>
38
+ <component :is="props.i18n.msg('loginProfileTitle')" />
39
+ </template>
40
+
41
+ <form
42
+ id="kc-update-profile-form"
43
+ :class="kcClsx('kcFormClass')"
44
+ :action="url.loginAction"
45
+ method="post"
46
+ >
47
+ <component
48
+ :is="UserProfileFormFields"
49
+ :kcContext="kcContext"
50
+ :i18n="props.i18n"
51
+ :kcClsx="kcClsx"
52
+ :onIsFormSubmittableValueChange="(value: boolean) => (isFormSubmittable = value)"
53
+ :doMakeUserConfirmPassword="doMakeUserConfirmPassword"
54
+ />
55
+
56
+ <div :class="kcClsx('kcFormGroupClass')">
57
+ <div
58
+ id="kc-form-options"
59
+ :class="kcClsx('kcFormOptionsClass')"
60
+ >
61
+ <div :class="kcClsx('kcFormOptionsWrapperClass')" />
62
+ </div>
63
+ <div
64
+ id="kc-form-buttons"
65
+ :class="kcClsx('kcFormButtonsClass')"
66
+ >
67
+ <input
68
+ :disabled="!isFormSubmittable"
69
+ :class="
70
+ kcClsx(
71
+ 'kcButtonClass',
72
+ 'kcButtonPrimaryClass',
73
+ !isAppInitiatedAction ? 'kcButtonBlockClass' : undefined,
74
+ 'kcButtonLargeClass',
75
+ )
76
+ "
77
+ type="submit"
78
+ :value="props.i18n.msgStr('doSubmit')"
79
+ />
80
+ <button
81
+ v-if="isAppInitiatedAction"
82
+ :class="kcClsx('kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass')"
83
+ type="submit"
84
+ name="cancel-aia"
85
+ value="true"
86
+ formnovalidate
87
+ >
88
+ <component :is="props.i18n.msg('doCancel')" />
89
+ </button>
90
+ </div>
91
+ </div>
92
+ </form>
93
+ </component>
94
+ </template>
@@ -0,0 +1,88 @@
1
+ import { onMounted, watch, type Ref } from 'vue';
2
+ import { useInsertScriptTags } from '../../tools/useInsertScriptTags';
3
+ import { assert } from 'keycloakify/tools/assert';
4
+ import { waitForElementMountedOnDom } from 'keycloakify/tools/waitForElementMountedOnDom';
5
+ import type { KcContext } from 'keycloakify/login/KcContext';
6
+
7
+ type KcContextLike = {
8
+ url: {
9
+ resourcesPath: string;
10
+ };
11
+ isUserIdentified: 'true' | 'false';
12
+ challenge: string;
13
+ userVerification: KcContext.WebauthnAuthenticate['userVerification'];
14
+ rpId: string;
15
+ createTimeout: number | string;
16
+ enableWebAuthnConditionalUI?: boolean;
17
+ };
18
+
19
+ assert<keyof KcContextLike extends keyof KcContext.LoginUsername ? true : false>();
20
+ assert<KcContext.LoginUsername extends KcContextLike ? true : false>();
21
+
22
+ type I18nLike = {
23
+ msgStr: (key: 'webauthn-unsupported-browser-text' | 'passkey-unsupported-browser-text') => string;
24
+ isFetchingTranslations: boolean;
25
+ };
26
+
27
+ export function useScript(params: { webAuthnButtonId: string; kcContext: KcContextLike; i18n: Ref<I18nLike> }) {
28
+ const { webAuthnButtonId, kcContext, i18n } = params;
29
+
30
+ const { url, isUserIdentified, challenge, userVerification, rpId, createTimeout } = kcContext;
31
+
32
+ const { insertScriptTags } = useInsertScriptTags({
33
+ componentOrHookName: 'LoginUsername',
34
+ scriptTags: [
35
+ {
36
+ type: 'module',
37
+ textContent: () => `
38
+
39
+ import { authenticateByWebAuthn } from "${url.resourcesPath}/js/webauthnAuthenticate.js";
40
+ import { initAuthenticate } from "${url.resourcesPath}/js/passkeysConditionalAuth.js";
41
+ const authButton = document.getElementById('${webAuthnButtonId}');
42
+ const input = {
43
+ isUserIdentified : ${isUserIdentified},
44
+ challenge : ${JSON.stringify(challenge)},
45
+ userVerification : ${JSON.stringify(userVerification)},
46
+ rpId : ${JSON.stringify(rpId)},
47
+ createTimeout : ${createTimeout}
48
+ };
49
+ authButton.addEventListener("click", () => {
50
+ authenticateByWebAuthn({
51
+ ...input,
52
+ errmsg : ${JSON.stringify(i18n.value.msgStr('webauthn-unsupported-browser-text'))}
53
+ });
54
+ }, { once: true });
55
+
56
+ initAuthenticate({
57
+ ...input,
58
+ errmsg : ${JSON.stringify(i18n.value.msgStr('passkey-unsupported-browser-text'))}
59
+ });
60
+ `,
61
+ },
62
+ ],
63
+ });
64
+
65
+ onMounted(() => {
66
+ if (kcContext.enableWebAuthnConditionalUI !== true) {
67
+ return;
68
+ }
69
+
70
+ const stopWatch = watch(
71
+ () => i18n.value.isFetchingTranslations,
72
+ async (isFetching) => {
73
+ if (isFetching) {
74
+ return;
75
+ }
76
+
77
+ stopWatch();
78
+
79
+ await waitForElementMountedOnDom({
80
+ elementId: webAuthnButtonId,
81
+ });
82
+
83
+ insertScriptTags();
84
+ },
85
+ { immediate: true },
86
+ );
87
+ });
88
+ }
@@ -0,0 +1,263 @@
1
+ <script setup lang="ts">
2
+ import type { KcContext } from 'keycloakify/login/KcContext';
3
+ import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
4
+ import { clsx } from 'keycloakify/tools/clsx';
5
+ import { kcSanitize } from 'keycloakify/lib/kcSanitize';
6
+ import { computed, ref, toRef } from 'vue';
7
+ import type { I18n } from '../i18n/i18n';
8
+ import type { PageProps } from './PageProps';
9
+ import { useScript } from './LoginUsername.useScript';
10
+
11
+ const props = defineProps<PageProps<Extract<KcContext, { pageId: 'login-username.ftl' }>, I18n>>();
12
+
13
+ const { kcClsx } = getKcClsx({
14
+ doUseDefaultCss: props.doUseDefaultCss,
15
+ classes: props.classes,
16
+ });
17
+
18
+ const kcContext = props.kcContext;
19
+ const {
20
+ social,
21
+ realm,
22
+ url,
23
+ usernameHidden,
24
+ login,
25
+ registrationDisabled,
26
+ messagesPerField,
27
+ enableWebAuthnConditionalUI,
28
+ authenticators,
29
+ } = kcContext;
30
+
31
+ const isLoginButtonDisabled = ref(false);
32
+
33
+ const usernameLabelKey = computed(() =>
34
+ !realm.loginWithEmailAllowed ? 'username' : !realm.registrationEmailAsUsername ? 'usernameOrEmail' : 'email',
35
+ );
36
+
37
+ function onSubmit() {
38
+ isLoginButtonDisabled.value = true;
39
+ return true;
40
+ }
41
+
42
+ const webAuthnButtonId = 'authenticateWebAuthnButton';
43
+
44
+ useScript({
45
+ webAuthnButtonId,
46
+ kcContext,
47
+ i18n: toRef(props, 'i18n'),
48
+ });
49
+ </script>
50
+
51
+ <template>
52
+ <component
53
+ :is="Template"
54
+ :kcContext="kcContext"
55
+ :i18n="i18n"
56
+ :doUseDefaultCss="doUseDefaultCss"
57
+ :classes="classes"
58
+ :displayMessage="!messagesPerField.existsError('username')"
59
+ :displayInfo="realm.password && realm.registrationAllowed && !registrationDisabled"
60
+ >
61
+ <template #header>
62
+ <component :is="i18n.msg('doLogIn')" />
63
+ </template>
64
+
65
+ <template #info>
66
+ <div id="kc-registration">
67
+ <span>
68
+ <component :is="i18n.msg('noAccount')" />
69
+ <a
70
+ :tabindex="6"
71
+ :href="url.registrationUrl"
72
+ >
73
+ <component :is="i18n.msg('doRegister')" />
74
+ </a>
75
+ </span>
76
+ </div>
77
+ </template>
78
+
79
+ <template #socialProviders>
80
+ <div
81
+ v-if="realm.password && social?.providers?.length"
82
+ id="kc-social-providers"
83
+ :class="kcClsx('kcFormSocialAccountSectionClass')"
84
+ >
85
+ <hr />
86
+ <h2><component :is="i18n.msg('identity-provider-login-label')" /></h2>
87
+ <ul
88
+ :class="
89
+ kcClsx('kcFormSocialAccountListClass', social.providers.length > 3 && 'kcFormSocialAccountListGridClass')
90
+ "
91
+ >
92
+ <li
93
+ v-for="p in social.providers"
94
+ :key="p.providerId"
95
+ >
96
+ <a
97
+ :id="`social-${p.alias}`"
98
+ :class="
99
+ kcClsx(
100
+ 'kcFormSocialAccountListButtonClass',
101
+ social.providers.length > 3 && 'kcFormSocialAccountGridItem',
102
+ )
103
+ "
104
+ type="button"
105
+ :href="p.loginUrl"
106
+ >
107
+ <i
108
+ v-if="p.iconClasses"
109
+ :class="clsx(kcClsx('kcCommonLogoIdP'), p.iconClasses)"
110
+ aria-hidden="true"
111
+ ></i>
112
+ <span
113
+ :class="clsx(kcClsx('kcFormSocialAccountNameClass'), p.iconClasses && 'kc-social-icon-text')"
114
+ v-html="kcSanitize(p.displayName)"
115
+ ></span>
116
+ </a>
117
+ </li>
118
+ </ul>
119
+ </div>
120
+ </template>
121
+
122
+ <div id="kc-form">
123
+ <div id="kc-form-wrapper">
124
+ <form
125
+ v-if="realm.password"
126
+ id="kc-form-login"
127
+ :action="url.loginAction"
128
+ method="post"
129
+ @submit="onSubmit"
130
+ >
131
+ <div
132
+ v-if="!usernameHidden"
133
+ :class="kcClsx('kcFormGroupClass')"
134
+ >
135
+ <label
136
+ for="username"
137
+ :class="kcClsx('kcLabelClass')"
138
+ >
139
+ <component :is="i18n.msg(usernameLabelKey)" />
140
+ </label>
141
+ <input
142
+ :tabindex="2"
143
+ id="username"
144
+ :class="kcClsx('kcInputClass')"
145
+ name="username"
146
+ :value="login.username ?? ''"
147
+ type="text"
148
+ autofocus
149
+ :autocomplete="enableWebAuthnConditionalUI ? 'username webauthn' : 'username'"
150
+ :aria-invalid="messagesPerField.existsError('username')"
151
+ />
152
+ <span
153
+ v-if="messagesPerField.existsError('username')"
154
+ id="input-error"
155
+ :class="kcClsx('kcInputErrorMessageClass')"
156
+ aria-live="polite"
157
+ v-html="kcSanitize(messagesPerField.getFirstError('username'))"
158
+ ></span>
159
+ </div>
160
+
161
+ <div :class="kcClsx('kcFormGroupClass', 'kcFormSettingClass')">
162
+ <div id="kc-form-options">
163
+ <div
164
+ v-if="realm.rememberMe && !usernameHidden"
165
+ class="checkbox"
166
+ >
167
+ <label>
168
+ <input
169
+ :tabindex="3"
170
+ id="rememberMe"
171
+ name="rememberMe"
172
+ type="checkbox"
173
+ :checked="!!login.rememberMe"
174
+ />
175
+ <component :is="i18n.msg('rememberMe')" />
176
+ </label>
177
+ </div>
178
+ </div>
179
+ </div>
180
+
181
+ <div
182
+ id="kc-form-buttons"
183
+ :class="kcClsx('kcFormGroupClass')"
184
+ >
185
+ <input
186
+ :tabindex="4"
187
+ :disabled="isLoginButtonDisabled"
188
+ :class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass')"
189
+ name="login"
190
+ id="kc-login"
191
+ type="submit"
192
+ :value="i18n.msgStr('doLogIn')"
193
+ />
194
+ </div>
195
+ </form>
196
+ </div>
197
+ </div>
198
+
199
+ <template v-if="enableWebAuthnConditionalUI">
200
+ <form
201
+ id="webauth"
202
+ :action="url.loginAction"
203
+ method="post"
204
+ >
205
+ <input
206
+ type="hidden"
207
+ id="clientDataJSON"
208
+ name="clientDataJSON"
209
+ />
210
+ <input
211
+ type="hidden"
212
+ id="authenticatorData"
213
+ name="authenticatorData"
214
+ />
215
+ <input
216
+ type="hidden"
217
+ id="signature"
218
+ name="signature"
219
+ />
220
+ <input
221
+ type="hidden"
222
+ id="credentialId"
223
+ name="credentialId"
224
+ />
225
+ <input
226
+ type="hidden"
227
+ id="userHandle"
228
+ name="userHandle"
229
+ />
230
+ <input
231
+ type="hidden"
232
+ id="error"
233
+ name="error"
234
+ />
235
+ </form>
236
+
237
+ <template v-if="authenticators !== undefined && authenticators.authenticators.length !== 0">
238
+ <form
239
+ id="authn_select"
240
+ :class="kcClsx('kcFormClass')"
241
+ >
242
+ <input
243
+ v-for="(authenticator, i) in authenticators.authenticators"
244
+ :key="i"
245
+ type="hidden"
246
+ name="authn_use_chk"
247
+ :value="authenticator.credentialId"
248
+ readonly
249
+ />
250
+ </form>
251
+ </template>
252
+
253
+ <br />
254
+
255
+ <input
256
+ :id="webAuthnButtonId"
257
+ type="button"
258
+ :class="kcClsx('kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass')"
259
+ :value="i18n.msgStr('passkey-doAuthenticate')"
260
+ />
261
+ </template>
262
+ </component>
263
+ </template>
@@ -0,0 +1,39 @@
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-verify-email.ftl' }>, I18n>>();
7
+
8
+ const kcContext = props.kcContext;
9
+ const { url, user } = 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
+ :displayInfo="true"
20
+ >
21
+ <template #header>
22
+ <component :is="props.i18n.msg('emailVerifyTitle')" />
23
+ </template>
24
+
25
+ <template #info>
26
+ <p class="instruction">
27
+ <component :is="props.i18n.msg('emailVerifyInstruction2')" />
28
+ <br />
29
+ <a :href="url.loginAction"><component :is="props.i18n.msg('doClickHere')" /></a>
30
+ &nbsp;
31
+ <component :is="props.i18n.msg('emailVerifyInstruction3')" />
32
+ </p>
33
+ </template>
34
+
35
+ <p class="instruction">
36
+ <component :is="props.i18n.msg('emailVerifyInstruction1', user?.email ?? '')" />
37
+ </p>
38
+ </component>
39
+ </template>
@@ -0,0 +1,120 @@
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-x509-info.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, x509 } = kcContext;
16
+ </script>
17
+
18
+ <template>
19
+ <component
20
+ :is="Template"
21
+ :kcContext="kcContext"
22
+ :i18n="props.i18n"
23
+ :doUseDefaultCss="doUseDefaultCss"
24
+ :classes="classes"
25
+ >
26
+ <template #header>
27
+ <component :is="props.i18n.msg('doLogIn')" />
28
+ </template>
29
+
30
+ <form
31
+ id="kc-x509-login-info"
32
+ :class="kcClsx('kcFormClass')"
33
+ :action="url.loginAction"
34
+ method="post"
35
+ >
36
+ <div :class="kcClsx('kcFormGroupClass')">
37
+ <div :class="kcClsx('kcLabelWrapperClass')">
38
+ <label
39
+ for="certificate_subjectDN"
40
+ :class="kcClsx('kcLabelClass')"
41
+ >
42
+ <component :is="props.i18n.msg('clientCertificate')" />
43
+ </label>
44
+ </div>
45
+ <div
46
+ v-if="x509.formData.subjectDN"
47
+ :class="kcClsx('kcLabelWrapperClass')"
48
+ >
49
+ <label
50
+ id="certificate_subjectDN"
51
+ :class="kcClsx('kcLabelClass')"
52
+ >
53
+ {{ x509.formData.subjectDN }}
54
+ </label>
55
+ </div>
56
+ <div
57
+ v-else
58
+ :class="kcClsx('kcLabelWrapperClass')"
59
+ >
60
+ <label
61
+ id="certificate_subjectDN"
62
+ :class="kcClsx('kcLabelClass')"
63
+ >
64
+ <component :is="props.i18n.msg('noCertificate')" />
65
+ </label>
66
+ </div>
67
+ </div>
68
+ <div :class="kcClsx('kcFormGroupClass')">
69
+ <template v-if="x509.formData.isUserEnabled">
70
+ <div :class="kcClsx('kcLabelWrapperClass')">
71
+ <label
72
+ for="username"
73
+ :class="kcClsx('kcLabelClass')"
74
+ >
75
+ <component :is="props.i18n.msg('doX509Login')" />
76
+ </label>
77
+ </div>
78
+ <div :class="kcClsx('kcLabelWrapperClass')">
79
+ <label
80
+ id="username"
81
+ :class="kcClsx('kcLabelClass')"
82
+ >
83
+ {{ x509.formData.username }}
84
+ </label>
85
+ </div>
86
+ </template>
87
+ </div>
88
+ <div :class="kcClsx('kcFormGroupClass')">
89
+ <div
90
+ id="kc-form-options"
91
+ :class="kcClsx('kcFormOptionsClass')"
92
+ >
93
+ <div :class="kcClsx('kcFormOptionsWrapperClass')" />
94
+ </div>
95
+ <div
96
+ id="kc-form-buttons"
97
+ :class="kcClsx('kcFormButtonsClass')"
98
+ >
99
+ <div :class="kcClsx('kcFormButtonsWrapperClass')">
100
+ <input
101
+ :class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass')"
102
+ name="login"
103
+ id="kc-login"
104
+ type="submit"
105
+ :value="props.i18n.msgStr('doContinue')"
106
+ />
107
+ <input
108
+ v-if="x509.formData.isUserEnabled"
109
+ :class="kcClsx('kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass')"
110
+ name="cancel"
111
+ id="kc-cancel"
112
+ type="submit"
113
+ :value="props.i18n.msgStr('doIgnore')"
114
+ />
115
+ </div>
116
+ </div>
117
+ </div>
118
+ </form>
119
+ </component>
120
+ </template>
@@ -0,0 +1,73 @@
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: 'logout-confirm.ftl' }>, I18n>>();
8
+
9
+ const { kcClsx } = getKcClsx({
10
+ doUseDefaultCss: props.doUseDefaultCss,
11
+ classes: props.classes,
12
+ });
13
+
14
+ const kcContext = props.kcContext;
15
+ const { url, client, logoutConfirm } = kcContext;
16
+ </script>
17
+
18
+ <template>
19
+ <component
20
+ :is="Template"
21
+ :kcContext="kcContext"
22
+ :i18n="props.i18n"
23
+ :doUseDefaultCss="doUseDefaultCss"
24
+ :classes="classes"
25
+ >
26
+ <template #header>
27
+ <component :is="props.i18n.msg('logoutConfirmTitle')" />
28
+ </template>
29
+
30
+ <div
31
+ id="kc-logout-confirm"
32
+ class="content-area"
33
+ >
34
+ <p class="instruction">
35
+ <component :is="props.i18n.msg('logoutConfirmHeader')" />
36
+ </p>
37
+ <form
38
+ class="form-actions"
39
+ :action="url.logoutConfirmAction"
40
+ method="POST"
41
+ >
42
+ <input
43
+ type="hidden"
44
+ name="session_code"
45
+ :value="logoutConfirm.code"
46
+ />
47
+ <div :class="kcClsx('kcFormGroupClass')">
48
+ <div id="kc-form-options">
49
+ <div :class="kcClsx('kcFormOptionsWrapperClass')"></div>
50
+ </div>
51
+ <div
52
+ id="kc-form-buttons"
53
+ :class="kcClsx('kcFormGroupClass')"
54
+ >
55
+ <input
56
+ :tabindex="4"
57
+ :class="kcClsx('kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass')"
58
+ name="confirmLogout"
59
+ id="kc-logout"
60
+ type="submit"
61
+ :value="props.i18n.msgStr('doLogout')"
62
+ />
63
+ </div>
64
+ </div>
65
+ </form>
66
+ <div id="kc-info-message">
67
+ <p v-if="!logoutConfirm.skipLink && client.baseUrl">
68
+ <a :href="client.baseUrl"><component :is="props.i18n.msg('backToApplication')" /></a>
69
+ </p>
70
+ </div>
71
+ </div>
72
+ </component>
73
+ </template>
@@ -0,0 +1,12 @@
1
+ <script setup lang="ts">
2
+ const props = defineProps<{ pageId: string }>();
3
+ </script>
4
+
5
+ <template>
6
+ <div style="padding: 2rem; font-family: sans-serif">
7
+ <h1>Not implemented yet</h1>
8
+ <p>
9
+ Page <code>{{ props.pageId }}</code> does not have a Vue implementation yet.
10
+ </p>
11
+ </div>
12
+ </template>