idunno.CookieSharing icon indicating copy to clipboard operation
idunno.CookieSharing copied to clipboard

Sharing Cookie between Aspnet core and legacy .NET app using Cookie Middleware

Open aagarwal10 opened this issue 8 years ago • 1 comments

I am trying to share cookie between Aspnet Core App (using 4.6.1 framework) and Aspnet WebForms (using 4.6.1 framework) using above documentation. I am using Redis implementation of ITicketStore for Aspnet Core Cookie Middleware and have Redis implementation of IAuthenticationSessionStore for Webforms CookieMiddleware. Now my question, is it possible to share cookie between my two .NET apps using Redis as Session Store since both use different version of AuthenticationTicket serialized into same instance of Redis for sharing session??

AuthenticationTicket used in Core App is from Microsoft.AspNetCore.Authentication AuthenticationTicket used in Webforms App is from Microsoft.Owin.Security

I hope my problem statement is clear.

Please advise here.

aagarwal10 avatar Feb 02 '17 03:02 aagarwal10

I have no idea without trying it. The goal of the compat layer was only to concentrate on auth cookies with serialized claims, and not for cookies which point elsewhere.

blowdart avatar Feb 02 '17 16:02 blowdart