2022-10-18 20:34:32 +00:00
|
|
|
import { useRouter } from "next/router";
|
2023-03-16 09:49:12 +00:00
|
|
|
import { useEffect } from "react";
|
2022-10-18 20:34:32 +00:00
|
|
|
|
|
|
|
import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
|
2023-01-24 20:02:43 +00:00
|
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
|
|
import { Meta } from "@calcom/ui";
|
2022-10-18 20:34:32 +00:00
|
|
|
|
2023-01-05 17:00:16 +00:00
|
|
|
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
2023-01-24 20:02:43 +00:00
|
|
|
import SSOConfiguration from "../components/SSOConfiguration";
|
2022-10-18 20:34:32 +00:00
|
|
|
|
|
|
|
const SAMLSSO = () => {
|
2023-01-24 20:02:43 +00:00
|
|
|
const { t } = useLocale();
|
2022-10-18 20:34:32 +00:00
|
|
|
const router = useRouter();
|
|
|
|
|
2023-03-16 09:49:12 +00:00
|
|
|
useEffect(() => {
|
|
|
|
if (HOSTED_CAL_FEATURES) {
|
|
|
|
router.push("/404");
|
|
|
|
}
|
|
|
|
}, []);
|
2022-10-18 20:34:32 +00:00
|
|
|
|
2023-01-24 20:02:43 +00:00
|
|
|
return (
|
|
|
|
<div className="w-full bg-white sm:mx-0 xl:mt-0">
|
|
|
|
<Meta title={t("sso_configuration")} description={t("sso_configuration_description")} />
|
|
|
|
<SSOConfiguration teamId={null} />
|
|
|
|
</div>
|
|
|
|
);
|
2022-10-18 20:34:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SAMLSSO.getLayout = getLayout;
|
|
|
|
|
|
|
|
export default SAMLSSO;
|