set DefaultScheme for authentication

This commit is contained in:
sbwalker
2023-09-21 14:44:57 -04:00
parent 836b174d15
commit c6a8f5305a
3 changed files with 4 additions and 3 deletions

View File

@ -121,8 +121,10 @@ namespace Microsoft.Extensions.DependencyInjection
public static IServiceCollection ConfigureOqtaneCookieOptions(this IServiceCollection services)
{
// note that ConfigureApplicationCookie internally uses an ApplicationScheme of "Identity.Application"
services.ConfigureApplicationCookie(options =>
{
options.Cookie.Domain = "localhost";
options.Cookie.HttpOnly = false;
options.Cookie.SameSite = SameSiteMode.Strict;
options.Cookie.SecurePolicy = CookieSecurePolicy.SameAsRequest;