Skip to content

Commit

Permalink
Add secure policy
Browse files Browse the repository at this point in the history
  • Loading branch information
dtagt committed Feb 14, 2024
1 parent 212001c commit 7787912
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Valghalla.Integration/DependencyInjectionExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static IServiceCollection AddSaml2Auth(this IServiceCollection services)
options.LoginPath = new PathString("/api/auth/login");
options.SlidingExpiration = true;
options.Cookie.SameSite = SameSiteMode.None;
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;

options.Events.OnRedirectToLogin = async (c) =>
{
Expand Down

0 comments on commit 7787912

Please sign in to comment.