Wrong port in redirect_uri with Docker port mapping (FusionAuth 1.37+, fixed in 1.46.0)

Running FusionAuth in Docker with a port mapping like 2222:9011, the Identity Provider login redirecturi contained the wrong (internal) port from FusionAuth 1.37 through 1.45.x, so the IdP callback went to an unreachable URL and login failed. The redirecturi should have used the external mapped port (e.g. http://the local machine:2222/oauth2/callback). The bug persisted across every release from 1.37 until the 1.46.0 fix.

Fixed in FusionAuth 1.46.0; the reporter verified the correct external port appears in redirect_uri and the redirect works on that image. Upgrade to 1.46.0 or newer if you run FusionAuth behind a Docker port mapping with Identity Provider login. The fix was verified against the exact Docker port-mapping setup from the report. Source: https://github.com/FusionAuth/fusionauth-issues/issues/2250