uaa icon indicating copy to clipboard operation
uaa copied to clipboard

Issue in Redirection

Open sidrazia opened this issue 1 year ago • 11 comments

What version of UAA are you running?

77.17.0

How are you deploying the UAA?

I am deploying the UAA locally only using gradlew ./gradlew run

with the default details provided on uaa: https://github.com/cloudfoundry/uaa/?tab=readme-ov-file#connecting-uaa-to-local-ldap-server

What did you do?

Accessing UAA with localhost as well with IP address

What did you expect to see? What goal are you trying to achieve with the UAA?

The redirect page should appear when accessing UAA with IP address. Its redirecting fine with accessing with localhost but when accessing it with IP address its routing back to login screen.. Screenshot when accessing with localhost is attached. Screenshot 2024-10-28 175003

What did you see instead?

Login page again

What I have tried:

Adding zones: zones: internal: hostnames: - 192.168.x.x

Setting require https false: require_https: false

What issue it causes at my end:

The issue arise when I took an update from github almost after 3+ years. The UI we are using was perfectly working with the UAA we had earlier. Soon after I upgraded, the redirection stopped working with all the configurations we were using earlier. Although we have reverted back the deployment but we still need to upgrade it. Any help on this would be highly appreciated.

sidrazia avatar Oct 28 '24 13:10 sidrazia

What version did you revert back to? That will help track this down to a specific change.

fhanik avatar Oct 31 '24 15:10 fhanik

75.7.0

sidrazia avatar Oct 31 '24 16:10 sidrazia

75.7.0

That is not actually a version that we are supporting. I suggest you try to look into log files, etc. to get more info if you have not done so yet.

hsinn0 avatar Nov 05 '24 22:11 hsinn0

@hsinn0 75.7.0 is the old version I reverted back to and its working fine. The problem is with latest version 77.17.0 and there is no exception/error coming in logs.

sidrazia avatar Nov 06 '24 06:11 sidrazia

I can confirm that in the current development branch, user marissa can log in, but gets redirected back to the log in page on the out of the box runtime ./gradlew run. I will look closer into this to see why that is.

fhanik avatar Nov 06 '24 14:11 fhanik

@fhanik did you get chance to look into this?

sidrazia avatar Nov 12 '24 10:11 sidrazia

Mistakenly closed this. Reopening it now.

sidrazia avatar Nov 12 '24 12:11 sidrazia

@sidrazia - this appears to be working correctly on the develop branch as well as the v77.9.0

Given that it works on the latest tag and dev environment, I'm not sure it's worthwhile to go further in troubleshooting this.

image

fhanik avatar Nov 14 '24 18:11 fhanik

@fhanik Thank you for looking into this. Could you please check the initial description where I mentioned that the page is routing to "Where to?" when I am using localhost (screenshot attached as well). Whereas, when I am trying to login using IP, it redirecting to "login" page again. Can you try running it with IP? At my end, IP is also configured in uaa.yml for login and issuer uri both. Other things are also mentioned in "What I have tried:" part.

sidrazia avatar Nov 15 '24 07:11 sidrazia

Anyone got chance to look into this?

sidrazia avatar Dec 02 '24 08:12 sidrazia

I'm not sure it's worthwhile to go further in troubleshooting this.

https://github.com/cloudfoundry/uaa/issues/3099#issuecomment-2477098728

fhanik avatar Dec 19 '24 16:12 fhanik