Closed benoit-rolandeau-act closed 3 months ago
If it's possible, can you explain how you get the scheme information transferred to Google? (how do you choose between http and https)
Ok, we find the problem, it was on our side.
We didn't configure correctly our HAProxy. Those elements were missing in haproxy.cfg
file, within the "frontend" or "listen" section:
http-request set-header X-Forwarded-Proto https
http-request set-header X-Forwarded-Port 443
(Of course, you have to adapt the port with the HTTPS port you use)
Oh that sounds great, thanks a lot @benoit-rolandeau-act I didn't test it but sound logic, I will adapt this configuration in our cluster and I will come back to you
As asked in this issue, I create a particular one: https://github.com/thingsboard/thingsboard/issues/13103 ; but for me, it seems to be the same "problem".
Describe the bug
We have set up a OAuth 2.0 client for Google on our Thingsboard Community server.
We followed both recommended documentation:
We have created the client in GCP and set the redirected uri, as you can see here:
But when we try to connect with a Google account the following error raises:
If I add the same address but with
http
and nothttps
as you can see here:Everything works well.
Therefore, for me it seems that Thingsboard asks to redirect to a HTTP url and not a HTTPS.
Good to know:
General Settings
(I don't know if it's linked, or not)Your Server Environment
Your Client Environment Desktop (please complete the following information):