Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in Redirection #3099

Open
sidrazia opened this issue Oct 28, 2024 · 9 comments
Open

Issue in Redirection #3099

sidrazia opened this issue Oct 28, 2024 · 9 comments

Comments

@sidrazia
Copy link

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
Copy link
Contributor

fhanik commented Oct 31, 2024

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

@sidrazia
Copy link
Author

75.7.0

@hsinn0
Copy link
Contributor

hsinn0 commented Nov 5, 2024

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
Copy link
Author

sidrazia commented Nov 6, 2024

@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
Copy link
Contributor

fhanik commented Nov 6, 2024

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
Copy link
Author

@fhanik did you get chance to look into this?

@sidrazia
Copy link
Author

Mistakenly closed this. Reopening it now.

@fhanik
Copy link
Contributor

fhanik commented Nov 14, 2024

@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
Copy link
Author

sidrazia commented Nov 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants