21 lines
636 B
C#
21 lines
636 B
C#
using System.Threading.Tasks;
|
|
using Wino.Core.Domain.Entities.Shared;
|
|
using Wino.Core.Domain.Interfaces;
|
|
using Wino.Core.Services;
|
|
|
|
namespace Wino.Core.Authenticators.Base
|
|
{
|
|
public abstract class OutlookAuthenticatorBase : BaseAuthenticator, IOutlookAuthenticator
|
|
{
|
|
protected OutlookAuthenticatorBase(ITokenService tokenService) : base(tokenService)
|
|
{
|
|
}
|
|
|
|
public abstract string ClientId { get; }
|
|
|
|
public abstract Task<TokenInformation> GenerateTokenAsync(MailAccount account, bool saveToken);
|
|
|
|
public abstract Task<TokenInformation> GetTokenAsync(MailAccount account);
|
|
}
|
|
}
|