RocketChat / RocketChat/Rocket.Chat
Internal Server Error when Logging in with Custom OAuth Token
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:
- Create a custom OAuth provider in Rocket.Chat.
- Attempt to log in using the /api/v1/login endpoint with a valid OAuth token.
- Observe that the response is an Internal Server Error.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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