Skip to content

Instantly share code, notes, and snippets.

View pericles97's full-sized avatar
Tomando Café

Pericles Radaelli pericles97

Tomando Café
View GitHub Profile
@pericles97
pericles97 / question.cs
Last active October 21, 2020 00:09
I got this error “Unable to resolve service for type AspNetCore.Identity.SignInManager” when I use ApplicationUser instead IdentityUser
/*I have a .NET Core 3.1 Web Api and I created an ApplicationUser class that inherits from IdentityUser because I need to register some others properties. But when I attempt to register a new user I get the following error:
Unable to resolve service for type 'Microsoft.AspNetCore.Identity.SignInManager[MyProject.Api.ApplicationUser]' while attempting to activate 'MyProject.Api.Controllers.AuthController'.*/
/*Here's the IdentityConfig class that set the dependencys on Startup class:*/
public static class IdentityConfig
{
public static IServiceCollection AddIdentityConfig(this IServiceCollection services,
IConfiguration configuration)