Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

sign_in template form input redirect-url value is not updating as expected #303

Closed
sreeharikmarar opened this issue Aug 30, 2016 · 0 comments

Comments

@sreeharikmarar
Copy link

sreeharikmarar commented Aug 30, 2016

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 /dashboardwhere 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.

pull request for sign_in template script changes

@jehiah jehiah closed this as completed Aug 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants