aspnetcore/src/Microsoft.AspNet.Http.Features/Authentication/SignOutContext.cs

29 lines
876 B
C#

// 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 Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Http.Authentication
{
public class SignOutContext
{
public SignOutContext([NotNull] string authenticationScheme, IDictionary<string, string> properties)
{
AuthenticationScheme = authenticationScheme;
Properties = properties ?? new Dictionary<string, string>(StringComparer.Ordinal);
}
public string AuthenticationScheme { get; }
public IDictionary<string, string> Properties { get; }
public bool Accepted { get; private set; }
public void Accept()
{
Accepted = true;
}
}
}