Configure specific Identity Provider (IdP) redirect for Service Portal SSO login Issue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } When multiple Identity Providers (IdP) are configured for SSO and no auto-redirect IdP is set, appending a glide_sso_id parameter to a Service Portal login URL does not redirect users to the specified IdP. This affects any portal using the login_with_sso.do endpoint with a glide_sso_id value in a multi-SSO environment. For example, the following URLs do not produce the expected IdP redirect when no auto-redirect is configured: https://<instance-name>.service-now.com/test_sp/login_with_sso.do?glide_sso_id=<idp_sys_id> https://<instance-name>.service-now.com/test_sp2/login_with_sso.do?glide_sso_id=<idp_sys_id> To direct users to a specific IdP from a Service Portal login, the portal's login widget must be configured to redirect to `/login_with_sso.do?glide_sso_id=<idp_sys_id>`, where `<idp_sys_id>` corresponds to the target Identity Provider record in Multi-Provider SSO > Identity Providers. Starting with the Australia release, authentication settings are managed directly within each Service Portal record. The Login widget dynamically renders the configured authentication options without requiring any customisations. Portal-specific authentication settings take precedence when enabled. Otherwise, the platform uses the existing instance-level authentication configuration. All existing implementations remain fully backward compatible. Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Applies to any release Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } The login_with_sso.do endpoint does not support deep links. As a result, the URLs with glide_sso_id do not redirect to the intended portals. Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } For instances on Australia or later release, please refer to the documentation below on how to configure SSO for specific Service Portals: Portal-Specific Authentication in ServiceNow Australia Release — Configure Login Per Portal To configure a specific IdP redirect for a Service Portal, modify the portal's Server script and Client Controller script as described in the following steps. 1. Navigate directly to the Service Portal in the browser: https://<instance-name>.service-now.com/test_sp https://<instance-name>.service-now.com/test_sp2 2. To configure the IdP for a specific portal, use [Disable SSO auto-redirect for some portals to local login while still keeping SSO authentication for others (KB0719767) as a guide. 3. In the Server script, comment out the following line: data.default_idp = GlideProperties.get("glide.authenticate.sso.redirect.idp"); 4. Add the following line directly below the commented-out line, replacing <idp_sys_id> with the sys_id of the target Identity Provider record: data.default_idp = '<idp_sys_id>'; Apply this change to the Server script for both test_sp and test_sp2. This approach allows distinct Service Portals to each route unauthenticated users to their respective IdP without relying on a single global auto-redirect setting. 5. In the Client Controller script, <idp_sys_id> is referenced as c.data.default_idp. The relevant block reads as follows: 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; }); } 6. The Server script can be extended for more selective or complex redirect logic if required. 7. Save all script changes and test the configuration by accessing each portal URL as an unauthenticated user to confirm the correct IdP redirect occurs. Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } - Disable SSO auto-redirect for some portals to local login while keeping SSO authentication for others (KB0719767) - How to enable automatic SSO redirect from the instance login page (KB0831935) - Redirect users to the SSO identity provider login page automatically (KB0720812) - Portal-Specific Authentication in ServiceNow Australia Release — Configure Login Per Portal