RocketChat / RocketChat/Rocket.Chat

[API] Ability to list and revoke user generated api tokens in admin console

Open
#31,646 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Hello, i was trying to find who uses a certain token and found out that there is no straightforward way to do it rather then looking it up directly inside mongodb. I think such feature is essential for proper usage.

Expected behavior:

Page inside workspace configuration that shows

  1. who and when issued token
  2. 2fa status
  3. ability to revoke it
  4. last time it was used
Actual behavior:
Server Setup Information:
  • Version of Rocket.Chat Server: 6.4.8
  • Operating System: linux
  • Deployment Method:
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enabled
  • NodeJS Version: v14.21.3
  • MongoDB Version: 5

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.

Research direction

No source file or test is named in the issue. Start by tracing the existing user-generated token records in MongoDB and the workspace configuration admin console, then identify the relevant API entry points. Done means administrators can see token ownership, issue time, 2FA status, and last use, and can revoke tokens.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, typescript
Domain
api, authentication, authorization, backend, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.