-
-
Notifications
You must be signed in to change notification settings - Fork 964
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
feat: use uri-reference for ui_url etc. to allow relative urls #617
Conversation
|
This should work as long as the proxy/load balancer preserve the |
Have you done that already? |
Not yet. Thanks for reminding me. I ended up writing a unit test for this, but haven't yet tested that bit manually. This is a bit of a last-minute addition to this PR. I will try to do some manual testing this afternoon. |
Tested with this patch locally:
|
Could you please rebase onto master so that the tests pass (hopefully 😄 )? |
a42cd2b
to
555d7b1
Compare
Sorry, e2e test fail because of something else. We're working on it. |
Currently ui_url for each of the flows is a
uri
. This means that we have to generate a new config file for each developer's cluster, and another one for production as they are each served from a different domain.We are hosting kratos and our webserver behind an nginx proxy, so specifying a relative uri like
/auth/login
would solve this problem for us..How do people feel about allowing relative urls like
/auth/login
to be specified as the ui_urls? If nobody can think of a security reason against this, I will happily continue with this PR, as it would save us a bunch of hassle generating config files.whitelisted_return_urls
works as expected.Related issue
Proposed changes
Checklist
vulnerability. If this pull request addresses a security. vulnerability, I
confirm that I got green light (please contact
security@ory.sh) from the maintainers to push
the changes.
works.
Further comments