Issue
When navigating to a Service Portal page while logged out, you are redirected to the desktop's login page. For a fraction of a second, you can see /auth_redirect.do?sysparm_url=logout_success.do
Cause
The portal landing page has the Login widget configured within it. This widget has the following code in client script:
if (!c.data.is_logged_in && c.data.multisso_enabled && c.data.default_idp) {
c.server.get({
action: "set_sso_destination",
pageURI: c.data.pageURI
}).then(function() {
$window.location = "/login_with_sso.do?glide_sso_id=" + c.data.default_idp;
});
}
The redirection happens because the condition above is passing.
In the condition, c.data.default_idp is being assigned to system property, glide.authenticate.sso.redirect.idp
In a customer's specific case, the system property was associated with a nonexistent Identity Provider (not seen in sso_properties_list.do).
Resolution
To make the redirection happen as expected, either remove the system property or make it point to a valid Identity Provider.