Getting redirected to the SSO Login page

ayman_h
Kilo Sage
Kilo Sage

I have a strange issue where if I hit the base URL (https://<instance>.service-now.com/) after having navigated to the SSO Login URL, I keep getting redirected to the SSO Login page via the auth_redirect.do page. Without visiting the SSO Login URL, I am redirected to the Service Portal (/sp/) page. This is controlled by the SPEntryPage getLoginURL script include. I can confirm I don't have the glide.authenticate.sso.redirect.idp property set to auto-redirect to the SSO Login.

Does anyone know how do I avoid getting redirected to the SSO Login and ensure the URL gets redirected to the Service Portal instead? I suspect the issue might be related to the session cache that gets set once I navigate to a Login page.

Regards,

Ayman

7 REPLIES 7

shetzel
Mega Guru

Hello Ayman,

 

Did you ever figure this out?  I've been trying to figure out the same, no luck yet.

 

Thanks in advance!

Scott

Hey, 

I ended up using a Global UI Script to redirect certain roles to the portal using the addLoadEvent. This will run everytime a user logs in. 

Don't recommend it but it is a very good fallback. See below for example 

https://community.servicenow.com/community?id=community_question&sys_id=4c8543eddbd8dbc01dcaf3231f9619d7

 

If you are implementing this, I highly recommend having the if loop with admin role that does nothing. If you comment it out and if there is something wrong with the script then you are locked out of your instance.

 

Thanks,
Ayman

Thank you for the reply..