Giter Club home page Giter Club logo

aspnetcore.identity.marten's Introduction

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>();

aspnetcore.identity.marten's People

Contributors

soernt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

marcel-trabolt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.