29 lines
758 B
C#
29 lines
758 B
C#
|
using System;
|
||
|
using System.Security.Claims;
|
||
|
using System.Threading.Tasks;
|
||
|
using BlueWest.Data.Application;
|
||
|
using Microsoft.AspNetCore.Identity;
|
||
|
|
||
|
namespace BlueWest.WebApi.Context.Users;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Auth manager contract interface.
|
||
|
/// </summary>
|
||
|
public interface IAuthManager
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// CreateUserAsync
|
||
|
/// </summary>
|
||
|
/// <param name="registerViewModel"></param>
|
||
|
/// <returns></returns>
|
||
|
Task<IdentityResult> CreateUserAsync(RegisterViewModel registerViewModel);
|
||
|
|
||
|
/// <summary>
|
||
|
/// Does Login
|
||
|
/// </summary>
|
||
|
/// <param name="loginRequest"></param>
|
||
|
/// <returns></returns>
|
||
|
public Task<(bool, SessionTokenUnique, ClaimsIdentity)> GetSessionTokenIdByLoginRequest(LoginRequest loginRequest);
|
||
|
|
||
|
|
||
|
}
|