cloudfoundry / uaa

CloudFoundry User Account and Authentication (UAA) Server
Apache License 2.0
1.59k stars 828 forks source link

Issue in Redirection #3099

Open sidrazia opened 1 month ago

sidrazia commented 1 month ago

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.

fhanik commented 4 weeks ago

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

sidrazia commented 4 weeks ago

75.7.0

hsinn0 commented 3 weeks ago

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.

sidrazia commented 3 weeks ago

@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.

fhanik commented 3 weeks ago

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.

sidrazia commented 2 weeks ago

@fhanik did you get chance to look into this?

sidrazia commented 2 weeks ago

Mistakenly closed this. Reopening it now.

fhanik commented 2 weeks ago

@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
sidrazia commented 2 weeks ago

@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.