SSO Login takes to logout page

mdash
Giga Guru

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

1 ACCEPTED SOLUTION

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

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.

 

View solution in original post

10 REPLIES 10

Hi Miguel,

I used your script. Still the same result. 

It is like: If I enter instance.service-now.com and then hit external login to enter sso id, it takes me to nav_to.uri/sp page
If I hit the url instance.service-now.com/csm and go for sso, it takes me to the csm homepage.

Is there a way I can send a static page to the customers that will always redirect to portal homepage?

Currently, I am using 
https://instance.service-now.com/login_with_sso.do?glide_sso_id=<idp_sys_id>
It always takes back to nav_to page, no matter what.

I have checked the following:
1. SpEntry Page
2. System Properties: glide.entry.page etc
3. Installation exit

Still can not find the cure.

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

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.

 

And....

it worked!

 

Thank you so much.

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

AWESOME SAUCE!!! GLAD IT WORKED OUT!!!

Hi Miguel,

There is one minor thing in this. If the user logs in via SSO, enters the portal and hits the SSO url again, they are redirected again to the nav_to page.

Is this something the script include can take care of?