2021-01-04 21:33:18 +00:00
|
|
|
import { Wizard } from "@patternfly/react-core";
|
2020-11-18 16:18:32 +00:00
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import React from "react";
|
2021-01-04 21:33:18 +00:00
|
|
|
import { KerberosSettingsRequired } from "./kerberos/KerberosSettingsRequired";
|
|
|
|
import { KerberosSettingsCache } from "./kerberos/KerberosSettingsCache";
|
2020-11-18 16:18:32 +00:00
|
|
|
|
|
|
|
export const UserFederationKerberosWizard = () => {
|
|
|
|
const { t } = useTranslation("user-federation");
|
2021-01-04 21:33:18 +00:00
|
|
|
const helpText = useTranslation("user-federation-help").t;
|
2020-11-18 16:18:32 +00:00
|
|
|
|
|
|
|
const steps = [
|
2020-12-15 22:50:09 +00:00
|
|
|
{
|
2021-01-04 21:33:18 +00:00
|
|
|
name: t("requiredSettings"),
|
|
|
|
component: (
|
|
|
|
<KerberosSettingsRequired showSectionHeading showSectionDescription />
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: t("cacheSettings"),
|
|
|
|
component: (
|
|
|
|
<KerberosSettingsCache showSectionHeading showSectionDescription />
|
|
|
|
),
|
|
|
|
nextButtonText: t("common:finish"), // TODO: needs to disable until cache policy is valid
|
2020-12-15 22:50:09 +00:00
|
|
|
},
|
2020-11-18 16:18:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Wizard
|
2021-01-04 21:33:18 +00:00
|
|
|
title={t("addKerberosWizardTitle")}
|
|
|
|
description={helpText("addKerberosWizardDescription")}
|
2020-11-18 16:18:32 +00:00
|
|
|
steps={steps}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|