- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 08:42 AM
Hi,
In our IDP, when I put login URL as instance.service-now.com/navpage.do, after login it takes to Homepage with portal page in the content frame.
We wanted to redirect SSO users to SP portal, so I changed the IDP login URL to instance.service-now.com/sp.
Now when the user logs in, it takes them to the SP portal logjn screen, not the SP portal Homepage. Even if I try to relogin from the portal, it loops back to the SP Portal Login page.
Strange this is, if I try Test Connection from the IDP, it lets user login and shows the SP portal homepage.
Has anyone faced this issue earlier?
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 10:49 AM
Did you create new system properties that hold the urls?
If you did try commenting out the new code you entered in the script and enter this
else if (this.redirectURL)
url = sppUrl;
Now that will always redirect to the portal.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2020 05:58 AM
It might ... the portion of the script that was modified only redirect after SN gets a return from the SSO. If the user is already authenticated that mod script won't work. I would review that script to see if there is a section where IF they are authenticated and where it sends them. I am pretty sure there is ... just don't have the script in front of me.
Also, turn on the script debug in the properties .... you can follow along in the logs what it's doing. That way you can pinpoint at what point it's getting redirected to the nav_to page after you authenticate.