OWIN and ASP.NET Forms authentication

432 views
Skip to first unread message

Marko Božiković

unread,
Jun 30, 2014, 12:25:06 PM6/30/14
to net-http-a...@googlegroups.com
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

Chris R

unread,
Jun 30, 2014, 1:01:43 PM6/30/14
to net-http-a...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups ".NET HTTP Abstractions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-http-abstrac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages