Users unable to login with Discourse Connect

AI-generated summary

Users unable to login with Discourse Connect. pawan reported a TimeOut error when trying to log in after restarting the Docker-based server. Despite changing the secret key and disabling “Must Approve User” setting, the issue persists. rishabh and pfaffman suggested checking logs and troubleshooting the SSO connection.

pawan found a Verbose SSO log error indicating a “Nonce is incorrect” issue, possibly caused by embedding Discourse inside a web application using iframe. Liubomyr_B reported the same issue with Discourse SSO in iframe. pfaffman shared a related meta discussion link, but no solution has been found yet.

It is a Docker-based set up. SSO login used to work seamlessly until I restarted the server. Now, every time user tries to log in, the user is shown this TimeOut Error.

What I have tried so far -

  • Changed the secret key.
  • Disabled “Must Approve User” setting.

Nothing worked so far. Any inputs & pointers would be appreciated.

Thank You!

Have you tried looking for more error messages at discourse.example.com/logs? :mag:

It looks like Discourse cannot connect to your SSO server. Hard to guess why. Do stuff like reboot the machine, check that Docker is up to date, try to telnet from inside the container to your SSO server, see if your sso server is online, has sso server got some new firewall keeping you from connecting. Stuff like that.

I can see why the SSO login is failing.

Verbose SSO log: Nonce is incorrect, was generated in a different browser session, or has expired add_groups: admin: moderator: avatar_force_update: avatar_url: bio: card_background_url: email

So, we have embedded the discourse inside our web application using iframe. I don’t see why this could be a problem since we are using this set up for the last 18 months.

What do you think could be the issue, because nothing has changed?

Hi. I have the same issue when using discourse SSO in iframe. Did anyone solve this issue?