2 writes to Ticket
Microsoft.AspNetCore.Authentication (1)
HandleRequestResult.cs (1)
35return new HandleRequestResult() { Ticket = ticket, Properties = ticket.Properties };
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticateResult.cs (1)
82return new AuthenticateResult() { Ticket = ticket, Properties = ticket.Properties };
18 references to Ticket
Microsoft.AspNetCore.Authentication (3)
AuthenticationHandler.cs (1)
227var ticket = result.Ticket;
RemoteAuthenticationHandler.cs (2)
106ticket = authResult?.Ticket; 203var ticket = result.Ticket;
Microsoft.AspNetCore.Authentication.Abstractions (4)
AuthenticateResult.cs (4)
24[MemberNotNullWhen(true, nameof(Ticket), nameof(Principal), nameof(Properties))] 25public bool Succeeded => Ticket != null; 35public ClaimsPrincipal? Principal => Ticket?.Principal; 68return Success(Ticket!.Clone());
Microsoft.AspNetCore.Authentication.Cookies (4)
CookieAuthenticationHandler.cs (4)
210await CheckForRefreshAsync(result.Ticket); 212Debug.Assert(result.Ticket != null); 213var context = new CookieValidatePrincipalContext(Context, Scheme, Options, result.Ticket); 223RequestRefresh(result.Ticket, context.Principal);
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationService.cs (1)
95return AuthenticateResult.Success(new AuthenticationTicket(principal, result.Properties, result.Ticket!.AuthenticationScheme));
Microsoft.AspNetCore.Authentication.Test (6)
CookieTests.cs (4)
1891if (result?.Ticket?.Principal != null) 1893xml.Add(result.Ticket.Principal.Claims.Select(claim => new XElement("claim", new XAttribute("type", claim.Type), new XAttribute("value", claim.Value)))); 1895if (result?.Ticket?.Properties != null) 1897xml.Add(result.Ticket.Properties.Items.Select(extra => new XElement("extra", new XAttribute("type", extra.Key), new XAttribute("value", extra.Value))));
DynamicSchemeTests.cs (1)
152await res.DescribeAsync(result?.Ticket?.Principal);
PolicyTests.cs (1)
478await res.DescribeAsync(result?.Ticket?.Principal);