original port should not be ignored (fusionauth-issues/issues/2250) #9
+37
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
original port should not be ignored (FusionAuth/fusionauth-issues#2250)
Steps to reproduce
Start docker image with port mapping 2222:9011
--- docker-compose.yml ---
services:
fusionauth:
image: fusionauth/fusionauth-app:1.45.2
ports:
- 2222:9011
--- docker-compose.yml ---
Configure "Google Identity Provider" (possibly any other provider)
Goto URL http://loalhost:2222/admin
Click on "Google Identity Provider" button to log in
Login fails because of wrong redirect_uri:
redirect_uri=http://localhost:9011/oauth2/callback
Expected redirect_uri:
redirect_uri=http://localhost:2222/oauth2/callback
Change in PR
Change is tested with version 1.45.2 by replacing just one java class (HTTPRequest) in docker image using the following technique:
Dockerfile