{"line":"70","file":"oauth_server.js","message":"Unable to base64 decode state from OAuth query: undefined","time":{"$date":1653094686161},"level":"warn"}
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
Pressing close window results in # being appended to end of URL as well
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 ?
@JackPala did you manage to make it work ?
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.