sysid / sse-starlette

BSD 3-Clause "New" or "Revised" License
504 stars 35 forks source link

Authentication issue when using sysid/sse-starlette #54

Closed srbdev closed 1 year ago

srbdev commented 1 year ago

I'm developing an API using Starlette and I've implemented authentication following their example (see https://www.starlette.io/authentication/). I've also added sysid/sse-starlette to the project and adding @requires("authenticated") to my streaming API endpoint always returns a 403 Forbidden return code. No issues with the other GET or POST endpoints. Also note that the authentication logic succeeds at validating my credentials when hitting the streaming endpoint but somehow fails when returning the AuthCredentials for the user.

Unfortunately, I cannot post my code here but I was wondering if you had any idea of what could be happening. If not, I'll put together a simple and shareable example to hopefully replicate the issue and we can go from there.

Thank you!

sysid commented 1 year ago

I am afraid that just based on your description the problem is too vague to contribute meaningful.

srbdev commented 1 year ago

I figured! I'm working on an isolated example to be able to reproduce the issue.

sysid commented 1 year ago

Will close for now due to inactivity.