Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to protect WS middleware with authentication? #42

Open
Neftedollar opened this issue Apr 13, 2020 · 1 comment
Open

How to protect WS middleware with authentication? #42

Neftedollar opened this issue Apr 13, 2020 · 1 comment

Comments

@Neftedollar
Copy link

Neftedollar commented Apr 13, 2020

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

@dbrattli
Copy link
Owner

dbrattli commented May 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants