Last active
April 1, 2021 22:07
-
-
Save sar/25cb7c2291c7b9676562aefbe5d6083e to your computer and use it in GitHub Desktop.
CookieAuthenticationScheme defaults
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
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