using System; using System.Collections.Generic; using System.Security.Claims; using Microsoft.AspNet.HttpFeature.Security; namespace Microsoft.AspNet.PipelineCore.Security { public class SignInContext : ISignInContext { public SignInContext(IList identities, IDictionary dictionary) { if (identities == null) { throw new ArgumentNullException("identities"); } Identities = identities; Properties = dictionary ?? new Dictionary(StringComparer.Ordinal); Accepted = new List(); } public IList Identities { get; private set; } public IDictionary Properties { get; private set; } public IList Accepted { get; private set; } public void Accept(string authenticationType, IDictionary description) { Accepted.Add(authenticationType); } } }