using Microsoft.AspNet.Http.Authentication; namespace OAuth.AspNet.AuthServer { /// /// Exposes the security.Challenge environment value as a strong type. /// public class AuthenticationResponseChallenge { /// /// Initializes a new instance of the class /// /// /// public AuthenticationResponseChallenge(string[] authenticationTypes, AuthenticationProperties properties) { AuthenticationTypes = authenticationTypes; Properties = properties ?? new AuthenticationProperties(); } /// /// List of the authentication types that should send a challenge in the response. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "By design")] public string[] AuthenticationTypes { get; private set; } /// /// Dictionary used to store state values about the authentication session. /// public AuthenticationProperties Properties { get; private set; } } }