Marten.AspNetCore.Identity
0.1.3
dotnet add package Marten.AspNetCore.Identity --version 0.1.3
NuGet\Install-Package Marten.AspNetCore.Identity -Version 0.1.3
<PackageReference Include="Marten.AspNetCore.Identity" Version="0.1.3" />
paket add Marten.AspNetCore.Identity --version 0.1.3
#r "nuget: Marten.AspNetCore.Identity, 0.1.3"
// Install Marten.AspNetCore.Identity as a Cake Addin #addin nuget:?package=Marten.AspNetCore.Identity&version=0.1.3 // Install Marten.AspNetCore.Identity as a Cake Tool #tool nuget:?package=Marten.AspNetCore.Identity&version=0.1.3
AspNetCore.Identity.Marten
.Net Core Identity Stores using Marten
The users and roles stores are tested by using the offical Microsoft.AspNetCore.Identity.Specification.Tests packages. Have a look at the Marten.AspNetCore.Identity.Tests project. To run the tests you should have docker installed. A PostgreSQL image will be automatically downloaded and used during the test.
How to configure it
This repository has a small example project which setup the Microsoft Identity to use this package.
Add this package to your project.
While adding the default Marten support, you should configure the MartenIdentityUser and MartenIdentityRole entities:
builder.Services.AddMarten(options =>
{
options.Connection(builder.Configuration.GetConnectionString("Marten"));
// Configure the MartenIdentityUser and MartenIdentityRole mappings
options.ConfigureMartenIdentityMapping();
if (builder.Environment.IsDevelopment())
{
options.AutoCreateSchemaObjects = AutoCreate.All;
}
});
- Add the MartenIdentityStores
builder.Services.AddMartenIdentityStores();
- Configure the default identity to be MartenIdentityUser.
builder.Services.AddDefaultIdentity<MartenIdentityUser>();
Product | Versions 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 was computed. 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. |
-
net6.0
- Marten (>= 5.2.0)
- Microsoft.Extensions.Identity.Core (>= 6.0.4)
- Microsoft.Extensions.Identity.Stores (>= 6.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.