efeb6da3f8023a6e4582e785e8d78023242f18ed
RavenDB.Identity
RavenDB identity provider for ASP.NET Core.
The simple and easy Identity provider for RavenDB and ASP.NET Core. Use Raven to store your users and logins.
(This is an Identity Provider for .NET Core. If you're looking for an Identity Provider for MVC6+ and the full .NET framework, see our sister project.
Instructions
- 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 your class, a simple DTO to hold user data. See https://github.com/JudahGabriel/RavenDB.Identity/blob/master/Sample/Models/AppUser.cs
...
}
-
In your controller actions, call .SaveChanges when you're done making changes. Typically this is done via a RavenController base class.
-
You're done!
Need help? See the sample app.
Description
RavenDB Identity provider for ASP.NET Core. Let RavenDB manage your users and logins.
Languages
C#
100%