Service Portal uses a combination
of system properties and script includes to determine how the system handles URL redirects for
users logging in to the portal.
Only users who understand SSO, URL redirects, and the ServiceNow platform should make any
changes.
Single sign-on and Service Portal
To use single sign-on with Service Portal, you must enable the
Integration - Multiple Provider Single Sign-On Installer plugin
(com.snc.integration.sso.multi.installer).
If you are using the system property to automatically redirect to your primary IdP, then
Service Portal automatically
redirects to that IdP. If you have multiple identity providers, Service Portal shows a link on the login
page to Use external login. For more information on SSO and
authentication in the platform, see Multiple-Provider single sign-on
(SSO).
Require authentication for a Service Portal page
If you want to require authentication for a Service Portal page, ensure that the
Public flag on the page record is not selected. For more
information, see Create and edit a page using the Service Portal Designer. If a user navigates to a
non-public page, they are redirected to the login page for the requested portal.
Because every page request is routed through the $sp page, this page
must be public. The following values in the Public Pages sys_public
table define the page as public:
Configure the Service Portal login page
Administrators can configure a login page URL redirect for a portal.
-
Add a system property with the following settings:
- Name: glide.entry.page.script
- Type: string
- Value:
new SPEntryPage().getLoginURL()
-
To customize the actual entry page, from the Script Includes table, search for
SPEntryPage.
Note: If you make changes to the script include, it won't be upgraded with future updates.
-
Edit the script on the SPEntryPage to change the assigned portal to the portal_suffix
you want. SPEntryPage uses /sp/ as the portal path to redirect to.
Enter your own portal_suffix in place of sp.

Note: The slash character (/) after /sp
may cause issues when
configuring single sign-on. If you're experiencing issues, try removing the character
from the script.