RocketChat / RocketChat/Rocket.Chat

Sending messages from scripts using authentication tokens/OAuth

Open
#6,873 0 comments 0 reactions 1 assignee View on GitHub

@graywolf336 is already working on this.

Since May 4, 2017.

feat: integration / plugin
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Rocket.Chat Version: 0.54.2
Running Instances: 2
DB Replicaset OpLog: Enabled
Node Version: v4.7.3

I want to authenticate a user with an authentication token (such as OAuth) and then send messages on behalf of that user with a script.

It is my understanding that the API exposed to an OAuth authenticated user is not the same as the ReST API and isn't capable of sending messages. We've been trying it with integrations and scripting an interface for sending messages via rocket cat, but it's not sufficient for communicating in direct messages.

Are there tokens other than OAuth that do allow this with Rocket Chat? We're not necessarily married to OAuth if that's the issue.

It's been something we've been looking forward to using for a while and it will really help with our cross-site communication efforts.

Thanks!
Ben

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.