using FrameworkDAL.DTO.User; using GB5Shared.DTO.Framework.Authentication; using GB5Shared.DTO.Framework.Login; using System.Threading; using System.Threading.Tasks; namespace GoodBooks.FrameworkBLL.Authentication { public interface IAuthenticationBLL { Task AuthenticateUser(string ConnectionName, string UserCode, AuthenticationDTO DigestHeader); Task GetAuthorizeUser(string UserCode, string ConnectionName); Task AuthenticateUserByGmail(string ConnectionName, string PrimaryMail, AuthenticationDTO DigestHeader); Task AuthenticateUserViaKeyCloak(string ConnectionName, string UserCode, AuthenticationDTO DigestHeader); /// /// Terminates the caller's session immediately by removing its row from /// MSESSIONSTORE. Subsequent API calls from this session will receive 401. /// Task LogoutAsync(LoginDTO login, CancellationToken ct = default); } }