Skip to content

Instantly share code, notes, and snippets.

@bhardwajaditya
Last active August 24, 2019 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhardwajaditya/03eedfcea476b7fe21efba95989bfdf4 to your computer and use it in GitHub Desktop.
Save bhardwajaditya/03eedfcea476b7fe21efba95989bfdf4 to your computer and use it in GitHub Desktop.

Service Accounts in Rocket.Chat

Student:

Mentors:

Primary Objective

Adding the service accounts to the exisitng Rocket.Chat application. This would focus on being very modular and should work well with the existing code base.

A brief description of the solution

The project aims to add the functionality of Service Accounts in the existing Rocket.Chat application. Service accounts will be an upgrade to regular user accounts, they will have a well-defined purpose. Regular users can subscribe to this account to get information regarding the context mentioned in the description of the Service account.

References (PRs)

They include required demo videos also.

  • Exclusive settings for service accounts
  • Added dashboard where admin can approve new service accounts.
  • Creation UI for service account.
  • New accounts are created without using email addresses.
  • Callback added to add broadcast room for service account
  • Meteor login with token method used to switch between service accounts.
  • A new directory tab for service accounts was added.
  • Clicking on the service account entry opens a chat room with service account and user is subscribed to it
  • Service accounts listed as subscriptions in sidenav
  • Notifications for new messages to service account owners.
  • Broadcast message feature for service accounts.
  • Message sent to this room are sent to all the subscribers.
  • Configurable approval process and settings for service accounts.
  • Implementation bugs fixed
  • Limit number of broadcast messages a service account is allowed to send in a fixed time interval.
  • Tests for new server methods
  • Change done to make UI more convincing
  • Service account ownership can be transfered.
  • Settings and UI created for the same

Misc:

Repo: bhardwajaditya/Rocket.Chat

Notable Features/Improvements

Final PR

To Do

  • Add the ability to add multiple owners
  • Add bot support for service accounts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment