Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Sending messages from scripts using authentication tokens/OAuth

Open ben-andersen opened this issue 9 years ago • 0 comments

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

ben-andersen avatar May 04 '17 06:05 ben-andersen