public static void SetCookieSchemes(Microsoft.AspNetCore.Authentication.AuthenticationOptions options) { options.DefaultScheme = Microsoft.AspNetCore.Authentication.Cookies .CookieAuthenticationDefaults.AuthenticationScheme; options.DefaultAuthenticateScheme = Microsoft.AspNetCore.Authentication.Cookies .CookieAuthenticationDefaults.AuthenticationScheme; options.DefaultChallengeScheme = Microsoft.AspNetCore.Authentication.Cookies .CookieAuthenticationDefaults.AuthenticationScheme; options.DefaultForbidScheme = Microsoft.AspNetCore.Authentication.Cookies .CookieAuthenticationDefaults.AuthenticationScheme; options.DefaultSignInScheme = Microsoft.AspNetCore.Authentication.Cookies .CookieAuthenticationDefaults.AuthenticationScheme; options.DefaultSignOutScheme = Microsoft.AspNetCore.Authentication.Cookies .CookieAuthenticationDefaults.AuthenticationScheme; }
private static void ConfigureAuthentication(Microsoft.AspNetCore.Authentication.AuthenticationOptions options) { options.DefaultAuthenticateScheme = "cookie"; options.DefaultSignInScheme = "cookie"; }
private static void DefaultJwtScheme(Microsoft.AspNetCore.Authentication.AuthenticationOptions opt) { opt.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; opt.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; }