This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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) |