From ae3b1df3c28b811ea489fc2b4c1978449c45ad02 Mon Sep 17 00:00:00 2001 From: JeethJJ Date: Fri, 22 Mar 2024 15:00:23 +0530 Subject: [PATCH 1/2] Introduce configurations to alter visibility of app configs --- apps/console/src/extensions/configs/application.tsx | 2 ++ apps/console/src/extensions/configs/models/application.ts | 2 ++ .../applications/components/forms/inbound-oidc-form.tsx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/apps/console/src/extensions/configs/application.tsx b/apps/console/src/extensions/configs/application.tsx index e3297e8e866..a9afb38d0f8 100644 --- a/apps/console/src/extensions/configs/application.tsx +++ b/apps/console/src/extensions/configs/application.tsx @@ -620,7 +620,9 @@ export const applicationConfig: ApplicationConfig = { showClientSecretMessage: false, showFrontChannelLogout: false, showIdTokenEncryption: true, + showIdTokenResponseSigningAlgorithm: true, showNativeClientSecretMessage: false, + showRequestObjectConfigurations: true, showRequestObjectSignatureValidation: false, showReturnAuthenticatedIdPList: false, showScopeValidators: false diff --git a/apps/console/src/extensions/configs/models/application.ts b/apps/console/src/extensions/configs/models/application.ts index 4fa6719249d..a8d74b61cfc 100644 --- a/apps/console/src/extensions/configs/models/application.ts +++ b/apps/console/src/extensions/configs/models/application.ts @@ -118,7 +118,9 @@ export interface ApplicationConfig { showScopeValidators: boolean; showNativeClientSecretMessage: boolean; showIdTokenEncryption: boolean; + showIdTokenResponseSigningAlgorithm: boolean; showBackChannelLogout: boolean; + showRequestObjectConfigurations: boolean; showRequestObjectSignatureValidation: boolean; showCertificates: boolean; showReturnAuthenticatedIdPList: boolean; diff --git a/apps/console/src/features/applications/components/forms/inbound-oidc-form.tsx b/apps/console/src/features/applications/components/forms/inbound-oidc-form.tsx index c7c9ddda25e..89a1afa9a3d 100644 --- a/apps/console/src/features/applications/components/forms/inbound-oidc-form.tsx +++ b/apps/console/src/features/applications/components/forms/inbound-oidc-form.tsx @@ -2046,6 +2046,7 @@ export const InboundOIDCForm: FunctionComponent = || ApplicationTemplateIdTypes.OIDC_WEB_APPLICATION === template?.templateId) && !isSystemApplication && !isDefaultApplication + && applicationConfig?.inboundOIDCForm?.showRequestObjectConfigurations && ( <> @@ -2902,6 +2903,7 @@ export const InboundOIDCForm: FunctionComponent = { ApplicationTemplateNames.STANDARD_BASED_APPLICATION === template?.name && !isSystemApplication && !isDefaultApplication + && applicationConfig?.inboundOIDCForm?.showIdTokenResponseSigningAlgorithm && ( From 11701769b91ec2c865bcda4df1744bd8bbc44d4f Mon Sep 17 00:00:00 2001 From: JeethJJ Date: Fri, 22 Mar 2024 15:01:34 +0530 Subject: [PATCH 2/2] Add changeset --- .changeset/twelve-plums-pull.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/twelve-plums-pull.md diff --git a/.changeset/twelve-plums-pull.md b/.changeset/twelve-plums-pull.md new file mode 100644 index 00000000000..40c818e8615 --- /dev/null +++ b/.changeset/twelve-plums-pull.md @@ -0,0 +1,5 @@ +--- +"@wso2is/console": patch +--- + +Introduce configurations to alter visibility of app configs