theme.keycloak.v2.admin.resources.assets.SamlGeneralSettings-C6trYCdu.js.map Maven / Gradle / Ivy
{"version":3,"file":"SamlGeneralSettings-C6trYCdu.js","sources":["../../src/identity-providers/add/DescriptorSettings.tsx","../../src/identity-providers/add/SamlGeneralSettings.tsx"],"sourcesContent":["import IdentityProviderRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/identityProviderRepresentation\";\nimport { ExpandableSection } from \"@patternfly/react-core\";\nimport { useState } from \"react\";\nimport { FormProvider, useFormContext, useWatch } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n NumberControl,\n SelectControl,\n TextAreaControl,\n TextControl,\n} from \"@keycloak/keycloak-ui-shared\";\nimport { DefaultSwitchControl } from \"../../components/SwitchControl\";\n\nimport \"./discovery-settings.css\";\n\ntype DescriptorSettingsProps = {\n readOnly: boolean;\n};\n\nconst Fields = ({ readOnly }: DescriptorSettingsProps) => {\n const { t } = useTranslation();\n\n const form = useFormContext();\n const { control } = form;\n\n const wantAuthnSigned = useWatch({\n control,\n name: \"config.wantAuthnRequestsSigned\",\n });\n\n const wantAssertionsEncrypted = useWatch({\n control,\n name: \"config.wantAssertionsEncrypted\",\n });\n\n const validateSignature = useWatch({\n control,\n name: \"config.validateSignature\",\n });\n\n const useMetadataDescriptorUrl = useWatch({\n control,\n name: \"config.useMetadataDescriptorUrl\",\n });\n\n const principalType = useWatch({\n control,\n name: \"config.principalType\",\n });\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n\n {principalType?.includes(\"ATTRIBUTE\") && (\n \n )}\n \n\n \n\n \n\n \n\n \n\n {wantAuthnSigned === \"true\" && (\n <>\n \n \n >\n )}\n \n \n {wantAssertionsEncrypted === \"true\" && (\n \n )}\n\n \n \n {validateSignature === \"true\" && (\n <>\n \n \n {useMetadataDescriptorUrl !== \"true\" && (\n \n )}\n >\n )}\n \n \n \n \n \n \n \n );\n};\n\nexport const DescriptorSettings = ({ readOnly }: DescriptorSettingsProps) => {\n const { t } = useTranslation();\n const [isExpanded, setIsExpanded] = useState(false);\n\n return readOnly ? (\n setIsExpanded(isOpen)}\n isExpanded={isExpanded}\n >\n \n \n ) : (\n \n );\n};\n","import {\n HelpItem,\n TextControl,\n useEnvironment,\n} from \"@keycloak/keycloak-ui-shared\";\nimport { FormGroup } from \"@patternfly/react-core\";\nimport { useFormContext, useWatch } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { FormattedLink } from \"../../components/external-link/FormattedLink\";\nimport { useRealm } from \"../../context/realm-context/RealmContext\";\nimport type { Environment } from \"../../environment\";\nimport { DisplayOrder } from \"../component/DisplayOrder\";\nimport { RedirectUrl } from \"../component/RedirectUrl\";\n\nimport \"./saml-general-settings.css\";\n\ntype SamlGeneralSettingsProps = {\n isAliasReadonly?: boolean;\n};\n\nexport const SamlGeneralSettings = ({\n isAliasReadonly = false,\n}: SamlGeneralSettingsProps) => {\n const { t } = useTranslation();\n const { realm } = useRealm();\n const { environment } = useEnvironment();\n\n const { control } = useFormContext();\n const alias = useWatch({ control, name: \"alias\" });\n\n return (\n <>\n \n\n \n\n \n \n {isAliasReadonly && (\n \n }\n className=\"keycloak__identity-providers__saml_link\"\n >\n \n \n )}\n >\n );\n};\n"],"names":["Fields","readOnly","t","useTranslation","form","useFormContext","control","wantAuthnSigned","useWatch","wantAssertionsEncrypted","validateSignature","useMetadataDescriptorUrl","principalType","jsxs","FormProvider","jsx","TextControl","DefaultSwitchControl","SelectControl","Fragment","TextAreaControl","NumberControl","DescriptorSettings","isExpanded","setIsExpanded","useState","ExpandableSection","_event","isOpen","SamlGeneralSettings","isAliasReadonly","realm","useRealm","environment","useEnvironment","alias","RedirectUrl","DisplayOrder","FormGroup","HelpItem","FormattedLink"],"mappings":"2cAmBA,MAAMA,EAAS,CAAC,CAAE,SAAAC,KAAwC,CAClD,KAAA,CAAE,EAAAC,GAAMC,IAERC,EAAOC,IACP,CAAE,QAAAC,CAAY,EAAAF,EAEdG,EAAkBC,EAAS,CAC/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