From d1c02c2a3902a7c8342de875ed85fb97e5de415f Mon Sep 17 00:00:00 2001 From: Connor Peshek Date: Thu, 14 May 2026 11:22:43 -0500 Subject: [PATCH] providers/saml: Add sls to saml overview (#22183) * providers/saml: clean up provider overview page * clean up logout option rendering --- .../providers/saml/SAMLProviderFormForm.ts | 21 +------- .../providers/saml/SAMLProviderOptions.ts | 33 +++++++++++++ .../providers/saml/SAMLProviderViewPage.ts | 49 +++++++++++++------ 3 files changed, 70 insertions(+), 33 deletions(-) diff --git a/web/src/admin/providers/saml/SAMLProviderFormForm.ts b/web/src/admin/providers/saml/SAMLProviderFormForm.ts index e084a2fd9c..28508a289e 100644 --- a/web/src/admin/providers/saml/SAMLProviderFormForm.ts +++ b/web/src/admin/providers/saml/SAMLProviderFormForm.ts @@ -15,6 +15,7 @@ import { availableHashes, DEFAULT_HASH_ALGORITHM, digestAlgorithmOptions, + logoutMethodOptions, retrieveSignatureAlgorithm, SAMLSupportedKeyTypes, } from "./SAMLProviderOptions.js"; @@ -29,7 +30,6 @@ import { PropertymappingsApi, PropertymappingsProviderSamlListRequest, SAMLBindingsEnum, - SAMLLogoutMethods, SAMLNameIDPolicyEnum, SAMLPropertyMapping, SAMLProvider, @@ -90,23 +90,6 @@ function renderHasSlsUrl( logoutMethod: string, setLogoutMethod?: (ev: Event) => void, ) { - const logoutMethodOptions: RadioOption[] = [ - { - label: msg("Front-channel (Iframe)"), - value: SAMLLogoutMethods.FrontchannelIframe, - default: true, - }, - { - label: msg("Front-channel (Native)"), - value: SAMLLogoutMethods.FrontchannelNative, - }, - { - label: msg("Back-channel (POST)"), - value: SAMLLogoutMethods.Backchannel, - disabled: !hasPostBinding, - }, - ]; - return html` -
-
- ${msg( - "ACS URL", - )} -
-
-
- ${this.provider.acsUrl} -
-
-
${msg( @@ -345,12 +342,36 @@ export class SAMLProviderViewPage extends AKElement {
${msg( - "Issuer", + "ACS URL", )}
- ${this.provider.issuerOverride} + ${this.provider.acsUrl} +
+
+
+
+
+ ${msg( + "SLS URL", + )} +
+
+
+ ${this.provider.slsUrl || "-"} +
+
+
+
+
+ ${msg( + "Logout Method", + )} +
+
+
+ ${this.renderLogoutMethod()}