mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Only include new fields for key generation if not useFile
Closes #40860 Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
parent
5937b28efa
commit
6535ae687e
@ -93,25 +93,29 @@ export const KeyForm = ({
|
||||
{format !== CERT_PEM && (
|
||||
<StoreSettings hidePassword={useFile} isSaml={isSaml} />
|
||||
)}
|
||||
<SelectControl
|
||||
name="keySize"
|
||||
label={t("keySize")}
|
||||
labelIcon={t("keySizeHelp")}
|
||||
controller={{
|
||||
defaultValue: keySizes[0],
|
||||
}}
|
||||
menuAppendTo="parent"
|
||||
options={keySizes}
|
||||
/>
|
||||
<NumberControl
|
||||
name="validity"
|
||||
label={t("validity")}
|
||||
labelIcon={t("validityHelp")}
|
||||
controller={{
|
||||
defaultValue: 3,
|
||||
rules: { required: t("required"), min: 1, max: 10 },
|
||||
}}
|
||||
/>
|
||||
{!useFile && (
|
||||
<>
|
||||
<SelectControl
|
||||
name="keySize"
|
||||
label={t("keySize")}
|
||||
labelIcon={t("keySizeHelp")}
|
||||
controller={{
|
||||
defaultValue: keySizes[0],
|
||||
}}
|
||||
menuAppendTo="parent"
|
||||
options={keySizes}
|
||||
/>
|
||||
<NumberControl
|
||||
name="validity"
|
||||
label={t("validity")}
|
||||
labelIcon={t("validityHelp")}
|
||||
controller={{
|
||||
defaultValue: 3,
|
||||
rules: { required: t("required"), min: 1, max: 10 },
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user