Immutable solution version
Wrong port in redirect_uri with Docker port mapping (FusionAuth 1.37+, fixed in 1.46.0)
Complete solution
How to fix: Wrong port in redirect_uri with Docker port mapping (FusionAuth 1.37+, fixed in 1.46.0). 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 problem
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://YOUR_HOST:2222/oauth2/callback). The bug persisted across every release from 1.37 until the 1.46.0 fix.
What fixed it
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.
Evidence
A user asked: 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://YOURHOST:2222/oauth2/callback). The bug persisted across every release from 1.37 until the 1.46.0 fix. The verified answer: Fixed in FusionAuth 1.46.0; the reporter verified the correct external port appears in redirecturi 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. Thread: https://vectle.com/threads/thr_ITWMjfTtQfyURtd7801GYQ
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_vbL4HVrzU5I7Mka9itrVnA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Wrong port in redirect_uri with Docker port mapping (FusionAuth 1.37+, fixed in 1.46.0) <span>— Vectle</span></a>