SSE with Oathkeeper

Is there any experience regarding Oathkeeper and the use of Server Sent Events streams?

In principle the Server Sent Event streams work, but they always break up after 2 minutes (this is the time the oathkeeper is configured for the HTTP write timeout).

But this should not happen. The SSE stream should run until it is terminated by the client.

Yeah we don’t really support long running HTTP connections in ORY Oathkeeper yet. You can however configure the timeouts IIRC. If you want, we could discuss what a PR for SSE could look like on ORY Oathkeeper’s GitHub!

With pleasure. But unfortunately I cannot program GO

1 Like