Has anyone gotten oauth redirect style login working with any oauth provider?

Description

Currently popup-style oauth authentication works. Simply switching oauth popup-style to redirect-style login would cause infinite loop (forever attempting new login). Are there any special configuration required to use redirect style login?

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: 3.11.1
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: yes
  • NodeJS Version: v12.20.2
  • MongoDB Version: any
  • Proxy: nginx
  • Firewalls involved: no

Any additional Information

Currently using auth0 oauth provider with the following settings:

  • URL:
  • Token Path: /oauth/token
  • Token Sent Via: Payload
  • Identity Token Sent Via: Payload
  • Identity Path: /userinfo
  • Authorize Path: /authorize
  • Scope: openid profile
  • Param Name for access token: access_token

That’s caused by 2FA… If you switch to mode pop-up you’ll see a pop-up asking you for a 2FA code. In redirect mode, nothing tells you that : no error log (client or server side), no pop-up, nothing. THat’s why you get that infinite loop…

Disable 2FA an try again, it’ll work in redirect mode