// This is a copy paste from https://github.com/InseeFrLab/keycloakify/blob/main/src/lib/pages/Register.tsx // It is now up to us to implement a special behavior to leverage the non standard authorizedMailDomains // provided by the plugin: https://github.com/micedre/keycloak-mail-whitelisting installed on our keycloak server. // Note that it is no longer recommended to use register.ftl, it's best to use register-user-profile.ftl // See: https://docs.keycloakify.dev/realtime-input-validation import { clsx } from "keycloakify/lib/tools/clsx"; import type { PageProps } from "keycloakify/lib/KcProps"; import type { KcContext } from "../kcContext"; import type { I18n } from "../i18n"; export default function Register(props: PageProps, I18n>) { const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props; const { url, messagesPerField, register, realm, passwordRequired, recaptchaRequired, recaptchaSiteKey } = kcContext; const { msg, msgStr } = i18n; console.log(`NOTE: It is up to you do do something meaningful with ${kcContext.authorizedMailDomains}`); return (