Modifying the external_logout_complete.do page

Riddel
Tera Expert

Anyone have any idea on how to modify the external_logout_complete.do page that is executed when a user logs out of a SSO instance?
I know I can simply change this value on the Single Sign-on properties and divert the user to another web page, but as I only wish to make a few minor edits to the default page so I don't want to reinvent the wheel. I essentially want to add a link to this page to allows users to go back to the home page.

I've looked in ui pages, ui macros, script includes, etc without any luck in determining how this page is generated. I'm sure there is a simple answer, but I'm out of ideas on how to do this.

Thanks!

1 ACCEPTED SOLUTION

CapaJC
ServiceNow Employee
ServiceNow Employee

That said, it's a really simple page. Here's the current content, which you could probably copy/paste into a UI Page and modify (don't ask me why there are nested tables - my guess is that this page was thrown together in 30 seconds many years ago):



<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="true" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<table class="wide" cellpadding="0" cellspacing="0" border="0">
<tr class="header">
<td>
<table border="0" cellspacing="0" cellpadding="2">
<tr class="header">
<td width="100%">
<div id="form_header" class="caption" style="margin-top: 2px;">${gs.getMessage('Logout succeeded')}</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div>
<h3>${gs.getMessage('Logout successful')}</h3>
</div>
</td>
</tr>
<tr>
<td>
<div>
${gs.getMessage('You have successfully logged out.')}


</div>
</td>
</tr>
</table>
</j:jelly>


View solution in original post

6 REPLIES 6

CapaJC
ServiceNow Employee
ServiceNow Employee

It's currently hardcoded. You can create a new UI Page named external_logout_complete to override it if you like.


Riddel
Tera Expert

Darn, I was afraid of that. However, it's good to know. Thanks!


CapaJC
ServiceNow Employee
ServiceNow Employee

That said, it's a really simple page. Here's the current content, which you could probably copy/paste into a UI Page and modify (don't ask me why there are nested tables - my guess is that this page was thrown together in 30 seconds many years ago):



<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="true" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<table class="wide" cellpadding="0" cellspacing="0" border="0">
<tr class="header">
<td>
<table border="0" cellspacing="0" cellpadding="2">
<tr class="header">
<td width="100%">
<div id="form_header" class="caption" style="margin-top: 2px;">${gs.getMessage('Logout succeeded')}</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div>
<h3>${gs.getMessage('Logout successful')}</h3>
</div>
</td>
</tr>
<tr>
<td>
<div>
${gs.getMessage('You have successfully logged out.')}


</div>
</td>
</tr>
</table>
</j:jelly>


As suggested, I created a custom UI page with our logo (ex MyLogout) and updated our SSO identity provider record with "mylogout.do" in the field "External logout redirect".


I now have the issue shown in the thread below:


Multiple SSO : Logout page



Also the user was not actually logged out..