All Projects → maqduni → AspNetCore.Identity.RavenDb

maqduni / AspNetCore.Identity.RavenDb

Licence: MIT License
RavenDB user/role persistent store for ASP.NET Core identity provider

Programming Languages

C#
18002 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to AspNetCore.Identity.RavenDb

Colore
A powerful C# library for Razer Chroma's SDK
Stars: ✭ 121 (+611.76%)
Mutual labels:  nuget, netcore
Megaapiclient
MegaApiClient is a C# .Net library to access http://mega.co.nz / http://mega.nz cloud storage and file hosting service.
Stars: ✭ 151 (+788.24%)
Mutual labels:  nuget, netcore
Wkhtmltopdf.netcore
Rotativa + Net Core
Stars: ✭ 137 (+705.88%)
Mutual labels:  nuget, netcore
Stuntman
Library for impersonating users during development leveraging ASP.NET Identity.
Stars: ✭ 285 (+1576.47%)
Mutual labels:  nuget, asp
MQTTnet
MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
Stars: ✭ 3,309 (+19364.71%)
Mutual labels:  nuget, netcore
Bcrypt.net
BCrypt.Net - Bringing updates to the original bcrypt package
Stars: ✭ 422 (+2382.35%)
Mutual labels:  nuget, netcore
Zipstorer
A Pure C# Class to Store Files in Zip
Stars: ✭ 139 (+717.65%)
Mutual labels:  nuget, netcore
Unitconversion
Expansible Unit Conversion Library for .Net Core and .Net Framework
Stars: ✭ 139 (+717.65%)
Mutual labels:  nuget, netcore
dark-sky-core
A .NET Standard Library for using the Dark Sky API.
Stars: ✭ 55 (+223.53%)
Mutual labels:  nuget, netcore
Pluginframework
Everything is a Plugin in .NET
Stars: ✭ 197 (+1058.82%)
Mutual labels:  nuget, netcore
Blazorwebformscomponents
A collection of Blazor components that emulate the ASP.NET Web Forms controls of the same name
Stars: ✭ 274 (+1511.76%)
Mutual labels:  nuget, asp
AspSqliteCache
An ASP.NET Core IDistributedCache provider backed by SQLite
Stars: ✭ 39 (+129.41%)
Mutual labels:  nuget, netcore
H.NotifyIcon.WPF
NotifyIcon for .Net Core 3.1 and .Net 5 WPF.
Stars: ✭ 44 (+158.82%)
Mutual labels:  nuget, netcore
Fo Dicom
Fellow Oak DICOM for .NET, .NET Core, Universal Windows, Android, iOS, Mono and Unity
Stars: ✭ 674 (+3864.71%)
Mutual labels:  nuget, netcore
Mqttnet
MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
Stars: ✭ 2,486 (+14523.53%)
Mutual labels:  nuget, netcore
Extended-Toolkit
A companion toolkit for the standard toolkit.
Stars: ✭ 83 (+388.24%)
Mutual labels:  nuget, netcore
SockNet
The easiest and fastest way to work with sockets in C#
Stars: ✭ 42 (+147.06%)
Mutual labels:  nuget, netcore
LeagueReplayParser
C# library which can read some data from a .rofl file, and start a replay in the client. (no longer actively maintained)
Stars: ✭ 20 (+17.65%)
Mutual labels:  nuget
NupkgWrench
Command line tool for reading and modifying nupkgs
Stars: ✭ 23 (+35.29%)
Mutual labels:  nuget
nactivity
workflow engine activity activiti
Stars: ✭ 55 (+223.53%)
Mutual labels:  netcore

RavenDB v4.0 user/role persistent store for ASP.NET Core identity provider

The most complete and closest implementation of the user and role store to the original EntityFramework implementation, it's well documented, and includes very useful RavenDB extensions. Supports .NET Standard 2.0

NuGet GitHub license NuGet

Note: For RavenDB v3.5 persistence store switch the active branch to v3.x

ASP.NET Core Identity is a membership system which allows you to add login functionality to your application. Users can create an account and login with a user name and password or they can use an external login provider such as Facebook, Google, Microsoft Account, Twitter or others. You can configure ASP.NET Core Identity to use a RavenDB database to store user names, passwords, and profile data.

Installation via NuGet console

PM> Install-Package Maqduni.AspNetCore.Identity.RavenDb

Note: Extensions can also be installed as a standalone package,

PM> Install-Package Maqduni.RavenDb.Extensions

Usage

Need a jump-start? Refer to the sample .NET Core 2.0 web application

For comprehensive usage examples refer to the unit tests

Configuration Example (Startup.cs)

Register DocumentAsyncSession per each HTTP request, is used to store users/roles in the database. Adds the singleton DocumentStore internally.

public void ConfigureServices(IServiceCollection services)
{
    // Add ravendb services.
    services.AddRavenDbAsyncSession(Configuration.GetConnectionString("RavenDb"));

    services.AddIdentity<ApplicationUser, ApplicationRole>()
        .AddRavenDbStores()
        .AddDefaultTokenProviders();

    ...
}

Note:

  • DocumentStore is a singleton and AsyncSession gets instantiated per each HTTP request.
  • "{userCollectionName}/ClaimsAndLogins" index is created on application startup if it doesn't exist in the database. The identity provider relies on this index to enable user search by email, username, claims, and logins.

Contribute

Feel free to contribute to the project by either providing feedback or by forking and adding new features or fixing bugs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].