Set Service Portal Login to default to External Login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2017 08:33 AM
As we use multiple SSO sources, we want to login widget on the SP landing page to default to External login rather than local login. How do I set what is default in that login widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2017 08:15 AM
The issue with this, is it does not address the fact that I have multiple SSO sources. I have the SSO source set on a user's record, so, when they use the external login option, it knows which IDP to use to authenticate the user, and log them on. This means I cannot set the SSO source.
What I am looking for is how to go into the login widget to set the default to be the External Login. It looks like it changes when it is sent a "click" using ng-click.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 07:41 AM
Hello - I was curious if you got any further with this, I have the exact same requirement.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2018 03:20 PM
I have the exact same requirement. Was there ever a resolution to this? I want the user to see the "External Login" block by default and be able to select the local login if they way. I played around with the coding of the widget but I was not able to make it do what I wanted. I gave up because I had other things to do. I would still like to do this though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2018 05:10 AM
Hi Shembop,
We had a similar setup that I overcame with a creating a custom version of the login widget. The solution was very simple and just involved adding the following line to the client script of the widget:
c.externalLoginMode = true;
I've outlined the entire process I used in an article:
https://community.servicenow.com/community?id=community_article&sys_id=14401f7adbd497042e247a9e0f961...
It seems odd to me that this wasn't available as an option on the out of box widget, so you could just go to the widget instance on the page and tell it to default to the external login. Maybe at some point.
I hope that helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2023 06:31 PM
Your article is unfortunately archived. However, your method is the one that solved my problem. The only issue is "where to insert that line of code".
1. Clone the Login page - name it something like "login-sso"
2. Clone the login widget on the page and name it something like "login-sso-widget"
3. Modify your sso-widget by inserting the line of code above. Here is how it looks on my Vancouver instance (with dark theme)
Cloned Login Widget - add line 6
4. Remove the login widget from your cloned page and insert your modified "login-widget-sso"
5. Make your modified login-sso page the front page.
6. Now your login page displays the SSO Login prompt, with a link below it to show the "Log In with Username and password" to switch to for local logins.
Also - Chris Pike's method with sys_properties and script, dated 6-28-2023, worked for the Polaris/native view. Now both of our login screens default to the SSO version.