DD.WellWorkover.Cloud/AsbCloudApp/Services/IAuthService.cs
Фролов 551c60c4ff Add/refactor services for permissions authorization model.
Rename some fields in DB.permission.
2021-12-11 16:46:04 +05:00

18 lines
533 B
C#

using AsbCloudApp.Data;
using System.Security.Claims;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
public interface IAuthService
{
int ChangePassword(int idUser, string newPassword);
int ChangePassword(string userLogin, string newPassword);
Task<UserTokenDto> LoginAsync(string login,
string password, CancellationToken token = default);
string Refresh(ClaimsPrincipal user);
int Register(UserRegistrationDto userDto);
}
}