3

So I create a project based on quickstart of identityserver.io, and I did everything according to tutorial. But I don't have

AddConfigurationStore

AddOperationalStore

on

services.AddIdentityServer

Can anybody help me ?

It is worth mentioning that they are available in IdentityServer4 v2.2.0 and in IdentityServer release page, I don't see any thing about this change.

This is my configuration code :

var builder = services.AddIdentityServer(options =>
        {
            options.Events.RaiseErrorEvents = true;
            options.Events.RaiseInformationEvents = true;
            options.Events.RaiseFailureEvents = true;
            options.Events.RaiseSuccessEvents = true;
        })
            .AddInMemoryIdentityResources(Config.GetIdentityResources())
            .AddInMemoryApiResources(Config.GetApis())
            .AddInMemoryClients(Config.GetClients())
            .AddAspNetIdentity<ApplicationUser>();
Share a link to this question
|improve this question
7

AddConfigurationStore and AddOperationalStore are extensions in the Microsoft.Extensions.DependencyInjection namespace, but located in the IdentityServer4.EntityFramework assembly.

You'll have to add the IdentityServer4.EntityFramework NuGet package to your project.

Share a link to this answer
|improve this answer
  • Now I have problem with this : .AddConfigurationStore(a=> a.UseSqlServer()) there is not any UseSqlServer on a object. – jsDevia Feb 10 at 8:29
  • 2
    @jsDevia That's another package: Microsoft.EntityFrameworkCore.SqlServer – Ruard van Elburg Feb 10 at 9:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.