mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
Default values for request obj (#44177)
* Default values for request obj Closes #43034 Signed-off-by: Keshav Deshpande <keshavprashantdeshpande@gmail.com> * Format the lint Closes #43034 Signed-off-by: Keshav Deshpande <keshavprashantdeshpande@gmail.com> * Remove attribute conversion Closes #43034 Signed-off-by: Keshav Deshpande <keshavprashantdeshpande@gmail.com> * Remove added newline Closes #43034 Signed-off-by: Keshav Deshpande <keshavprashantdeshpande@gmail.com> --------- Signed-off-by: Keshav Deshpande <keshavprashantdeshpande@gmail.com>
This commit is contained in:
@@ -37,11 +37,6 @@ export const FineGrainOpenIdConnect = ({
|
||||
...convert(list),
|
||||
];
|
||||
|
||||
const prependAny = (list: { [index: string]: ProviderRepresentation }) => [
|
||||
{ key: "any", value: t("any") },
|
||||
...convert(list),
|
||||
];
|
||||
|
||||
const prependNone = (list: { [index: string]: ProviderRepresentation }) => [
|
||||
{ key: "none", value: t("none") },
|
||||
...convert(list),
|
||||
@@ -198,12 +193,9 @@ export const FineGrainOpenIdConnect = ({
|
||||
label={t("requestObjectSignatureAlgorithm")}
|
||||
labelIcon={t("requestObjectSignatureAlgorithmHelp")}
|
||||
controller={{
|
||||
defaultValue: "any",
|
||||
defaultValue: "",
|
||||
}}
|
||||
options={[
|
||||
{ key: "any", value: t("any") },
|
||||
...prependNone(clientSignatureProviders!),
|
||||
]}
|
||||
options={prependNone(clientSignatureProviders!)}
|
||||
/>
|
||||
<SelectControl
|
||||
name={convertAttributeNameToForm<FormFields>(
|
||||
@@ -212,9 +204,9 @@ export const FineGrainOpenIdConnect = ({
|
||||
label={t("requestObjectEncryption")}
|
||||
labelIcon={t("requestObjectEncryptionHelp")}
|
||||
controller={{
|
||||
defaultValue: "any",
|
||||
defaultValue: "",
|
||||
}}
|
||||
options={prependAny(cekManagementProviders!)}
|
||||
options={prependEmpty(cekManagementProviders!)}
|
||||
/>
|
||||
<SelectControl
|
||||
name={convertAttributeNameToForm<FormFields>(
|
||||
@@ -223,9 +215,9 @@ export const FineGrainOpenIdConnect = ({
|
||||
label={t("requestObjectEncoding")}
|
||||
labelIcon={t("requestObjectEncodingHelp")}
|
||||
controller={{
|
||||
defaultValue: "any",
|
||||
defaultValue: "",
|
||||
}}
|
||||
options={prependAny(contentEncryptionProviders!)}
|
||||
options={prependEmpty(contentEncryptionProviders!)}
|
||||
/>
|
||||
<SelectControl
|
||||
name={convertAttributeNameToForm<FormFields>(
|
||||
|
||||
Reference in New Issue
Block a user