specta-rs / rspc

A framework for building typesafe web backends in Rust
https://rspc.dev
MIT License
1.21k stars 58 forks source link

Ability to authenticate in the HTTP endpoint (for WS or HTTP) before executing router #47

Open oscartbeaumont opened 2 years ago

oscartbeaumont commented 2 years ago

It would be great to be able to, for example, block unauthenticated users or rate limit WebSockets connections since these act as Dos vectors.

oscartbeaumont commented 1 year ago

We should deal with the semantics of the context function with subscriptions cause right now it's problematic.

I think we need to enable the Clone bound on the TCtx type + document this behavior.

This is fixed now.