ASP.NET Identity 2 - injecting ISecureDataFormat -



ASP.NET Identity 2 - injecting ISecureDataFormat<> -

i'm having same issue described here no answer, using unity.

i'm trying register isecuredataformat<> in lastest vs2013 (update 2) spa/web api template.

i've tried

container.registertype(typeof(isecuredataformat<>), typeof(securedataformat<>)); container.registertype<isecuredataformat<authenticationticket>, securedataformat<authenticationticket>>(); container.registertype<isecuredataformat<authenticationticket>, ticketdataformat>();

it "works" not because complains next depenedency in tree, idataserializer... , next idataprotector, found no implementation.

i solved next error in simpleinjector next mappings

container.register<idataserializer<authenticationticket>, ticketserializer>(); container.register<idataprotector>(() => new dpapidataprotectionprovider().create("asp.net identity"

to figure out serializer used noticed isecuredataformat generic parameter in accountscontroller authenticationticket type. in checking idataserializer namespace ticketserializer implements idataserializer.

to figure out idataprotector 1 time again looked in idataprotector namespace , found implementation of idataprotectionprovider.

asp.net-identity asp.net-identity-2 unity-interception

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -