Unable to achieve Standalone Virtual Agent Client Page Redirect to Login for Unauthenticated Users

Shubhanshi S
Tera Contributor

Hi All,

I have a requirement where I have to stop unauthenticated users from accessing Virtual agent client page.

The community article provided says that I either need to deactivate the public page or modify the OOTB SAML2_update1 script include by adding :

  • Navigate to System Definition > Script Includes
  • Find the "SAML2_update1" script include.
  • Find the following piece of code in the script field: 
    needNavFrame: function(requestURI, request)
  • Add the following if condition inside needNavFrame to remove the navpage from the virtual agent standalone client:

if (requestURI.indexOf("sn-va-web-client-app") >= 0){return false;}

Community Link For reference:

https://www.servicenow.com/community/virtual-agent-nlu-articles/redirect-unauthenticated-users-to-lo...

My queries here are:

1) How can I edit a script include thats Read Only.?

2) How do I achieve it if the Virtual agent looks like this?

ShubhanshiS_0-1695415852157.png

When I click on Live Agent Support & More...........>>>> It takes me to the below page:

 

ShubhanshiS_1-1695415915814.png

 

When I click again on Live Agent Support.......>> It takes me to below page:

 

ShubhanshiS_2-1695415993867.png

 

When I click on the 1st Service Desk Chat it should take me to the login page for unauthenticated users.

Please suggest me how to achieve this as I am struggling with this problem from quite sometime now.

IMPORTANT NOTE:

The Identity Provider Uses MultiSSO_SAML2_Update1 as its Single Sign On Script

 

Please let me know if anyone of you have ever worked on its solution.

 

Regards,

Shubhanshi Saxena

 

2 REPLIES 2

syed_but_not
Tera Expert

Hi Shubhanshi, I'm also running into this issue, were you able to find a solution?

Shubhanshi S
Tera Contributor

Hi @syed_but_not ,

Unfortunately I dint get any solution to this problem.

Regards,

Shubhanshi Saxena