Oauth2-proxy: Redirect URL missing when the skip-provider-button option is used

Created on 29 Jan 2019  路  7Comments  路  Source: oauth2-proxy/oauth2-proxy

When I use -skip-provider-button=true it always gets redirected after login to /
When I don't ( -skip-provider-button=false) it gets redirected after login to the url beforehand.

Expected Behavior

preserve URL after the login regardless of the value of -skip-provider-button option.

Steps to Reproduce (for bugs)

e.g. I point my browser at https://my-site/some/sub/path
when I have -skip-provider-button, it will end up pointing at https://my-site/
when I don't it will end up pointing at https://my-site/some/sub/path

Your Environment

  • Version used:
    3.0.0

Similar issues in bitly's archived repo:
https://github.com/bitly/oauth2_proxy/issues/327
https://github.com/bitly/oauth2_proxy/issues/586

Stale bug good first issue help wanted

Most helpful comment

It appears that this is still not fixed in 3.2.0 or master. Has someone opened a new PR to replace bitly/oauth2_proxy#395 and fix this, or is there another fix pending, or something else?

All 7 comments

I believe this may have been fixed in #24 which was merged earlier today, would you be able to test the current master build with the flag set to true?

Hm, I have just given quay.io/pusher/oauth2_proxy latest and master tags a try but noticed the same thing. URL is not preserved when -skip-provider-button=true is set.

In which case this will need further investigation

Hello, migrating from 3.0 to 3.1 fix this issue for me. I have removed option "-skip-provider-button", since original URL was not respected.

But this is now fixed in last version. Looking at code, it's the expected fix : take redirect from URL instead of unpopulated "rd" parameter (since "rd" is populated by skipped page)

Thanks,

@christidis : On quay.io I see that 3.1.0 was updated 5 days ago. Maybe the latest was not the 3.1.0 when you have done your test ?

It appears that this is still not fixed in 3.2.0 or master. Has someone opened a new PR to replace bitly/oauth2_proxy#395 and fix this, or is there another fix pending, or something else?

This issue has been inactive for 60 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 7 days, the issue will be marked closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sneko picture sneko  路  3Comments

dennisbrouwer91 picture dennisbrouwer91  路  7Comments

desaintmartin picture desaintmartin  路  5Comments

apeschel picture apeschel  路  5Comments

NickMeves picture NickMeves  路  6Comments