20 writes to Principal
Microsoft.AspNetCore.Authentication (1)
Events\TicketReceivedContext.cs (1)
26=> Principal = ticket?.Principal;
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
Events\TokenResponseReceivedContext.cs (1)
20=> Principal = user;
Events\TokenValidatedContext.cs (1)
22=> Principal = principal;
Events\UserInformationReceivedContext.cs (1)
22=> Principal = principal;
OpenIdConnectHandler.cs (1)
1283Principal = user,
Microsoft.AspNetCore.Authentication.Test (14)
OpenIdConnect\OpenIdConnectEventTests.cs (7)
156context.Principal = null; 181context.Principal = null; 266context.Principal = null; 372context.Principal = null; 480context.Principal = null; 591context.Principal = null; 764context.Principal = new ClaimsPrincipal(new ClaimsIdentity(claims, context.Scheme.Name));
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (7)
156context.Principal = null; 181context.Principal = null; 266context.Principal = null; 372context.Principal = null; 480context.Principal = null; 591context.Principal = null; 764context.Principal = new ClaimsPrincipal(new ClaimsIdentity(claims, context.Scheme.Name));
Microsoft.AspNetCore.Authentication.WsFederation (1)
SecurityTokenValidatedContext.cs (1)
21=> Principal = principal;
17 references to Principal
Microsoft.AspNetCore.Authentication (3)
Events\RemoteAuthenticationContext.cs (2)
40/// Calls success creating a ticket with the <see cref="Principal"/> and <see cref="Properties"/>. 42public void Success() => Result = HandleRequestResult.Success(new AuthenticationTicket(Principal!, Properties, Scheme.Name));
RemoteAuthenticationHandler.cs (1)
172await Context.SignInAsync(SignInScheme, ticketContext.Principal!, ticketContext.Properties);
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
OpenIdConnectHandler.cs (5)
793user = tokenValidatedContext.Principal; 818user = authorizationCodeReceivedContext.Principal!; 838user = tokenResponseReceivedContext.Principal; 877user = tokenValidatedContext.Principal!; 1087principal = userInformationReceivedContext.Principal!;
Microsoft.AspNetCore.Authentication.Test (8)
OpenIdConnect\OpenIdConnectEventTests.cs (2)
721Assert.Null(context.Principal); 755Assert.Null(context.Principal);
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (2)
721Assert.Null(context.Principal); 755Assert.Null(context.Principal);
WsFederation\WsFederationTest.cs (2)
332if (context.Principal != null) 334var identity = context.Principal.Identities.Single();
WsFederation\WsFederationTest_Handler.cs (2)
328if (context.Principal != null) 330var identity = context.Principal.Identities.Single();
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
346principal = securityTokenValidatedContext.Principal!;