From 30fcb936d37f6963fe702e0d0bf45a1739472e8a Mon Sep 17 00:00:00 2001 From: Sachin Mamoru <59449070+Sachin-Mamoru@users.noreply.github.com> Date: Sun, 24 Nov 2024 23:47:12 +0530 Subject: [PATCH] Fix UI Issues with SAML Connection Configurations --- .../authenticators/saml-authenticator-form.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/features/admin.connections.v1/components/edit/forms/authenticators/saml-authenticator-form.tsx b/features/admin.connections.v1/components/edit/forms/authenticators/saml-authenticator-form.tsx index af2f50b0a77..5aefa80ebe9 100644 --- a/features/admin.connections.v1/components/edit/forms/authenticators/saml-authenticator-form.tsx +++ b/features/admin.connections.v1/components/edit/forms/authenticators/saml-authenticator-form.tsx @@ -112,6 +112,8 @@ export interface SamlPropertiesInterface { attributeConsumingServiceIndex?: string; AuthnContextComparisonLevel?: string; IsAssertionEncrypted?: boolean; + IncludeCert?: boolean; + IncludeNameIDPolicy?:boolean; AuthnContextClassRef?: string; } @@ -252,10 +254,15 @@ export const SamlAuthenticatorSettingsForm: FunctionComponent({ defaultValue: "string", key: "ISArtifactResponseSigned" }), + IncludeAuthnContext: findPropVal({ defaultValue: "string", key: "IncludeAuthnContext" }), + ForceAuthentication: findPropVal({ defaultValue: "string", key: "ForceAuthentication" }), + ResponseAuthnContextClassRef: findPropVal({ defaultValue: "string", key: "ResponseAuthnContextClassRef" }), ISAuthnReqSigned: findPropVal({ defaultValue: false, key: "ISAuthnReqSigned" }), IdPEntityId: findPropVal({ defaultValue: "", key: "IdPEntityId" }), IncludeProtocolBinding: findPropVal({ defaultValue: false, key: "IncludeProtocolBinding" }), IsAssertionEncrypted: findPropVal({ defaultValue: false, key: "IsAssertionEncrypted" }), + IncludeNameIDPolicy: findPropVal({ defaultValue: false, key: "IncludeNameIDPolicy" }), + IncludeCert : findPropVal({ defaultValue: false, key: "IncludeCert" }), /** * `IsAuthnRespSigned` is by default set to true when creating the SAML IdP so, * always the value will be true. Keeping this here to indicate for the user and @@ -279,7 +286,8 @@ export const SamlAuthenticatorSettingsForm: FunctionComponent({ defaultValue: "", key: "SSOUrl" }), SignatureAlgorithm: findPropVal({ defaultValue: "RSA with SHA256", key: "SignatureAlgorithm" }), commonAuthQueryParams: findPropVal({ defaultValue: "", key: "commonAuthQueryParams" }), - customAuthnContextClassRef: findPropVal({ defaultValue: "", key: "CustomAuthnContextClassRef" }), + CustomAuthnContextClassRef: findPropVal({ defaultValue: "", key: "CustomAuthnContextClassRef" }), + AttributeConsumingServiceIndex: findPropVal({ defaultValue: "", key: "AttributeConsumingServiceIndex" }), /** * https://github.com/wso2/product-is/issues/17004 */ @@ -300,6 +308,8 @@ export const SamlAuthenticatorSettingsForm: FunctionComponent