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
<PackageReference Include="Iris.IdentityServer4.MongoDB" Version="1.0.1" />
paket add Iris.IdentityServer4.MongoDB --version 1.0.1
#r "nuget: Iris.IdentityServer4.MongoDB, 1.0.1"
// 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
Product | Versions 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. |
-
.NETCoreApp 3.1
- IdentityServer4 (>= 4.1.2)
- MongoDB.Driver (>= 2.13.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version 1.0.1 Update setup options