-
Notifications
You must be signed in to change notification settings - Fork 1.2k
sign_in template form input redirect value is not updating as expected. #302
Conversation
@sreeharikmarar can you include steps to reproduce the behaviour you are seeing, and logs that show the original request (to |
@jehiah Think about a use case where nginx proxy pass the request from
First request
Second request
Third request after authentication since the
The modified script will allow application to encode the state in the fragment. |
@sreeharikmarar so your request was for You should either a) pass |
@jehiah Sorry, The request was for |
updating the conf.
Form element |
@sreeharikmarar the log you included shows the following line as the HTTP 403 response that you initiated sign in from. If you start login from
Can You include updated logs showing a HTTP 403 (aka sign in page) returned from oauth2_proxy for Sorry for the back and forth, but i don't have clear logs that show what you have described yet. |
@jehiah Let me try to explain the whole flow again. Suppose the use case is like this, We have When we request for I agree to your previous comment that when you start sign-in from I was trying to explain this use case that |
@jehiah any update? |
@sreeharikmarar I'm going to close this issue.
|
The use case for this change is, suppose oauth2_proxy is running on
https://companydomain/dashboard
, after successful authentication oauth2_proxy is not redirecting back to/dashboard
where the request has started.The reason for this behavior is
redirect-url
config option is not updating sign_in template"{{.Redirect}}"
value as expected because of this check.pull request for this fix had already raised but seems like its not merged yet.
Other option is to update the hidden field value of sign_in template input form with
window.location.pathname
so that after authentication, oauth2_proxy returns the request back to the same redirect url which mentioned in the form input hidden fieldrd
.