Skip to main content

SAML Logout VAM Deployment Guide


This guide applies only to Identity Platform release 23.07 and earlier.

To enable this feature for Identity Platform release 24.04 or later, see How to configure SAML Logout.

This document details the deployment and configuration of the Value-Added Module (VAM) that enables applications using SAML Logout to access SecureAuth Identity Platform (formerly SecureAuth IdP) for authentication and authorization.

Deployment and setup

This section details the steps required to deploy and configure the VAM for SAML Logout.


Follow the steps required to integrate this VAM with the Identity Platform.

  1. In the Identity Platform Web Admin console, create a realm to handle SAML Logout security.

    It is only necessary to specify the name and other basics for this realm. The details can come later.

    For more information on creating a new realm, see SecureAuth IdP Realm Guide.

  2. Copy the VAM files to the realm folder, similar to the following example:

    • [LocalComputer]\SecureAuth\SecureAuth23\SAML20SPInitLogout.aspx

    • [LocalComputer]\SecureAuth\SecureAuth23\SAML20SPInitLogout.aspx.cs

    • [LocalComputer]\SecureAuth\SecureAuth23\saml.config

    • [LocalComputer]\SecureAuth\SecureAuth23\Bin\ComponentSpace.SAML2.dll

    • [LocalComputer]\SecureAuth\SecureAuth23\Bin\MFC.SAML20.dll

    • [LocalComputer]\SecureAuth\SecureAuth23\SAML20IdPInitACS.aspx.vb

    • [LocalComputer]\SecureAuth\SecureAuth23\SAML20IdPInitACS.aspx

  3. In the realm root directory, create a new subfolder with the following name:


  4. Copy the public X509 certificate used to verify the signature of the service, and paste into the \Certificates folder.

  5. In the web.config file, in the <AppSettings> section, add the signatureAlgorithm:

    <add key="SAMLAlgorithm" value="" />

  6. Using a text editor, open the saml.config file.

    The saml.config file should look like the following example:

    <?xml version="1.0"?>
    <SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">;
        <IdentityProvider Name="SecureAuth"
            <ServiceProvider NameIdentifier ="NameIdentifier1"
                SingleLogoutServiceUrl="http://<<Service Provider Logout Url>>"
                RelayState="" />
            <ServiceProvider NameIdentifier ="NameIdentifier2"
                SingleLogoutServiceUrl="http://<<Service Provider Logout Url>>"
                RelayState="" />
  7. Edit this file as required using the following table.



    IdentityProvider Name

    Name of the Identity Provider to which the service provider expects in the logout response.


    Not required.


    Currently not in use.


    Currently not in use.

    ServiceProvider NameIdentifier

    Typically referred to as EntityID in the service provider application.

    If you are not sure whether this value is coming from the service provider, use SAML Trace with Firefox to determine the Issuer value.

    For more information on SAML Trace, see Firefox with the SAML Trace Add-on.


    If the service provider signs the logout request and is HttpPost binding, set this value to true.


    If the service provider expects the logout response to be signed, set this value to true.


    The name of the certificate saved in [LocalComputer]\SecureAuth\SecureAuth23\Certificates.


    The hashing algorithm used for the reference validation of the XML digital signature. Options are:

    • SHA1

    • SHA256

    • SHA384

    • SHA512


    RSA hashing algorithm used for the signature validation of the XML digital signature. Options are:

    • RSA_SHA1

    • RSA_256

    • RSA_284

    • RSA_512


    The URL of the SLO (single log out) endpoint from the service provider.


    The method used to send a response. Options are:

    • HTTPRedirect

    • HTTPPost

    • HTTPSoap


    When set to true and the service provider sends a relay state value, it uses this value.

    When no relay state value is provided, but the RelayState attribute below is defined, it uses this value.


    Not all service providers require a relay state.


    The relay state required by the service provider application.

  8. Save the modified file and exit the text editor.


    The Service Provider needs to send the SAML Logout request to the following file:



To diagnose any problems that might occur during the set up or use of the SAML Logout VAM, use the two diagnostic tools as described next.

Firefox with the SAML Trace Add-on

The Firefox browser has an add-on that allows you to view SAML messages sent through the browser during single sign-on and single logout. To download Firefox, go to:

To download the SAML Tracer Add-on for Firefox, go to:

Disclaimer: Both products are not the property of SecureAuth and no warranty is implied.

ComponentSpace Text Writer

The SecureAuth SAML 2.0 Logout solution uses the ComponentSpace SAML 2.0 library, which supports ASP.Net system diagnostics for logging. You can enable this logging at the realm level by adding TextWriterTraceListener as shown below.

A full write-up about the ComponentSpace Text Writer is located in the ComponentSpace forum:

<!-- The diagnostics are only required for problem determination. -->
	<trace autoflush="true">
		<add name="TextWriter"/>
		<source name="ComponentSpace.SAML2" switchValue="Verbose">
			<add name="TextWriter"/>
	  <!-- Ensure IIS has create/write file permissions for the log folder. -->
	  <add name="TextWriter" type="System.Diagnostics.TextWriterTraceListener" initializeData="D:\SamlTrace\Logs\idp.log"/>