Community Alums
Not applicable

Hi All,

The web client and Embedded client is by default accessible publicly (even for unauthenticated users) even though the topics are not made public.

This article focuses on how to make this web client interface non-public such that it redirects users to login before proceeding further with virtual agent chat.

Firstly, To ensure unauthenticated users to get redirected to login page when this standalone URL is accessed.

  • The page to focus on is $sn-va-web-client-app.
  • Under Application Navigator, navigate to System Definition > Public Pages. (If you don't see this module, please check Additional Information below)
  • Look for the record under Page field/column with the above name.
  • You will notice that Active field is set to true.
  • Set it to false.

Note: If the page doesn't exist create a new one. Ex. sn_va_web_client_app_embed is not present OOB

Secondly, you have to

  • 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;
}

Note: For embed client add the following line of code

if (requestURI.indexOf("sn_va_web_client_app_embed") >= 0)
{

return false;
}

Please mark this article helpful if it helped you.

Cheers,

Hardit Singh

Comments
ankit_sharma487
Kilo Guru

thanks @Hardit Singh , helpful 🙂

siva_
Giga Guru

i have found the same as a KB article in Hi. Not sure if they have considered this to be shared there. Just have a couple of questions  i would appreciate if you could answer these

 

1) Whats the difference between web app and embed app ?

2) I see in the docs to embed VA into an external page, the prerequisite is to have public pages enabled. So would modifying these script includes with this SSO SAML Script bypasses to have the custom URL requirement???

 

i see @Victor Chen  creating an article which talks about security and the benefits of having a custom URL instead of the direct one. 

Also on HI i see this issue has been fixed in Patch 4 Quebec  , so i think i would not need any of the script include modification apart from disabling the public page. 

 

 

Version history
Last update:
‎06-24-2020 10:39 AM
Updated by:
Community Alums