@keycloakify/keycloak-admin-ui
Version:
Repackaged Keycloak Admin UI
25 lines • 894 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { lazy } from "react";
import { generateEncodedPath } from "../../utils/generateEncodedPath";
const AuthenticationSection = lazy(() => import("../../authentication/AuthenticationSection"));
export const AuthenticationRoute = {
path: "/:realm/authentication",
element: _jsx(AuthenticationSection, {}),
breadcrumb: (t) => t("authentication"),
handle: {
access: ["view-realm", "view-identity-providers", "view-clients"],
},
};
export const AuthenticationRouteWithTab = {
...AuthenticationRoute,
path: "/:realm/authentication/:tab",
};
export const toAuthentication = (params) => {
const path = params.tab
? AuthenticationRouteWithTab.path
: AuthenticationRoute.path;
return {
pathname: generateEncodedPath(path, params),
};
};
//# sourceMappingURL=Authentication.js.map