secure cookies fix
This commit is contained in:
parent
6dfa49bd01
commit
88b8aa7429
4 changed files with 10 additions and 10 deletions
|
@ -2,6 +2,5 @@ namespace Femto.Api.Auth;
|
|||
|
||||
public class CookieSettings
|
||||
{
|
||||
public bool SameSite { get; set; }
|
||||
public bool Secure { get; set; }
|
||||
}
|
|
@ -44,7 +44,7 @@ internal class SessionAuthenticationHandler(
|
|||
var identity = new ClaimsIdentity(claims, this.Scheme.Name);
|
||||
var principal = new ClaimsPrincipal(identity);
|
||||
|
||||
this.Context.SetSession(result.Session, result.User, cookieOptions.Value);
|
||||
this.Context.SetSession(result.Session, result.User);
|
||||
currentUserContext.CurrentUser = new CurrentUser(
|
||||
result.User.Id,
|
||||
result.User.Username,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue