Closed neha1deshmukh closed 7 years ago
Hey @neha1deshmukh
I think you should try iframe integration.
https://rocket.chat/docs/developer-guides/iframe-integration
I have the same problem and i tried to do that :
document.querySelector('iframe').contentWindow.postMessage({ externalCommand: 'login-with-token', token : '<?php echo $me->data->authToken;?>', }, '*');
Has there been any resolution to this? I'm currently using a e107 cms and i'd like to get this working.
We aim to keep our Github issues for bugs and feature requests. This does not fit that criteria. Please see our guidelines for support. If you feel like we are closing in error, please re-open and add additional details about the bug or feature request.
Hey hi,
Could you please elaborate little bit more with short example how i can fix below issue
Goal: using Rocket.Chat inside my website inside an iframe. Issue: how to login a user simultaneously on my website and in iframed rocket.chat, without having them to log-in two times ( one in my website and one in the iframe )?
What I want to accomplish is: a user login in in my website and in a transparent way it gets logged in inside the iframe too.
I have used "https://xxx.xxx.xx/api/v1/login" and getting the success in response stdClass Object ( [status] => success [data] => stdClass Object ( [authToken] => BPT8Gt4k2fbUZjtQDfENtKawa41ZwwwmbV6KH-_kL8akvT [userId] => dSZ38wjgPD33irls4L6Y ) )
how should i use this response further to achieve above goal.
An i am not able to locate client/routes/router.coffee also :(