I am using ASP.NET Identity 2.2 in a Web API 2 project but I am unsure how to wire up the ISecureDataFormat<AuthenticationTicket>
dependency of the AccountController
using Autofac.
I tried this:
builder.RegisterType<ISecureDataFormat<AuthenticationTicket>>()
.As<TicketDataFormat>();
and getting error:
The type 'Microsoft.Owin.Security.ISecureDataFormat`1[Microsoft.Owin.Security.AuthenticationTicket]' is not assignable to service 'Microsoft.Owin.Security.DataHandler.TicketDataFormat'
None of the questions I came across seem to work using the latest stable release of ASP.NET Identity.
Any help is greatly appreciated.