keycloak-scim/src/user-federation/UserFederationKerberosWizard.tsx

35 lines
1 KiB
TypeScript
Raw Normal View History

import { Wizard } from "@patternfly/react-core";
2020-11-18 16:18:32 +00:00
import { useTranslation } from "react-i18next";
import React from "react";
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");
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
{
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
title={t("addKerberosWizardTitle")}
description={helpText("addKerberosWizardDescription")}
2020-11-18 16:18:32 +00:00
steps={steps}
/>
);
};