Let's say I use the following:
services.AddIdentity<User, UserRole>()
.AddEntityFrameworkStores<AppDbContext>();
What is the authentication scheme name being set? I didn't find this in any documentation. I tried looking for a class with the names IdentityAuthenticationDefaults and IdentityDefaults but found nothing. I have tried "Cookies" but it isn't set to this. The application works well, so there is surely some scheme name set.
IdentityConstantsis the class you're looking for here. Here's the relevant part for your specific question (xmldocs removed):IdentityConstants.ApplicationSchemeis used as theDefaultAuthenticateScheme- the value itself ends up beingIdentity.Application.The schemes get set up here:
Here are links to the API reference docs:
IdentityConstantsIdentityConstants.ApplicationScheme