github Oauth redirection url in case of Google Cloud Run includes subdirectory name #1820
-
I moved my six year old website and was integrating remark42. First I integrated with docker running on the ubuntu webhost directly and everything worked as expected. I was able to validate github and google oauth. Then I moved remark42 to google cloud run. Anonymous commenting is working. github login also works but with a caveat: when I try to login with github I am redirected to https://github.com/DB7B84/login/oauth/authorize?client_id=... DB7B84 is the sub-directory under which I am proxying the remark42 instance. If I delete the "DB7B84" from the URL and refresh the page then things work and I am logged in. To workaround I put varnish in front of the response chain and put the following rule, so that it works now.
For now, I have reverted the varnish rule so that the problem can be observed on https://podcast.ekvastra.in/comments I don't mind keeping it like that for a few weeks so that this can be looked at. I am very impressed with remark42 and really appreciate the hard work behind it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
... when I looked at my own comment in the vcl code above I think the problem is with lighttpd reverse proxy rather than remark42. I will explore that angle. Any comment is welcome. |
Beta Was this translation helpful? Give feedback.
-
moved to discussions |
Beta Was this translation helpful? Give feedback.
-
I am 95% sure it's an issue on the side of your HTTP server. Please see this doc and let me know if something is missing there. With lighttpd configuration should look something like that:
|
Beta Was this translation helpful? Give feedback.
I am 95% sure it's an issue on the side of your HTTP server. Please see this doc and let me know if something is missing there. With lighttpd configuration should look something like that: