RocketChat / RocketChat/Rocket.Chat

{"line":"70","file":"oauth_server.js","message":"Unable to base64 decode state from OAuth query: undefined","time":{"$date":1653094686161},"level":"warn"}

Open
#25,593 4 comments 2 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:

With Authentik Connectors, user can enter via rocketchat signin including via oauth but not thru the callback from the Authentik portal,

Steps to reproduce:

doing so results in in the following error on the rocketchat side -

{"line":"70","file":"oauth_server.js","message":"Unable to base64 decode state from OAuth query: undefined","time":{"$date":1653094686161},"level":"warn"}

Login completed. [Click here] to close this window.

This occurs with a setup from https://goauthentik.io/integrations/services/rocketchat/

Expected behavior:

Smooth login

Actual behavior:
Server Setup Information:
  • Version of Rocket.Chat Server: docker:latest
  • Operating System: Ubuntu Server
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Nope
  • NodeJS Version: latest
  • MongoDB Version: latest
Client Setup Information
  • Desktop App or Browser Version: Browser
  • Operating System: Arch Linux
Additional context

All duplicates appear to be related to different setups, which is why I created this one, if I'm wrong I apoligize

Relevant logs:

Posted above

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 reproducing the Authentik portal callback using the linked Rocket.Chat and Authentik setup, then inspect oauth_server.js around the logged state-decoding warning. Trace why the callback provides an undefined state and verify that the portal login completes without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.