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

theme.keycloak.v2.admin.resources.assets.OIDCGeneralSettings--wdBI6nV.js.map Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
{"version":3,"file":"OIDCGeneralSettings--wdBI6nV.js","sources":["../../src/identity-providers/component/FormGroupField.tsx","../../src/identity-providers/component/SwitchField.tsx","../../src/identity-providers/component/TextField.tsx","../../src/identity-providers/add/DiscoverySettings.tsx","../../src/identity-providers/add/OIDCAuthentication.tsx","../../src/identity-providers/add/OIDCGeneralSettings.tsx"],"sourcesContent":["import { FormGroup } from \"@patternfly/react-core\";\nimport { PropsWithChildren } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { HelpItem } from \"@keycloak/keycloak-ui-shared\";\n\nexport type FieldProps = { label: string; field: string; isReadOnly?: boolean };\nexport type FormGroupFieldProps = { label: string };\n\nexport const FormGroupField = ({\n  label,\n  children,\n}: PropsWithChildren) => {\n  const { t } = useTranslation();\n  return (\n    }\n    >\n      {children}\n    \n  );\n};\n","import { Switch } from \"@patternfly/react-core\";\nimport { Controller, useFormContext } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { FieldProps, FormGroupField } from \"./FormGroupField\";\n\ntype FieldType = \"boolean\" | \"string\";\n\ntype SwitchFieldProps = FieldProps & {\n  fieldType?: FieldType;\n  defaultValue?: string | boolean;\n};\n\nexport const SwitchField = ({\n  label,\n  field,\n  fieldType = \"string\",\n  isReadOnly = false,\n  defaultValue,\n}: SwitchFieldProps) => {\n  const { t } = useTranslation();\n  const { control } = useFormContext();\n  return (\n    \n       (\n          \n              field.onChange(fieldType === \"string\" ? \"\" + value : value)\n            }\n            isDisabled={isReadOnly}\n            aria-label={label}\n          />\n        )}\n      />\n    \n  );\n};\n","import { TextInput } from \"@patternfly/react-core\";\nimport { useFormContext } from \"react-hook-form\";\n\nimport { FieldProps, FormGroupField } from \"./FormGroupField\";\n\nexport const TextField = ({ label, field, isReadOnly = false }: FieldProps) => {\n  const { register } = useFormContext();\n  return (\n    \n      \n    \n  );\n};\n","import IdentityProviderRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/identityProviderRepresentation\";\nimport { ExpandableSection } from \"@patternfly/react-core\";\nimport { useState } from \"react\";\nimport { useFormContext, useWatch } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport {\n  SelectControl,\n  TextAreaControl,\n  TextControl,\n} from \"@keycloak/keycloak-ui-shared\";\nimport { DefaultSwitchControl } from \"../../components/SwitchControl\";\n\nimport \"./discovery-settings.css\";\n\nconst PKCE_METHODS = [\"plain\", \"S256\"] as const;\n\ntype DiscoverySettingsProps = {\n  readOnly: boolean;\n};\n\nconst Fields = ({ readOnly }: DiscoverySettingsProps) => {\n  const { t } = useTranslation();\n  const { control } = useFormContext();\n\n  const validateSignature = useWatch({\n    control,\n    name: \"config.validateSignature\",\n  });\n  const useJwks = useWatch({\n    control,\n    name: \"config.useJwksUrl\",\n  });\n  const isPkceEnabled = useWatch({\n    control,\n    name: \"config.pkceEnabled\",\n  });\n\n  return (\n    
\n \n \n \n \n \n \n {validateSignature === \"true\" && (\n <>\n \n {useJwks === \"true\" ? (\n \n ) : (\n <>\n \n \n \n )}\n \n )}\n \n {isPkceEnabled === \"true\" && (\n ({\n key: option,\n value: t(option),\n }))}\n />\n )}\n
\n );\n};\n\nexport const DiscoverySettings = ({ readOnly }: DiscoverySettingsProps) => {\n const { t } = useTranslation();\n const [isExpanded, setIsExpanded] = useState(false);\n\n return (\n <>\n {readOnly && (\n setIsExpanded(!isExpanded)}\n isExpanded={isExpanded}\n >\n \n \n )}\n {!readOnly && }\n \n );\n};\n","import {\n HelpItem,\n KeycloakSelect,\n SelectVariant,\n} from \"@keycloak/keycloak-ui-shared\";\nimport { FormGroup, SelectOption } from \"@patternfly/react-core\";\nimport { useState } from \"react\";\nimport { Controller, useFormContext, useWatch } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { useServerInfo } from \"../../context/server-info/ServerInfoProvider\";\nimport { sortProviders } from \"../../util\";\nimport { ClientIdSecret } from \"../component/ClientIdSecret\";\nimport { SwitchField } from \"../component/SwitchField\";\nimport { TextField } from \"../component/TextField\";\n\nconst clientAuthentications = [\n \"client_secret_post\",\n \"client_secret_basic\",\n \"client_secret_jwt\",\n \"private_key_jwt\",\n];\n\nexport const OIDCAuthentication = ({ create = true }: { create?: boolean }) => {\n const providers = useServerInfo().providers!.clientSignature.providers;\n const { t } = useTranslation();\n\n const { control } = useFormContext();\n const [openClientAuth, setOpenClientAuth] = useState(false);\n const [openClientAuthSigAlg, setOpenClientAuthSigAlg] = useState(false);\n\n const clientAuthMethod = useWatch({\n control: control,\n name: \"config.clientAuthMethod\",\n });\n\n return (\n <>\n \n }\n fieldId=\"clientAuthentication\"\n >\n (\n setOpenClientAuth(!openClientAuth)}\n onSelect={(value) => {\n field.onChange(value as string);\n setOpenClientAuth(false);\n }}\n selections={field.value}\n variant={SelectVariant.single}\n aria-label={t(\"clientAuthentication\")}\n isOpen={openClientAuth}\n >\n {clientAuthentications.map((option) => (\n \n {t(`clientAuthentications.${option}`)}\n \n ))}\n \n )}\n />\n \n \n \n }\n fieldId=\"clientAssertionSigningAlg\"\n >\n (\n setOpenClientAuthSigAlg(!openClientAuthSigAlg)}\n onSelect={(value) => {\n field.onChange(value.toString());\n setOpenClientAuthSigAlg(false);\n }}\n selections={field.value || t(\"algorithmNotSpecified\")}\n variant={SelectVariant.single}\n aria-label={t(\"selectClientAssertionSigningAlg\")}\n isOpen={openClientAuthSigAlg}\n >\n {[\n \n {t(\"algorithmNotSpecified\")}\n ,\n ...sortProviders(providers).map((option) => (\n \n {option}\n \n )),\n ]}\n \n )}\n />\n \n {(clientAuthMethod === \"private_key_jwt\" ||\n clientAuthMethod === \"client_secret_jwt\") && (\n \n )}\n {clientAuthMethod === \"private_key_jwt\" && (\n \n )}\n \n );\n};\n","import { useFormContext, useWatch } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\nimport { useParams } from \"react-router-dom\";\nimport { TextControl } from \"@keycloak/keycloak-ui-shared\";\nimport { DisplayOrder } from \"../component/DisplayOrder\";\nimport { RedirectUrl } from \"../component/RedirectUrl\";\nimport type { IdentityProviderParams } from \"../routes/IdentityProvider\";\n\nexport const OIDCGeneralSettings = () => {\n const { t } = useTranslation();\n const { tab } = useParams();\n\n const { control } = useFormContext();\n const alias = useWatch({ control, name: \"alias\" });\n\n return (\n <>\n \n\n \n\n \n \n \n );\n};\n"],"names":["FormGroupField","label","children","t","useTranslation","jsx","FormGroup","HelpItem","SwitchField","field","fieldType","isReadOnly","defaultValue","control","useFormContext","Controller","Switch","_event","value","TextField","register","TextInput","PKCE_METHODS","Fields","readOnly","validateSignature","useWatch","useJwks","isPkceEnabled","jsxs","TextControl","DefaultSwitchControl","Fragment","TextAreaControl","SelectControl","option","DiscoverySettings","isExpanded","setIsExpanded","useState","ExpandableSection","clientAuthentications","OIDCAuthentication","create","providers","useServerInfo","openClientAuth","setOpenClientAuth","openClientAuthSigAlg","setOpenClientAuthSigAlg","clientAuthMethod","KeycloakSelect","SelectVariant","SelectOption","ClientIdSecret","sortProviders","OIDCGeneralSettings","tab","useParams","alias","RedirectUrl","DisplayOrder"],"mappings":"sfASO,MAAMA,EAAiB,CAAC,CAC7B,MAAAC,EACA,SAAAC,CACF,IAA8C,CACtC,KAAA,CAAE,EAAAC,GAAMC,IAEZ,OAAAC,EAACC,EAAA,CACC,MAAOH,EAAEF,CAAK,EACd,QAASA,EACT,UAAYI,EAAAE,EAAA,CAAS,SAAUJ,EAAE,GAAGF,CAAK,MAAM,EAAG,aAAcA,CAAO,CAAA,EAEtE,SAAAC,CAAA,CAAA,CAGP,ECVaM,EAAc,CAAC,CAC1B,MAAAP,EACA,MAAAQ,EACA,UAAAC,EAAY,SACZ,WAAAC,EAAa,GACb,aAAAC,CACF,IAAwB,CAChB,KAAA,CAAE,EAAAT,GAAMC,IACR,CAAE,QAAAS,GAAYC,IAElB,OAAAT,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