2023-08-02 09:35:48 +00:00
|
|
|
import { useRouter } from "next/navigation";
|
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 (
|
2023-09-28 18:04:51 +00:00
|
|
|
<div className="bg-default w-full sm:mx-0">
|
|
|
|
<Meta
|
|
|
|
title={t("sso_configuration")}
|
|
|
|
description={t("sso_configuration_description")}
|
|
|
|
borderInShellHeader={true}
|
|
|
|
/>
|
2023-01-24 20:02:43 +00:00
|
|
|
<SSOConfiguration teamId={null} />
|
|
|
|
</div>
|
|
|
|
);
|
2022-10-18 20:34:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SAMLSSO.getLayout = getLayout;
|
|
|
|
|
|
|
|
export default SAMLSSO;
|