MongoFramework.AspNetCore.Identity 0.5.0

dotnet add package MongoFramework.AspNetCore.Identity --version 0.5.0
                    
NuGet\Install-Package MongoFramework.AspNetCore.Identity -Version 0.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MongoFramework.AspNetCore.Identity" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MongoFramework.AspNetCore.Identity" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="MongoFramework.AspNetCore.Identity" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MongoFramework.AspNetCore.Identity --version 0.5.0
                    
#r "nuget: MongoFramework.AspNetCore.Identity, 0.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=MongoFramework.AspNetCore.Identity&version=0.5.0
                    
Install MongoFramework.AspNetCore.Identity as a Cake Addin
#tool nuget:?package=MongoFramework.AspNetCore.Identity&version=0.5.0
                    
Install MongoFramework.AspNetCore.Identity as a Cake Tool

Actions Status Codacy Badge codecov

MongoFramework.AspNetCore.Identity

.Net Core Identity providers for MongoFramework.

Features

MongoFramework Implementations

  • IdentityUser
  • IdentityRole
  • RoleStore
  • UserStore
  • UserOnlyStore

ServiceCollection Extensions for

  • MongoDbContext
services.AddMongoDbContext<MongoDbContext>(o =>
    o.ConnectionString = Configuration.GetConnectionString("DefaultConnection"));
  • Identity Stores (adds to IdentityBuilder)
services.AddDefaultIdentity<MongoIdentityUser>(options => options.SignIn.RequireConfirmedAccount = true)
    .AddMongoFrameworkStores<MongoDbContext>();
  • Complete Identity (User Only)
services.AddMongoDbContext<MongoDbContext>(o =>
    o.ConnectionString = Configuration.GetConnectionString("DefaultConnection"));

services.AddDefaultMongoIdentity<MongoIdentityUser, MongoDbContext>();
  • Complete Identity (Users and Roles)
services.AddMongoDbContext<MongoDbContext>(o =>
    o.ConnectionString = Configuration.GetConnectionString("DefaultConnection"));

services.AddMongoIdentity<MongoIdentityUser, MongoIdentityRole, MongoDbContext>();

Sample .NET Core Project

Unit Tests, including passing Asp.Net Core's IdentitySpecificationBase

IdentitySpec Tests

This issue shows the spec tests weren't publicly released for .NET 5.0. They are supposed to be, but do not show up on NuGet yet. I have added the code manually to the test project until this gets published.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.0 1,563 7/7/2023
0.4.0 7,468 2/9/2022
0.3.0 919 12/19/2020
0.2.2 543 12/19/2020
0.2.1 641 12/19/2020
0.2.0 509 12/19/2020
0.1.0.1 523 10/28/2020
0.1.0 497 10/28/2020