init
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user