using GreenTree.Nachtragsmanagement.Core.Domain.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GreenTree.Nachtragsmanagement.Core.Authentication
{
public interface IUserHelper
{
///
/// Evaluates the current user from request cookies
///
User FromCookies();
///
/// Evaluates the current user from request cookies
///
/// The hours the authCookie will be increased if it exists.
User FromCookies(int expirationHoursIncrease);
///
/// Writes the current user to response cookies
///
/// The current authenticated user.
void ToCookies(User user);
///
/// Writes the current user to response cookies
///
/// The current authenticated user.
/// The cookie expiration date.
void ToCookies(User user, DateTime expirationDate);
///
/// Clears the authentication cookie
///
void ClearCookie();
}
}