MireaBackend/ApiDto/Responses/AvailableOAuthProvidersResponse.cs

27 lines
777 B
C#
Raw Normal View History

2024-11-04 02:59:51 +03:00
using Mirea.Api.Dto.Common;
using System.ComponentModel.DataAnnotations;
2024-11-04 02:59:51 +03:00
namespace Mirea.Api.Dto.Responses;
/// <summary>
/// Represents the response containing information about available OAuth providers.
/// </summary>
public class AvailableOAuthProvidersResponse
2024-11-04 02:59:51 +03:00
{
/// <summary>
/// Gets or sets the name of the OAuth provider.
/// </summary>
[Required]
2024-11-04 02:59:51 +03:00
public required string ProviderName { get; set; }
/// <summary>
/// Gets or sets the enum value representing the OAuth provider.
/// </summary>
public OAuthProvider Provider { get; set; }
/// <summary>
/// Gets or sets the redirect URL for the OAuth provider's authorization process.
2024-11-04 02:59:51 +03:00
/// </summary>
[Required]
public required string Redirect { get; set; }
2024-11-04 02:59:51 +03:00
}