vouch-proxy icon indicating copy to clipboard operation
vouch-proxy copied to clipboard

After successful login, &lasso-failcount=&X-Vouch-Token=&error=# added to URL

Open alexisuk24 opened this issue 6 years ago • 6 comments

I am using Google Auth

Versions after 0.12.2 (e.g. 0.12.3 and above) are adding the following string to the URL post successful login:

&lasso-failcount=&X-Vouch-Token=&error=#

This is causing some of my websites to return 404 not found or 500 errors.

Version 0.12.2 and prior does not add these tokens to the querystring.

Is this a bug? If this is a feature, how can I suppress this behavior?

alexisuk24 avatar May 24 '20 17:05 alexisuk24

@alexisuk24 Please update your Nginx config to match the README's 302 redirect. The name of the project and associated variables were changed in v0.4.0. Support for the name lasso and associated settings is deprecated.

You're seeing the current behavior because of this change. That could be improved upon but I'm reluctant to call this a bug.

https://github.com/vouch/vouch-proxy/tree/v0.4.0#you-should-change-your-config-to-the-new-name-as-of-v040

bnfinet avatar May 26 '20 16:05 bnfinet

Hi @bnfinet - I have always used vouch: in my config.yml and am using Docker Hub container voucher/vouch-proxy so do not have visibility into the nginx configuration. Is this container maintained by this project or a 3rd party? I'm open to further investigation and understand the reluctance to call this a bug.

alexisuk24 avatar May 27 '20 01:05 alexisuk24

Also, when comparing 0.12.2 and 0.12.3, it appears that replacing urlparam := r.URL.Query().Get("url") with urlparam := r.URL.RawQuery urlparam = strings.Split(urlparam, "&vouch-failcount")[0] urlparam = strings.TrimPrefix(urlparam, "url=") might have something to do with it?

https://github.com/vouch/vouch-proxy/compare/v0.12.2...v0.12.3

alexisuk24 avatar May 27 '20 02:05 alexisuk24

Yes you are right. There was a change and that is why you are experiencing this error/bug. If you change your nginx config I expect you will not experience the error/bug.

On Tue, May 26, 2020, 7:10 PM alexisuk24 [email protected] wrote:

Also, when comparing 0.12.2 and 0.12.3, it appears that replacing urlparam := r.URL.Query().Get("url") with urlparam := r.URL.RawQuery urlparam = strings.Split(urlparam, "&vouch-failcount")[0] urlparam = strings.TrimPrefix(urlparam, "url=") might have something to do with it?

v0.12.2...v0.12.3 https://github.com/vouch/vouch-proxy/compare/v0.12.2...v0.12.3

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vouch/vouch-proxy/issues/271#issuecomment-634383543, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUV27KCUSZUVZZHJ6EZZ3RTRZCRANCNFSM4NI7I6QA .

bnfinet avatar May 27 '20 04:05 bnfinet

@alexisuk24 any progress? What happens when you update your nginx config?

bnfinet avatar Jun 01 '20 21:06 bnfinet

Hi @bnfinet, yes I found the reference to lasso and replaced it with vouch, I no longer see the additional querystring entries post authentication. Thanks.

alexisuk24 avatar Jun 02 '20 15:06 alexisuk24