8 writes to Principal
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
778context.Principal = new ClaimsPrincipal(new ClaimsIdentity(claims, context.Scheme.Name));
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateAuthenticationHandler.cs (1)
175Principal = CreatePrincipal(clientCertificate)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
155Principal = principal
Microsoft.AspNetCore.Authentication.Negotiate (3)
NegotiateHandler.cs (3)
339Principal = user 353Principal = ldapContext.Principal 360Principal = user
Microsoft.AspNetCore.Authentication.OAuth (1)
Events\OAuthCreatingTicketContext.cs (1)
45Principal = principal;
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterCreatingTicketContext.cs (1)
46Principal = principal;
11 references to Principal
Microsoft.AspNetCore.Authentication (2)
Events\ResultContext.cs (2)
49/// Calls success creating a ticket with the <see cref="Principal"/> and <see cref="Properties"/>. 51public void Success() => Result = HandleRequestResult.Success(new AuthenticationTicket(Principal!, Properties, Scheme.Name));
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookHandler.cs (1)
63return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
61return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
57return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.Negotiate (3)
NegotiateHandler.cs (3)
349await LdapAdapter.RetrieveClaimsAsync(ldapContext.LdapSettings, (ldapContext.Principal.Identity as ClaimsIdentity)!, Logger); 353Principal = ldapContext.Principal 371var ticket = new AuthenticationTicket(authenticatedContext.Principal, authenticatedContext.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.OAuth (2)
Events\OAuthCreatingTicketContext.cs (1)
101public ClaimsIdentity? Identity => Principal?.Identity as ClaimsIdentity;
OAuthHandler.cs (1)
258return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
160return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);