Iris.IdentityServer4.MongoDB 1.0.1

dotnet add package Iris.IdentityServer4.MongoDB --version 1.0.1
NuGet\Install-Package Iris.IdentityServer4.MongoDB -Version 1.0.1
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="Iris.IdentityServer4.MongoDB" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Iris.IdentityServer4.MongoDB --version 1.0.1
#r "nuget: Iris.IdentityServer4.MongoDB, 1.0.1"
#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 Iris.IdentityServer4.MongoDB as a Cake Addin
#addin nuget:?package=Iris.IdentityServer4.MongoDB&version=1.0.1

// Install Iris.IdentityServer4.MongoDB as a Cake Tool
#tool nuget:?package=Iris.IdentityServer4.MongoDB&version=1.0.1

Iris.IdentityServer4.MongoDB

Iris.IdentityServer4.MongoDB is an IdentityServer4 storage adapter that one can use as an alternative to the EntityFrameWork stores which requires one to use a full RDMS like SQL Server, Postgres or MySQL

Installation

On the terminal install the Nuget package using the following command

dotnet add package Iris.IdentityServer4.MongoDB

or using the Nuget Package Manager with

Install-Package Iris.IdentityServer4.MongoDB

Setup

To setup your project to use this adapter, in your ConfigureServices method when you are setting up Identity Server, inject the required services using the AddMongoDbStores method.

var builder = services.AddIdentityServer()
    .AddMongoDbStores(options =>
    {
        options.ConnectionString = "mongodb connection string here"; // MongoDB connection string excluding the database
        options.Database = "mongodb database here"; // Database default is identity
        options.EnableTokenCleanup = true; // Default is false
        options.TokenCleanupInterval = 3600; // This is in minutes default is 3600 (1 hour)
    });

when in development add the following for Key Signing Credentials

    builder.AddDeveloperSigningCredential();

In Production setup Key Signing as described in the Identity Server documentation.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

APACHE

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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
1.0.1 717 8/22/2021
1.0.0 622 8/15/2021

Version 1.0.1 Update setup options