Fable.Reaction
Fable.Reaction copied to clipboard
How to protect WS middleware with authentication?
Hello, how can I allow to connect to ws (AspNetCore.Middleware) only authenticated users?
If use Giraffe, I usually use requiresAuthentication to protect path, but I can't do it with this middleware.
Can I use something like this(SignalR authentication): https://docs.microsoft.com/en-us/aspnet/core/signalr/authn-and-authz?view=aspnetcore-2.1#bearer-token-authentication
Hi, I'm unsure about this. Probably you should use some features / extensions to AspNetCore, but I really don't know.