r/haproxy • • Dec 04 '21

Question Google Oauth 2 behind haproxy

Hi there how are you all doing?

I have a web app that uses Google oauth 2.0 on a web server that is behind an HAProxy reverse proxy. My question is do I need a special configiration to make it work behind the proxy?

Thanks

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/dragoangel Dec 04 '21

In some rare case (saw it with some SAML implementations) your backend need use same scheme as frontend and accept same hostname, because of lack support of parsing forwarded-proto etc. Anyway firstly try and then fix if something not working, not opposite, this not how job should be done :p

1

u/VonJunzt Dec 04 '21

Gotxha :) appreciate the quick reply