theme.keycloak.v2.admin.resources.assets.ClientDescription-fxtapCoH.js.map Maven / Gradle / Ivy
{"version":3,"file":"ClientDescription-fxtapCoH.js","sources":["../../src/clients/add/CapabilityConfig.tsx","../../src/clients/ClientDescription.tsx"],"sourcesContent":["import type ClientRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/clientRepresentation\";\nimport {\n Checkbox,\n FormGroup,\n Grid,\n GridItem,\n InputGroup,\n Switch,\n InputGroupItem,\n} from \"@patternfly/react-core\";\nimport { Controller, useFormContext } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { HelpItem } from \"@keycloak/keycloak-ui-shared\";\nimport { DefaultSwitchControl } from \"../../components/SwitchControl\";\nimport { FormAccess } from \"../../components/form/FormAccess\";\nimport { convertAttributeNameToForm } from \"../../util\";\nimport useIsFeatureEnabled, { Feature } from \"../../utils/useIsFeatureEnabled\";\nimport { FormFields } from \"../ClientDetails\";\n\ntype CapabilityConfigProps = {\n unWrap?: boolean;\n protocol?: string;\n};\n\nexport const CapabilityConfig = ({\n unWrap,\n protocol: type,\n}: CapabilityConfigProps) => {\n const { t } = useTranslation();\n const { control, watch, setValue } = useFormContext();\n const protocol = type || watch(\"protocol\");\n const clientAuthentication = watch(\"publicClient\");\n const authorization = watch(\"authorizationServicesEnabled\");\n const isFeatureEnabled = useIsFeatureEnabled();\n\n return (\n \n {protocol === \"openid-connect\" && (\n <>\n \n }\n >\n (\n {\n field.onChange(!value);\n if (!value) {\n setValue(\"authorizationServicesEnabled\", false);\n setValue(\"serviceAccountsEnabled\", false);\n setValue(\n convertAttributeNameToForm(\n \"attributes.oidc.ciba.grant.enabled\",\n ),\n false,\n );\n }\n }}\n aria-label={t(\"clientAuthentication\")}\n />\n )}\n />\n \n \n }\n >\n (\n {\n field.onChange(value);\n if (value) {\n setValue(\"serviceAccountsEnabled\", true);\n }\n }}\n isDisabled={clientAuthentication}\n aria-label={t(\"clientAuthorization\")}\n />\n )}\n />\n \n \n \n \n (\n \n \n \n \n \n \n \n \n )}\n />\n \n \n (\n \n \n \n \n \n \n \n \n )}\n />\n \n \n (\n \n \n \n \n \n \n \n \n )}\n />\n \n \n (\n \n \n \n \n \n \n \n \n )}\n />\n \n {isFeatureEnabled(Feature.DeviceFlow) && (\n \n \n >(\"attributes.oauth2.device.authorization.grant.enabled\")}\n defaultValue={false}\n control={control}\n render={({ field }) => (\n \n \n \n \n \n \n \n \n )}\n />\n \n )}\n \n (\n \"attributes.oidc.ciba.grant.enabled\",\n )}\n defaultValue={false}\n control={control}\n render={({ field }) => (\n \n \n \n \n \n \n \n \n )}\n />\n \n \n \n >\n )}\n {protocol === \"saml\" && (\n <>\n (\n \"attributes.saml.encrypt\",\n )}\n label={t(\"encryptAssertions\")}\n labelIcon={t(\"encryptAssertionsHelp\")}\n />\n (\n \"attributes.saml.client.signature\",\n )}\n label={t(\"clientSignature\")}\n labelIcon={t(\"clientSignatureHelp\")}\n />\n >\n )}\n \n );\n};\n","import { useTranslation } from \"react-i18next\";\nimport { TextControl, TextAreaControl } from \"@keycloak/keycloak-ui-shared\";\n\nimport { FormAccess } from \"../components/form/FormAccess\";\nimport { DefaultSwitchControl } from \"../components/SwitchControl\";\n\ntype ClientDescriptionProps = {\n protocol?: string;\n hasConfigureAccess?: boolean;\n};\n\nexport const ClientDescription = ({\n hasConfigureAccess: configure,\n}: ClientDescriptionProps) => {\n const { t } = useTranslation();\n return (\n \n \n \n \n \n \n );\n};\n"],"names":["CapabilityConfig","unWrap","type","t","useTranslation","control","watch","setValue","useFormContext","protocol","clientAuthentication","authorization","isFeatureEnabled","useIsFeatureEnabled","jsxs","FormAccess","Fragment","jsx","FormGroup","HelpItem","Controller","field","Switch","_event","value","convertAttributeNameToForm","Grid","GridItem","InputGroup","InputGroupItem","Checkbox","Feature","DefaultSwitchControl","ClientDescription","configure","TextControl","TextAreaControl"],"mappings":"2TAwBO,MAAMA,EAAmB,CAAC,CAC/B,OAAAC,EACA,SAAUC,CACZ,IAA6B,CACrB,KAA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