Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forms authentication with SignalR

I have gone through wiki on SignalR and still can't figure out how to do Forms authentication with SignalR. I'd like to invoke a call to a hub (or persistent connection) with username/password and be able to return a redirect to an authenticated page, along with setting forms authentication cookie.

like image 527
Sean Feldman Avatar asked Jul 15 '12 00:07

Sean Feldman


1 Answers

Don't do forms auth through SignalR. Do it outside of SignalR (as you would normally) and then you can check to make sure incoming calls, and subscribers to your hub are authenticated.

like image 197
davidfowl Avatar answered Sep 29 '22 19:09

davidfowl