2021-10-29 16:11:06 +00:00
|
|
|
import { lazy } from "react";
|
2022-08-19 18:05:09 +00:00
|
|
|
import type { Path } from "react-router-dom-v5-compat";
|
|
|
|
import { generatePath } from "react-router-dom-v5-compat";
|
2021-07-26 13:29:26 +00:00
|
|
|
import type { RouteDef } from "../../route-config";
|
|
|
|
|
|
|
|
export type UserFederationKerberosParams = {
|
|
|
|
realm: string;
|
|
|
|
id: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const UserFederationKerberosRoute: RouteDef = {
|
|
|
|
path: "/:realm/user-federation/kerberos/:id",
|
2021-10-29 16:11:06 +00:00
|
|
|
component: lazy(() => import("../UserFederationKerberosSettings")),
|
2021-07-26 13:29:26 +00:00
|
|
|
breadcrumb: (t) => t("common:settings"),
|
|
|
|
access: "view-realm",
|
|
|
|
};
|
|
|
|
|
|
|
|
export const toUserFederationKerberos = (
|
|
|
|
params: UserFederationKerberosParams
|
2022-08-19 18:05:09 +00:00
|
|
|
): Partial<Path> => ({
|
2021-07-26 13:29:26 +00:00
|
|
|
pathname: generatePath(UserFederationKerberosRoute.path, params),
|
|
|
|
});
|