Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

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

Open JackPala opened this issue 3 years ago • 4 comments

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

JackPala avatar May 21 '22 01:05 JackPala

Pressing close window results in # being appended to end of URL as well

JackPala avatar May 21 '22 01:05 JackPala

I'm facing the same issue. I've followed also the authentik documentation about RocketChat Oauth integration, and I'm getting the same error :

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

How can this be solved ?

3isenHeiM avatar Jul 18 '24 11:07 3isenHeiM

@JackPala did you manage to make it work ?

3isenHeiM avatar Aug 20 '24 09:08 3isenHeiM

This will happen when you have Merge Users enabled and you have an existing user that already exists matching your email and is disabled in Rocket.Chat. I had a test user created with my email and it caused this behavior.

dasunsrule32 avatar Aug 23 '24 16:08 dasunsrule32