Redirect to Service Portal from OKTA SSO login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 01:44 AM
We have implemented OKTA SSO integration using Multi Provider SSO plugin. Now the requirement is to implement the flow as
1) Once user logged in from OKTA SSO, should be redirect to Service Portal
2) Once user logged in from ServiceNow login page using local login, should be redirect to Normal ITIL view or home page.
- Labels:
-
Integrations
- 2,609 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2018 05:01 AM
Hi,
This should help.
https://community.servicenow.com/community?id=community_blog&sys_id=cbcda2e9dbd0dbc01dcaf3231f961949
Please mark it correct/helpful based on the response.
Thanks
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2018 07:31 AM
I'm not the OP but I believe I am having a similar issue.
- Non-roled Users who login to our instance via okta are directed to the service portal and that is working great! However, if they close the tab and go to log back in via okta, they are directed to the platform, not the service portal. They are then forced to either log out of ServiceNow or add /sp to the end of the URL.
I've tried following the link you provided and it is still not working. I changed the value in glide.entry.page.script from new CMSEntryPage().getEntryPage() to new SPEntryPage().getLoginURL() . Created glide.entry.first.page.script with a value of new SPEntryPage().getFirstPageURL() and still no luck. Not sure where to go from here.
Any Ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2019 01:22 PM
Hi were you able to fix this issue?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2020 07:19 AM
We have tried the glide script as well with no luck.
Even if a user (roled or non-rolled) logs into Okta but is directed to SN or Service Portal later in the day (outside of that chicklet), they are asked to log in again via the Service Portal landing page.
Also, if they are clicking on say a knowledge article link, they are not taken to the article after logging in. They are brought to the Service Portal homepage.