astral-api/Astral.Services/Dtos/PasswordAuthenticateDto.cs

29 lines
688 B
C#
Raw Permalink Normal View History

2024-12-14 17:31:17 +01:00
// <copyright file="PasswordAuthenticateDto.cs" company="alveus.dev">
2024-12-11 21:36:30 +01:00
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
2024-12-14 17:31:17 +01:00
using Astral.Core.Constants;
2024-12-11 21:36:30 +01:00
namespace Astral.Services.Dtos;
/// <summary>
/// Authentication (login) request dto.
/// </summary>
2024-12-14 17:31:17 +01:00
public class PasswordAuthenticateDto : BaseAuthenticationDto
2024-12-11 21:36:30 +01:00
{
/// <summary>
/// Agent's username.
/// </summary>
public string Username { get; set; }
/// <summary>
/// Agent's password.
/// </summary>
public string Password { get; set; }
2024-12-14 17:31:17 +01:00
/// <summary>
/// The scope for the token.
/// </summary>
public TokenScope Scope { get; set; }
2024-12-11 21:36:30 +01:00
}