How do you configure asp.net core mvc 2.2 by just using the default local login without external login providers?
I can't seem to find a way to remove this:
Use another service to log in.
There are no external authentication services configured. See this article for details on setting up this ASP.NET application to support logging in via external services.
I only want to use local accounts for now (and maybe later add external providers).
services.AddIdentity<ApplicationUser, ApplicationRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders()
.AddDefaultUI(UIFramework.Bootstrap4);
This is not configurable. If you look at the implementation of the Login page, you will see that it doesn't use any options, but just renders the messages.
Use another service to log in.
is rendered always and
There are no external authentication services configured. See this article for details on setting up this ASP.NET application to support logging in via external services.
is rendered if there are no external login providers.
There is no way to remove the messages using identity builder or something like that. The only way would be to scaffold the Login page (as Kirk Larkin pointed out) and remove the messages from the Login.cshtml
file.