RocketChat / RocketChat/Rocket.Chat

Internal Server Error when Logging in with Custom OAuth Token

Open
#35,649 1 comment 1 reaction 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

  • Operating System & Version: Ubuntu 22.04 (64-bit)

  • Browser Type & Version: Chrome 133.0.6943.126 (Official Build) (64-bit)

  • Rocket.Chat Version: 7.5.0

  • Expected Behavior:
    When making a request to /api/v1/login with a custom OAuth token, the response should either be a successful login or an Unauthorized response if the token is invalid.

  • Actual Behavior:
    Instead of the expected response, the API returns an Internal Server Error.

Steps to Reproduce:

  1. Create a custom OAuth provider in Rocket.Chat.
  2. Attempt to log in using the /api/v1/login endpoint with a valid OAuth token.
  3. Observe that the response is an Internal Server Error.

Image

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

Start by tracing the /api/v1/login entry point and the custom OAuth provider flow in Rocket.Chat. Reproduce the request with a valid and invalid custom OAuth token, then identify why either case produces an Internal Server Error. Done means valid tokens log in successfully and invalid tokens return Unauthorized.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.