All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.utils-49fe564a.js.map Maven / Gradle / Ivy

There is a newer version: 25.0.1
Show newest version
{"version":3,"file":"utils-49fe564a.js","sources":["../../src/clients/utils.ts"],"sourcesContent":["import type ClientRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/clientRepresentation\";\nimport type { TFunction } from \"i18next\";\n\n/**\n * Checks if a client is intended to be used for authenticating a to a realm.\n */\nexport const isRealmClient = (client: ClientRepresentation) => !client.protocol;\n\n/**\n * Gets a human readable name for the specified protocol.\n */\nexport const getProtocolName = (t: TFunction<\"clients\">, protocol: string) => {\n  switch (protocol) {\n    case \"openid-connect\":\n      return t(\"clients:protocolTypes.openIdConnect\");\n    case \"saml\":\n      return t(\"clients:protocolTypes.saml\");\n    default:\n      return protocol;\n  }\n\n  return protocol;\n};\n\nexport const defaultContextAttributes = [\n  {\n    key: \"custom\",\n    name: \"Custom Attribute...\",\n    custom: true,\n  },\n  {\n    key: \"kc.identity.authc.method\",\n    name: \"Authentication Method\",\n    values: [\n      {\n        key: \"pwd\",\n        name: \"Password\",\n      },\n      {\n        key: \"otp\",\n        name: \"One-Time Password\",\n      },\n      {\n        key: \"kbr\",\n        name: \"Kerberos\",\n      },\n    ],\n  },\n  {\n    key: \"kc.realm.name\",\n    name: \"Realm\",\n  },\n  {\n    key: \"kc.time.date_time\",\n    name: \"Date/Time (MM/dd/yyyy hh:mm:ss)\",\n  },\n  {\n    key: \"kc.client.network.ip_address\",\n    name: \"Client IPv4 Address\",\n  },\n  {\n    key: \"kc.client.network.host\",\n    name: \"Client Host\",\n  },\n  {\n    key: \"kc.client.user_agent\",\n    name: \"Client/User Agent\",\n  },\n];\n"],"names":["isRealmClient","client","getProtocolName","t","protocol","defaultContextAttributes"],"mappings":"AAMO,MAAMA,EAAiBC,GAAiC,CAACA,EAAO,SAK1DC,EAAkB,CAACC,EAAyBC,IAAqB,CAC5E,OAAQA,EAAU,CAChB,IAAK,iBACH,OAAOD,EAAE,qCAAqC,EAChD,IAAK,OACH,OAAOA,EAAE,4BAA4B,EACvC,QACS,OAAAC,CACX,CAGF,EAEaC,EAA2B,CACtC,CACE,IAAK,SACL,KAAM,sBACN,OAAQ,EACV,EACA,CACE,IAAK,2BACL,KAAM,wBACN,OAAQ,CACN,CACE,IAAK,MACL,KAAM,UACR,EACA,CACE,IAAK,MACL,KAAM,mBACR,EACA,CACE,IAAK,MACL,KAAM,UACR,CACF,CACF,EACA,CACE,IAAK,gBACL,KAAM,OACR,EACA,CACE,IAAK,oBACL,KAAM,iCACR,EACA,CACE,IAAK,+BACL,KAAM,qBACR,EACA,CACE,IAAK,yBACL,KAAM,aACR,EACA,CACE,IAAK,uBACL,KAAM,mBACR,CACF"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy