Skip to content

Commit de3d828

Browse files
authored
Merge pull request #172 from andywu188/dev
Scope cookies to virtual path to avoid contaminating the root path namespace.
2 parents 4356f79 + 60bb118 commit de3d828

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SilkierQuartz/Configuration/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public static IServiceCollection AddSilkierQuartz(
3737
.AddCookie(authenticationOptions.AuthScheme, cfg =>
3838
{
3939
cfg.Cookie.Name = $"sq_authenticationOptions.AuthScheme";
40+
cfg.Cookie.Path = options.VirtualPathRoot;
4041
cfg.LoginPath = $"{options.VirtualPathRoot}{(options.VirtualPathRoot.EndsWith('/') ? "" : "/")}Authenticate/Login";
4142
cfg.AccessDeniedPath = $"{options.VirtualPathRoot}{(options.VirtualPathRoot.EndsWith('/') ? "" : "/")}Authenticate/Login";
4243
cfg.ExpireTimeSpan = TimeSpan.FromDays(7);

0 commit comments

Comments
 (0)