2021-04-02 17:28:07 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System.Security.Claims;
|
2021-08-11 16:54:42 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-04-02 17:28:07 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IAuthService
|
|
|
|
|
{
|
|
|
|
|
int ChangePassword(int idUser, string newPassword);
|
|
|
|
|
int ChangePassword(string userLogin, string newPassword);
|
2021-08-11 16:54:42 +05:00
|
|
|
|
Task<UserTokenDto> LoginAsync(string login,
|
|
|
|
|
string password, CancellationToken token = default);
|
2021-04-02 17:28:07 +05:00
|
|
|
|
|
|
|
|
|
string Refresh(ClaimsPrincipal user);
|
|
|
|
|
int Register(UserDto userDto);
|
|
|
|
|
}
|
|
|
|
|
}
|