21 lines
708 B
C#
21 lines
708 B
C#
|
// <copyright file="IAuthenticationService.cs" company="alveus.dev">
|
||
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
||
|
// </copyright>
|
||
|
|
||
|
using Astral.Services.Dtos;
|
||
|
|
||
|
namespace Astral.Services.Interfaces;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Provide methods to authenticate new sessions.
|
||
|
/// </summary>
|
||
|
public interface IAuthenticationService
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Authenticate using username/password pair.
|
||
|
/// </summary>
|
||
|
/// <param name="passwordAuthenticateDto">Instance of <see cref="PasswordAuthenticateDto"/>.</param>
|
||
|
/// <returns>Instance of <see cref="SessionDto"/>.</returns>
|
||
|
Task<SessionDto> AuthenticateSession(PasswordAuthenticateDto passwordAuthenticateDto);
|
||
|
}
|