SSO redirection for portable virtual agent web client
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2025 05:00 PM
Hi Experts,
I'm trying to load virtual agent web client into a sharepoint page. If already authenticated to SN instance then loading va web client in sharepoint page is fine. However, if user not already authenticated into SN instance, then need to trigger the sso authentication.
I followed official documentation and created script to do this. Once user opens the sharepoint page -> user redirected to sso authentication -> after successful athentication redirected to SN instance -> stayed in SN instance (Expectation is to redirect back to the url mentioned in sysparm_redirect_uri.
window.location.href = "https://<your-instance>service-now.com/"https://<your-instance>service-now.com/sn_va_web_client_login.do?sysparm_redirect_uri=’ + encodeURIComponent(<your-page>);
Note: I did make sure the redirect url configured in com.glide.cs.web_client_login_redirect_urls
My current issue is after successful authentication, user getting stuck SN instance and not being redirected to the url mentioned in sysparm_redirect_uri. I explored many related articles and couldn't get any direction on what might be the issue.
Any pointers to help with debugging is appreciated.
Thanks!