Sign-in works locally, but in production the OAuth provider rejects every authorization request with redirect_uri_mismatch. The application sends http://app.example.com/oauth/callback, while the provider has https://app.example.com/oauth/callback registered.
The public site is served over HTTPS. In production, TLS terminates at the edge proxy in front of the application (see deployment.yaml, which also lists the trusted proxy networks). production.log contains one of the failing requests.
The OAuth code itself should not grow deployment-specific conditionals.