dbrattli / dbrattli/Fable.Reaction

How to protect WS middleware with authentication?

Open
#42 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
F#
Stars
143
Forks
19
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.