Authentication in Live Chat - Single Sign-On

UseResponse allows to transfer user's data to live chat widget once your client is logged in.

You can pass important visitor's information from your site (names, emails, addresses etc.) to create a context for chat conversations. If your chat operator has a set of information on specific customer at the beginning of a conversation, each chat can be handled faster and more efficiently.

To add ability to authenticate users in our chat, please perform the following instructions:

  1. On your server side you need to generate dynamically SHA256 hash of the string that includes only user's email and security token. Example:
    To get security token, please enable OneLogin method in Administration » Login Plus » Single Sign-On and grab Security Key from Integration Details. If you don't want to use Single Sign-On login, please disable it.
    Make sure you can pass generated hash and user's details on every page of your site where you embeded live chat widget.
  2. Please paste the following script on every page of your website where chat code is located. This script should deliver hash of user's email and security key along with any user's data you want to send to UseResponse instance.
    <script type="text/javascript">
            window.onload = function () {
                    token: 'ee175a021d3649359651b94622348515958ed17a54ef9d93625397cc5e68a966',                
                    userEmail : '',
                    userName  : 'Brian C.',
                    properties: {
                        property_170: '',
                        property_172: '188'


property_172 is user's field id that can be taken from Administration » Fields & Properties » Users or if you want to transfer other custom information to the additional chat fields.

188 is value of a custom field.

To find out value of a custom field, please use Inspector tool in your browser.

When you finish the set up, you will be able to recognize your customers, grab their data from your database and show that information in your chat window in UseResponse.

Clear User Session

You can clear user session every time your client or potential customer closes page in the browser or logs out the application where UseResponse chat widget is located.

You need to call JavaScript function UR.clearChatStorage() on required events to clear user session in chat.

Is article helpful?