Skip to content

christophla/Envoice.MongoIdentityServer

Repository files navigation

IdentityServer4.Contrib.MongoDB

Build Status

MongoDB persistence layer for IdentityServer4 based on the Official EntityFramework persistence layer.

Envoice

MongoIdentityServer Build status

MongoDB persistence layer for IdentityServer4 based on the Official EntityFramework persistence layer.

Supports virtual collections from MongoRepository

Supported Platforms

  • .NET 2.0

Installation

https://www.myget.org/feed/envoice/package/nuget/Envoice.MongoIdentityServer

Add dependency to you project.json:

dotnet add package Envoice.MongoIdentityServer --version 1.0.0 --source https://www.myget.org/F/envoice/api/v3/index.json

Virtual Collections

Virtual collections allow multiple entity types to be stored in a single collection.

Connection String

Connection string options can be used to configure the repositories. All connection string options override code-based options, e.g. MongoRepositoryConfig.

mongodb://{host}:{port}/?virtual=true&virtualCollection=Entities&virtualCollectionGlobal=true
  • virtual (boolean) : Enables virtual collections. Default = false.
  • virtualCollection (string) : Default virtual collection for all unmapped entities.
  • virtualCollectionGlobal (boolean) : Overrides all entities to use the virtualCollection regardless of mapping configuration.

ASPNET Service (TODO)

The repositories can be configured to use virtual collections in ASPNET applications via the UseMongoRepository method.

services.UseMongoRepository(config => {

    config.VirtualCollectionDefault = "Entities";
    config.VirtualCollectionEnabled = true;
    config.VirtualCollectionForceGlobal = false;

});

Attributes

  [VirtualCollectionName("Entities")]
  public class Product {
    ...
  }

About

Mongo backing store for Identity Server 4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published