RocketChat / RocketChat/Rocket.Chat
Open chat on webview with logged user
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Hi,
I'm trying to open RocketChat on webview on my Android App (I know that there is a native app, but a want to use a webview at this moment because I will use LiveChat mode to - available only on web) with the user already logged in. The first step that I did was to call the method "/api/v1/login" to get the userId and authToken. After that, is not clear for me how does can I use these fields on RocketChat call.
I've tried to use Headers ("X-User-Id" and "X-Auth-Token") but does not work.
My target is simple: I just want make a call (as this call, for instance: "https://domain/token/authToken) and shows RocketChat with the current user logged in.
Is it possible to do this?
Thank you very much
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the /api/v1/login entry point and the Android WebView authentication flow described in the issue. Determine whether the returned userId and authToken can establish a logged-in web session, and document or implement the supported flow so the WebView opens Rocket.Chat as the current user.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- authentication, mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100