Owin and EF6 support in MembershipReboot
Today I did a new release of MembershipReboot and updated NuGet with the new code.
First, the NuGet package BrockAllen.MembershipReboot.Ef is now built against EF6.
Second: Two new NuGet packages were added: BrockAllen.MembershipReboot.WebHost and BrockAllen.MembershipReboot.Owin. These reflect the refactoring of the dependency on System.Web.
There was some helper code that used ASP.NET and the SAM for some cookie helpers, and this code has been moved into BrockAllen.MembershipReboot.WebHost. If you were previously using the AspNetApplicationInformation or SamAuthenticationService classes, you will need to reference the BrockAllen.MembershipReboot.WebHost NuGet package and include the BrockAllen.MembershipReboot.WebHost namespace.
If you’re using OWIN then you can now use the new BrockAllen.MembershipReboot.Owin package. There is also a Nancy sample in the samples on github.
Enjoy.
What would be the best way to integrate your OWIN package in the new ASP.NET MVC5 WebApp Template?
I also would like to see how to integrate membershipreboot to MVC5 spa template (both OWIN token and cookie authentication)
Yea, good suggestion. Something for my TODO list.
I am unable to run the Single Tenant sample application. A console window which has something to do with OWIN spins up, then Visual Studio 2013 hangs. Is there a piece/component that I could be missing? All the nuget packages downloaded when the solution built.
Yea, I’ve seen that – it has something to do with the Owin/Katana host (I guess it’s buggy in VS). Anyway, just remove the OwinHost sample from the solution. I need to do some rework anyway so I’ll update that sample in github.
Thanks Brock. I have another quick question. In your sample apps, you don’t use interfaces to inject your services in controllers. Do you recommend against doing that? Or was it just a case of brevity for the purposes of demonstration (which is fine)?
The UserAccountService is a class with all virtual APIs — you can still mock this as needed.
Brock — Any thoughts on releasing a Pluralsight training video on implementing MR in MVC5 and WebAPI2 apps? A nice step-by-step tutorial would be a huge help.
I’ll consider putting up some videos (if/when I get some time).
Is there any documentation, ANYWHERE about consuming MR from a WebAPI2 application? I’ve got the SingleTenant sample side by side with my newly created WebAPI2 project (to which I’ve added MR and MR.EF nuget packages), but the configs look so different, I don’t even know where to begin. I see we’ve got a MR.WebHost package now, is that required since I’m using system.web rather than owin? I’m just looking for a little direction here for a newbie to get MR up and running.
I guess you’re looking for a sample that shows how to use MR with the new OWIN MW?
Yes please. Thanks!
which flow? resource owner, i suppose?