Skip to content

Instantly share code, notes, and snippets.

@sar
Last active April 1, 2021 22:07
Show Gist options
  • Save sar/25cb7c2291c7b9676562aefbe5d6083e to your computer and use it in GitHub Desktop.
Save sar/25cb7c2291c7b9676562aefbe5d6083e to your computer and use it in GitHub Desktop.
CookieAuthenticationScheme defaults
public void ConfigureServices(IServiceCollection services)
{
services.AddAuthentication(options =>
{
options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
}
.AddCookie();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment