I'm trying to integrate a NoSql data store into Identity Server 4 such as Cosmos DB. I was wondering if someone out there has done something similar and/or if it's possible.
The current version (IdentityServer4 v4. x) will be the last version we work on as free open source. We will keep supporting IdentityServer4 until the end of life of . NET Core 3.1 in November 2022.
About IdentityServer4IdentityServer is a free, open source OpenID Connect and OAuth 2.0 framework for ASP.NET Core.
Off-course, It is possible to use NoSQL database for IdentityServer4. Why not?
Here is an example with MongoDB
"initial plumbing" in ConfigureServices() method at startup.cs.
public void ConfigureServices(IServiceCollection services)
{
...
// --- configure identity server with MONGO Repository for stores, keys, clients and scopes ---
services.AddIdentityServer()
.AddTemporarySigningCredential()
.AddMongoRepository()
.AddClients()
.AddIdentityApiResources()
.AddPersistedGrants()
.AddTestUsers(Config.GetUsers());
...
}
There is another github project cloudscribe, ASP.NET Core multi-tenant web application foundation with management for sites, users, roles, claims and more. This project is implementing PostgreSQL (ORDBMS) and MySql for IdentityServer. In this project, you can get the idea about how to implement a system that allows switching among databases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With