fix: Increase session timeout to 7 days and set SameSite=None for Cloudflare compatibility
All checks were successful
BCards Deployment Pipeline / Run Tests (push) Successful in 4s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 15m22s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Successful in 1m54s
BCards Deployment Pipeline / Deploy to Test (x86 - Local) (push) Has been skipped
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ricardo Carneiro 2025-09-18 12:32:42 -03:00
parent e043c853b1
commit 3d2ce1f8cf
129 changed files with 17648 additions and 17647 deletions

View File

@ -26,7 +26,8 @@
"Bash(sed:*)",
"Bash(./clean-build.sh:*)",
"Bash(git add:*)",
"Bash(scp:*)"
"Bash(scp:*)",
"Bash(ssh:*)"
]
},
"enableAllProjectMcpServers": false

View File

@ -277,11 +277,11 @@ authBuilder.AddCookie(options =>
{
options.LoginPath = "/Auth/Login";
options.LogoutPath = "/Auth/Logout";
options.ExpireTimeSpan = TimeSpan.FromHours(8);
options.ExpireTimeSpan = TimeSpan.FromDays(7); // 7 dias em vez de 8 horas
options.SlidingExpiration = true;
options.Cookie.HttpOnly = true;
options.Cookie.IsEssential = true;
options.Cookie.SameSite = SameSiteMode.Lax;
options.Cookie.SameSite = SameSiteMode.None; // Para Cloudflare
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
});