Error in OAuth Server: Failed to complete OAuth handshake with Google

Description

Receive an internal error when I try to log in after enabling OAUTH2 in Rocket Chat version 3.0. that uses traefik, mongodb and docker swarm.

This with both Google and Linkedin.

Recognizes accounts but does not log in.

The error follows:

Error in OAuth Server: Failed to complete OAuth handshake with Google. failed [400] {“error”: “redirect_uri_mismatch”, “error_description”: “Bad Request”}

Server Setup Information

  • Version of Rocket.Chat Server: 3.0.7
  • Operating System: Linux
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: mongob
  • NodeJS Version: v12.14.0
  • MongoDB Version: 4.0.17
  • Proxy: traefik
  • Firewalls involved: pfsense

Any additional Information