// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Security.Claims; using Microsoft.Framework.Internal; namespace Microsoft.AspNet.Http.Features.Authentication { public class SignInContext { public SignInContext([NotNull] string authenticationScheme, [NotNull] ClaimsPrincipal principal, IDictionary properties) { AuthenticationScheme = authenticationScheme; Principal = principal; Properties = properties ?? new Dictionary(StringComparer.Ordinal); } public string AuthenticationScheme { get; } public ClaimsPrincipal Principal { get; } public IDictionary Properties { get; } public bool Accepted { get; private set; } public void Accept() { Accepted = true; } } }