Identity Controller
In order to use the built-in authentication feature of the framework you just need to inherit UserAuthenticationController:
public class ApplicationUserAuthenticationController : UserAuthenticationController
{
public ApplicationUserAuthenticationController(
IUserClaimsService userClaimsService,
UrlEncoder urlEncoder,
SignInManager<User> signInManager,
IExternalProviderAuthenticatorFactory externalProviderAuthenticatorFactory,
ILogger<ApplicationUserAuthenticationController> logger)
: base(userClaimsService, urlEncoder, signInManager, externalProviderAuthenticatorFactory, logger)
{
}
}
INFO
Consider that everything in that base controller is virtual, so it can easily be overridden if needed.