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
‎06-28-2023 06:15 PM
I know this is an old post but I came across this as I was trying to achieve the same thing.
You can do this without cloning the login widget as we all know this means we miss out on any future enhancements and also means it's something we have to consider during upgrades. Plus you'd have to replace the widget on all the portals that use it.
I achieve this by creating a script include to redirect the entry page to be the external login page and then created a system property called: glide.entry.page.script to reference this script.
Script is:
var PreLoginScript = Class.create();
PreLoginScript.prototype = {
initialize: function() {
},
redirectToLoginLocateSSO: function() {
return "/login_locate_sso.do";
},
type: 'PreLoginScript'
};
Then update the system property to be:
new PreLoginScript().redirectToLoginLocateSSO();
No cloning needed 🙂
Reference: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0758382