2017-08-23 13:39:27 -05:00
2017-08-21 10:06:27 -05:00
2017-08-23 13:39:27 -05:00

RavenDB logo RavenDB.AspNetCore.Identity

An ASP.NET Core Identity provider for RavenDB

Instructions

  1. In Startup.cs:
public void ConfigureServices(IServiceCollection services)
{
	// Add RavenDB and identity.
	services
		.AddRavenDb(Configuration.GetConnectionString("RavenDbConnection")) // Create a RavenDB DocumentStore singleton.
		.AddRavenDbAsyncSession() // Create a RavenDB IAsyncDocumentSession for each request.
		.AddRavenDbIdentity<AppUser>(); // Use Raven for users and roles. AppUser is a simple DTO to hold our user data. See https://github.com/JudahGabriel/RavenDB.AspNet.Identity/blob/master/Sample.Web.NetCore/Models/AppUser.cs

	...
}
  1. In your controller actions, call .SaveChanges when you're done making changes. Typically this is done via a RavenController base class.

  2. You're done!

Need help? See the sample app

S
Description
RavenDB Identity provider for ASP.NET Core. Let RavenDB manage your users and logins.
Readme 1.3 MiB
Languages
C# 100%