This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions
Kreta.BusinessLogic/Helpers

View file

@ -0,0 +1,25 @@
using System;
using Kreta.Core.KIR.Domain.Model;
using Kreta.Core.KIR.Factory.Interface;
using Kreta.Core.KIR.Service.Interface;
namespace Kreta.BusinessLogic.Helpers
{
public class KirAuthenticationHelper
{
private IAuthenticationService AuthenticationService { get; }
public KirAuthenticationHelper(IAuthenticationServiceFactory authenticationServiceFactory)
{
if (authenticationServiceFactory == null)
{
throw new ArgumentNullException(nameof(authenticationServiceFactory));
}
AuthenticationService = authenticationServiceFactory.GetAuthenticationService();
}
public AuthHeaderModel Authenticate(AuthHeaderModel authHeaderModel)
=> AuthenticationService.Authenticate(authHeaderModel);
}
}