Fable.Reaction icon indicating copy to clipboard operation
Fable.Reaction copied to clipboard

How to protect WS middleware with authentication?

Open Neftedollar opened this issue 6 years ago • 1 comments

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

Neftedollar avatar Apr 13 '20 19:04 Neftedollar

Hi, I'm unsure about this. Probably you should use some features / extensions to AspNetCore, but I really don't know.

dbrattli avatar May 01 '20 07:05 dbrattli