itpp-labs / access-addons

Odoo Addons for extended access control
https://itpp.dev
114 stars 260 forks source link

Bad Gateway Error access behind reverse proxy ou ingress #329

Closed aliencrash closed 3 years ago

aliencrash commented 3 years ago

I was testing the auth_quick module and we have the issue when the database is behind a reverse proxy or ingress.

The issue is rised when the redirect call /auth_quick/check-token.

curl -vvvv http://address/auth_quick/check-token?token=3299b5a1-55ca-4593-9250-da87cf1f28e5

After doing to testing using curl, because at first I was thinking that maybe it wasn't able to find the route, but what I noticed is i that f you call the method without the token parameter, Odoo will give an error telling that is missing a positional value, and this is correct. But when the token and it's value is added, it's like the route doesn't exists.

Locally, in the same machine, it works as supposed to be.

aliencrash commented 3 years ago

Issue resolved. The main problem was related with Odoo docker image that is using werkzeug=0.14.1 or older instead of a werkzeug=0.16.1. I customized the image and this is working well.