Redirect SSO users to another URL than non-SSO-users after logging out

From SAML version 6.12. it is possible to redirect SSO users to another URL than non-SSO users after logging out.

When the Logout Redirection is set to Redirect all users after logout,

image2024-9-17_17-44-32.png

Users see the Logged Out page after logging out:

image2024-9-17_17-48-14.png


This Page can be customized by editing the Logged Out Page Template under Page Templates in the app's configuration page.

Redirect SSO users to another page then non-SSO-users

This example redirects SSO-users to https://www.bing.com, non-SSO-users to https://www.google.com. It uses the $wasSso Velocity-variable wich is true if the user was logged in with SSO.

  1. <html>
  2. <head>
  3. <title>You are logged out now</title>
  4. $webResourceManager.requireResource("$pluginproperties.pluginkey:resources")
  5. <meta name="decorator" content="atl.general">
  6. </head>
  7. <body class="aui-layout aui-theme-default page-type-message" >
  8. <section id="content" role="main">
  9. <div class="aui-page-panel"><div class="aui-page-panel-inner">
  10. <section class="aui-page-panel-content">
  11. <div class="form-body">
  12. <div class="aui-message info"><span class="aui-icon icon-info"></span><p class="title">
  13. #if($wasSso)
  14. <p>This was a SSO Session</p>
  15. <script>window.location.href = 'https://www.bing.com'</script>
  16. #else
  17. <p>This was no SSO Session</p>
  18. <script>window.location.href = 'https://www.google.com'</script>
  19. #end
  20. </div>
  21. </div>
  22. </section>
  23. </div>
  24. </div>
  25. </section>
  26. </body>
  27. </html>