2022-10-18 20:34:32 +00:00
|
|
|
import { useRouter } from "next/router";
|
|
|
|
|
|
|
|
import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
|
|
|
|
|
2023-01-05 17:00:16 +00:00
|
|
|
import { getLayout } from "../../../settings/layouts/SettingsLayout";
|
2022-10-18 20:34:32 +00:00
|
|
|
import SAMLConfiguration from "../components/SAMLConfiguration";
|
|
|
|
|
|
|
|
const SAMLSSO = () => {
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
|
|
if (HOSTED_CAL_FEATURES) {
|
|
|
|
router.push("/404");
|
|
|
|
}
|
|
|
|
|
|
|
|
const teamId = null;
|
|
|
|
|
|
|
|
return <SAMLConfiguration teamId={teamId} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
SAMLSSO.getLayout = getLayout;
|
|
|
|
|
|
|
|
export default SAMLSSO;
|