1
import type ClientRepresentation from "@keycloak/keycloak-admin-client/lib/defs/clientRepresentation";
2
import type { TFunction } from "i18next";
7
export const isRealmClient = (client: ClientRepresentation) => !client.protocol;
12
export const getProtocolName = (t: TFunction<"clients">, protocol: string) => {
14
case "openid-connect":
15
return t("protocolTypes.openid-connect");
17
return t("protocolTypes.saml");
25
export const defaultContextAttributes = [
28
name: "Custom Attribute...",
32
key: "kc.identity.authc.method",
33
name: "Authentication Method",
41
name: "One-Time Password",
54
key: "kc.time.date_time",
55
name: "Date/Time (MM/dd/yyyy hh:mm:ss)",
58
key: "kc.client.network.ip_address",
59
name: "Client IPv4 Address",
62
key: "kc.client.network.host",
66
key: "kc.client.user_agent",
67
name: "Client/User Agent",