Skip to content

Owin and EF6 support in MembershipReboot

November 10, 2013

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.

 

13 Comments leave one →
  1. Steve permalink
    November 14, 2013 2:55 am

    What would be the best way to integrate your OWIN package in the new ASP.NET MVC5 WebApp Template?

  2. Petri permalink
    November 20, 2013 1:32 pm

    I also would like to see how to integrate membershipreboot to MVC5 spa template (both OWIN token and cookie authentication)

  3. Dave permalink
    November 20, 2013 6:49 pm

    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.

    • November 20, 2013 7:01 pm

      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.

      • Dave permalink
        November 21, 2013 9:47 pm

        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)?

        • November 22, 2013 8:51 am

          The UserAccountService is a class with all virtual APIs — you can still mock this as needed.

  4. chrisD permalink
    November 25, 2013 9:39 am

    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.

    • November 26, 2013 12:24 am

      I’ll consider putting up some videos (if/when I get some time).

  5. chrisD permalink
    November 26, 2013 6:30 pm

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: