using System.ComponentModel.DataAnnotations;
namespace Connected.Security.Authentication
{
///
/// Represents the authentication args when authenticating users by their Pin
/// code.
///
///
/// This is slightly different from a authorization
/// used in cases where users have duals security needs, the password for the direct access to
/// the environment, for example by using login screen on the front end and the pin code used
/// by security cards used by alternative authentication protocols.
///
public sealed class PinAuthenticationArgs : AuthenticationArgs
{
///
/// The user's identity. It can contain login name, email or authentication token.
///
[Required]
[MaxLength(128)]
public string User { get; init; }
///
/// The user's Pin code.
///
[Required]
[MaxLength(32)]
public string Pin { get; init; }
}
}