Can I use NoSQL for Identity Server 4?

I am trying to integrate a NoSql data warehouse in Identity Server 4, for example, into a Cosmos DB database. I was wondering if someone there did something similar and / or if it is possible.

+6
source share
1 answer

Off course, you can use the NoSQL database for IdentityServer4. Why not?

Here is an example with MongoDB

"initial plumbing" in the ConfigureServices () method in 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());
  ...
  }

github cloudscribe, - ASP.NET Core , , , . PostgreSQL (ORDBMS) MySql IdentityServer. , , .

+3

All Articles