theme.keycloak.v2.admin.resources.assets.utils-DeGqqWSp.js.map Maven / Gradle / Ivy
{"version":3,"file":"utils-DeGqqWSp.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(\"protocolTypes.openid-connect\");\n case \"saml\":\n return t(\"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,8BAA8B,EACzC,IAAK,OACH,OAAOA,EAAE,oBAAoB,EAC/B,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 - 2025 Weber Informatics LLC | Privacy Policy