-
Notifications
You must be signed in to change notification settings - Fork 1.2k
oauth2_proxy not work with EventSource #266
Comments
It looks like oauth2_proxy cache every responses from my server until it finishes, then those responses will be forwarded to the client. But that's not what a want, a delay for the client, is there any way to tell oauth2_proxy forward every response immediately? |
@ngochai94 I am having the same issue with SSE. @jehiah Any idea how this could be fixed? |
Did anyone figure out a workaround for this? |
@willejs @gtaylor @ngochai94 oauth2_proxy doesn't cache anything. Please include steps to reproduce the issue you are seeing, and include logs from oauth2_proxy and your upstream that indicate how each is responding to requests. |
I think he means, oauth2_proxy buffers the response until it is complete, but the client wants to get parts of the response as soon as they are available. I'm still not 100% sure what this is or how it works but it's probably this thing: https://developer.mozilla.org/en-US/docs/Web/API/EventSource |
for example in nginx you have to do following to make it work I guess same thing needs to be done i oauth2_proxy |
Hi, I'm having problem using EventSource.
Everything works fine if the proxy is not present: my client receive the response from server.
However, if the proxy is present, the client doesn't receive anything and keep requesting to the server every 3 seconds. I guess something wrong with the proxy?
The text was updated successfully, but these errors were encountered: