You get this error if there is no implementation of the IIdentityServerInteractionService interface in the dependency injection container. In the QuickContart example HomeController, the implementation of the IIdentityServerInteractionService in the constructor:
public HomeController(IIdentityServerInteractionService interaction) { _interaction = interaction; }
You must add services.AddIdentityServer(); to the ConfigureServices method in your startup class. IdentityServer will implement the implementation of IIdentityServerInteractionService , named DefaultIdentityServerInteractionService .
source share