foxsofter / aspnet-identity-mongo

A mongodb provider for the new ASP.NET Identity framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AspNet.Identity.Mongo

A mongodb provider for the new ASP.NET Identity framework. My aim is to ensure this project is well tested and configurable.

Usage

var client = new MongoClient("mongodb://localhost:27017");
var database = client.GetServer().GetDatabase("mydb");
var users = database.GetCollection<IdentityUser>("users");

var context = new IdentityContext(users);
var store = new UserStore<IdentityUser>(context);
var manager = new UserManager<IdentityUser>(store);

OR

a sample aspnet-identity-mongo-sample based on Microsoft ASP.NET Identity Samples.

Installation

via nuget:

Install-Package AspNet.Identity.MongoDB

Building and Testing

I'm using the albacore project with rake.

To build:

rake msbuild

To test:

rake tests
rake integration_tests

To package:

rake package

Documentation

I'm writing about my design decisions on my blog:

About

A mongodb provider for the new ASP.NET Identity framework.

License:MIT License