astral-api/Astral.Services/Interfaces/IAuthenticationService.cs

21 lines
708 B
C#
Raw Normal View History

2024-12-14 17:31:17 +01:00
// <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);
}