Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot login to Live Chat with existing user #8978

Closed
alexloiko opened this issue Nov 29, 2017 · 5 comments
Closed

Cannot login to Live Chat with existing user #8978

alexloiko opened this issue Nov 29, 2017 · 5 comments

Comments

@alexloiko
Copy link

Cannot login to Live Chat with existing user

Description:

As a 3rd-party site owner I want to login RocketChat user to integrated Live Chat pop-up.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.59.4
  • Operating System: Linux
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Disabled
  • Node Version: v4.8.4

Steps to Reproduce:

For now live chat window became logged-in if there exists logged-in RocketChat portal in some other tab (it means Meteor local storage properties are set and available for Live Chat)

Its valuable to have ability to login with some approach (cookie token, js method call, local storage or some other way to integrate with livechat) and track user chat with helpdesk knowing that user is already registered one.

For now we try to login calling /api/v1/login and putting token and userid to local storage (for us "Meteor.loginToken:/:/chat" and "Meteor.userId:/:/chat" corresponding)
But live chat removes tokens after page reload (even if we set "Meteor.loginTokenExpires:/:/chat" by hands)

Expected behavior:

Somehow login existing RocketChat user to Live Chat to have ability to define registered site user as RocketChat user.

Actual behavior:

There is no documented ability to login existing user to Live Chat

@sampaiodiego
Copy link
Member

since #9048 was merged, livechat users/visitors are no longer rocket.chat regular users, this means they will not be logged in if they open the main chat. is that something what you want? or do you want to call some API on livechat widget to "pre-register" the visitor if you already knows who he is?

@alexloiko
Copy link
Author

@sampaiodiego Thank you for the answer.
For now we are looking for functionality to track livechat users as regular ones (to keep their history, to know who is writing to support) but as I understand it was decided to separate livechat and regular ones :(
One of solutions we found is to put main chat window to iframe, same sized as livechat. But in such a way we lose livechat functionality (queues, agents, departments, offline hours, etc)
We want to use rocket.chat for internal portal, where authorized users are able to write to support (also authorized users).
How to do that with rocket.chat?

@sampaiodiego
Copy link
Member

@tryelse you can already look at past livechats of a visitor on a tab panel on the right.

if you have a way to identify a visitor from outside rocket.chat you can use then custom fields .. custom fields information will be available on the "info panel" of a livechat session.

I guess this covers your needs.

@misli
Copy link

misli commented Jan 25, 2020

since #9048 was merged, livechat users/visitors are no longer rocket.chat regular users, this means they will not be logged in if they open the main chat. is that something what you want? or do you want to call some API on livechat widget to "pre-register" the visitor if you already knows who he is?

And how can I "pre-register" the already known visitor?

@sampaiodiego
Copy link
Member

please look at Register visitor section: https://rocket.chat/docs/developer-guides/livechat-api/#register-visitor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants