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
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="Marten.AspNetCore.Identity" Version="0.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Marten.AspNetCore.Identity --version 0.1.3
#r "nuget: Marten.AspNetCore.Identity, 0.1.3"
#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.
// 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

build

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.

  1. Add this package to your project.

  2. 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;
    }
});
  1. Add the MartenIdentityStores
builder.Services.AddMartenIdentityStores();
  1. Configure the default identity to be MartenIdentityUser.
builder.Services.AddDefaultIdentity<MartenIdentityUser>();
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 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. 
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.1.3 1,317 4/24/2022
0.1.2 436 1/14/2022