Hi all,
Apologies if this is not the right place to ask this question...
We have an
ASP.NET web application and we use custom Forms user authentication since our system can integrate with various external authentication systems (Shibboleth, Kerberos, LDAP, etc) In essence, when an external system authenticates a user, we fetch their data from the DB, create our custom cookie data, serialise it using JSON, store it into a FormsAuthenticationTicket, encrypt it and send it in a cookie. When a request comes in, we grab the FormsAuthenticationTicket from Context.User.Identity (which is of FormsIdentity type), desirialise the cookie data, create our custom IPrincipal and IIdentity objects and store that into Context.User.
Now, we would like to start using SignalR in our application and I can't find a way to reuse that cookie for OWIN authentication. Is that even possible, or should we customise OWIN authentication and reuse that for the rest of our application? If that is the case, how do I do that? Do we have to implement custom OWIN authentication middleware, like instagram/linked in/twitter authentication packages that are available?
Thank you,
Marko