// 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.Security.Claims; using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Authentication; namespace Microsoft.AspNet.Authentication { /// /// Provides context information to middleware providers. /// public class TicketReceivedContext : BaseControlContext { public TicketReceivedContext(HttpContext context, RemoteAuthenticationOptions options, AuthenticationTicket ticket) : base(context) { Options = options; if (ticket != null) { Principal = ticket.Principal; Properties = ticket.Properties; } } public ClaimsPrincipal Principal { get; set; } public AuthenticationProperties Properties { get; set; } public RemoteAuthenticationOptions Options { get; set; } public string ReturnUri { get; set; } } }