-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathIAuthServiceClient.cs
More file actions
28 lines (27 loc) · 1.27 KB
/
IAuthServiceClient.cs
File metadata and controls
28 lines (27 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using HwProj.Models.AuthService.DTO;
using HwProj.Models.AuthService.ViewModels;
using System.Threading.Tasks;
using HwProj.Models.Result;
namespace HwProj.AuthService.Client
{
public interface IAuthServiceClient
{
Task<AccountDataDto> GetAccountData(string userId);
Task<AccountDataDto> GetAccountDataByEmail(string email);
Task<AccountDataDto[]> GetAccountsData(string[] userId);
Task<Result<TokenCredentials>> Register(RegisterViewModel model);
Task<Result<TokenCredentials>> Login(LoginViewModel model);
Task<Result<TokenCredentials>> RefreshToken(string userId);
Task<TokenCredentials> GetGuestToken(string courseId);
Task<Result> Edit(EditAccountViewModel model, string userId);
Task<Result> InviteNewLecturer(InviteLecturerViewModel model);
Task<string> FindByEmailAsync(string email);
Task<AccountDataDto[]> GetAllStudents();
Task<User[]> GetAllLecturers();
Task<bool> Ping();
Task<Result> RequestPasswordRecovery(RequestPasswordRecoveryViewModel model);
Task<Result> ResetPassword(ResetPasswordViewModel model);
Task<UrlDto> GetGithubLoginUrl(UrlDto redirectUrl);
Task<GithubCredentials> AuthorizeGithub(string code, string userId);
}
}