1 write to Scheme
Microsoft.AspNetCore.Authentication (1)
AuthenticationHandler.cs (1)
152Scheme = scheme;
88 references to Scheme
Aspire.Dashboard (1)
Authentication\UnsecuredAuthenticationHandler.cs (1)
23return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), Scheme.Name)));
BasicWebSite (2)
BasicAuthenticationHandler.cs (2)
32Scheme.Name)); 37Scheme.Name)));
Microsoft.AspNetCore.Authentication (14)
AuthenticationHandler.cs (8)
99protected virtual string ClaimsIssuer => Options.ClaimsIssuer ?? Scheme.Name; 155Options = OptionsMonitor.Get(Scheme.Name); 209return string.Equals(target, Scheme.Name, StringComparison.Ordinal) 230Logger.AuthenticationSchemeAuthenticated(Scheme.Name); 234Logger.AuthenticationSchemeNotAuthenticated(Scheme.Name); 239Logger.AuthenticationSchemeNotAuthenticatedWithFailure(Scheme.Name, result.Failure.Message); 317Logger.AuthenticationSchemeChallenged(Scheme.Name); 332Logger.AuthenticationSchemeForbidden(Scheme.Name);
RemoteAuthenticationHandler.cs (6)
116var errorContext = new RemoteFailureContext(Context, Scheme, Options, exception) 146var ticketContext = new TicketReceivedContext(Context, Scheme, Options, ticket) 154ticketContext.Properties!.Items[AuthSchemeKey] = Scheme.Name; 206&& string.Equals(Scheme.Name, authenticatedScheme, StringComparison.Ordinal)) 209ticket.Properties, Scheme.Name)); 290var context = new AccessDeniedContext(Context, Scheme, Options)
Microsoft.AspNetCore.Authentication.Certificate (3)
CertificateAuthenticationHandler.cs (3)
106var authenticationFailedContext = new CertificateAuthenticationFailedContext(Context, Scheme, Options) 155var certificateValidatedContext = new CertificateValidatedContext(Context, Scheme, Options) 174var authenticationChallengedContext = new CertificateChallengeContext(Context, Scheme, Options, properties);
Microsoft.AspNetCore.Authentication.Cookies (14)
CookieAuthenticationHandler.cs (14)
103var eventContext = new CookieSlidingExpirationContext(Context, Scheme, Options, ticket, timeElapsed, timeRemaining) 213var context = new CookieValidatePrincipalContext(Context, Scheme, Options, result.Ticket); 226return AuthenticateResult.Success(new AuthenticationTicket(context.Principal, context.Properties, Scheme.Name)); 268Scheme.Name)); 269ticket = new AuthenticationTicket(principal, null, Scheme.Name); 305Scheme, 353ticket = new AuthenticationTicket(principal, null, Scheme.Name); 366Scheme, 377Logger.AuthenticationSchemeSignedIn(Scheme.Name); 397Scheme, 413Logger.AuthenticationSchemeSignedOut(Scheme.Name); 443new RedirectContext<CookieAuthenticationOptions>(Context, Scheme, Options, properties, redirectUri)); 470var redirectContext = new RedirectContext<CookieAuthenticationOptions>(Context, Scheme, Options, properties, BuildRedirectUri(accessDeniedUri)); 484var redirectContext = new RedirectContext<CookieAuthenticationOptions>(Context, Scheme, Options, properties, BuildRedirectUri(loginUri));
Microsoft.AspNetCore.Authentication.Facebook (2)
FacebookHandler.cs (2)
60var context = new OAuthCreatingTicketContext(new ClaimsPrincipal(identity), properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement); 63return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.Google (2)
GoogleHandler.cs (2)
58var context = new OAuthCreatingTicketContext(new ClaimsPrincipal(identity), properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement); 61return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.JwtBearer (6)
JwtBearerHandler.cs (6)
62var messageReceivedContext = new MessageReceivedContext(Context, Scheme, Options); 153var tokenValidatedContext = new TokenValidatedContext(Context, Scheme, Options) 182var authenticationFailedContext = new AuthenticationFailedContext(Context, Scheme, Options) 207var authenticationFailedContext = new AuthenticationFailedContext(Context, Scheme, Options) 278var eventContext = new JwtBearerChallengeContext(Context, Scheme, Options, properties) 351var forbiddenContext = new ForbiddenContext(Context, Scheme, Options);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (2)
MicrosoftAccountHandler.cs (2)
54var context = new OAuthCreatingTicketContext(new ClaimsPrincipal(identity), properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement); 57return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.Negotiate (6)
NegotiateHandler.cs (6)
269var errorContext = new AuthenticationFailedContext(Context, Scheme, Options) { Exception = ex }; 340var ldapContext = new LdapContext(Context, Scheme, Options, Options.LdapSettings) 354authenticatedContext = new AuthenticatedContext(Context, Scheme, Options) 361authenticatedContext = new AuthenticatedContext(Context, Scheme, Options) 374var ticket = new AuthenticationTicket(authenticatedContext.Principal, authenticatedContext.Properties, Scheme.Name); 387var eventContext = new ChallengeContext(Context, Scheme, Options, properties);
Microsoft.AspNetCore.Authentication.OAuth (3)
OAuthHandler.cs (3)
256var context = new OAuthCreatingTicketContext(new ClaimsPrincipal(identity), properties, Context, Scheme, Options, Backchannel, tokens, user.RootElement); 258return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name); 275Context, Scheme, Options,
Microsoft.AspNetCore.Authentication.OpenIdConnect (16)
OpenIdConnectHandler.cs (16)
131var remoteSignOutContext = new RemoteSignOutContext(Context, Scheme, Options, message); 249var redirectContext = new RedirectContext(Context, Scheme, Options, properties) 305Logger.AuthenticationSchemeSignedOut(Scheme.Name); 325var signOut = new RemoteSignOutContext(Context, Scheme, Options, message) 458var redirectContext = new RedirectContext(Context, Scheme, Options, properties) 557var context = new PushedAuthorizationContext(Context, Scheme, Options, parRequest, properties); 926return HandleRequestResult.Success(new AuthenticationTicket(user, properties, Scheme.Name)); 1049return HandleRequestResult.Success(new AuthenticationTicket(principal, properties, Scheme.Name)); 1054return HandleRequestResult.Success(new AuthenticationTicket(principal, properties, Scheme.Name)); 1106return HandleRequestResult.Success(new AuthenticationTicket(principal, properties, Scheme.Name)); 1211var context = new MessageReceivedContext(Context, Scheme, Options, properties) 1234var context = new TokenValidatedContext(Context, Scheme, Options, user, properties) 1279var context = new AuthorizationCodeReceivedContext(Context, Scheme, Options, properties) 1311var context = new TokenResponseReceivedContext(Context, Scheme, Options, user, properties) 1337var context = new UserInformationReceivedContext(Context, Scheme, Options, principal, properties) 1361var context = new AuthenticationFailedContext(Context, Scheme, Options)
Microsoft.AspNetCore.Authentication.Test (6)
DynamicSchemeTests.cs (3)
119id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name)); 125return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
TestHandlers.cs (3)
40id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name)); 42return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
Microsoft.AspNetCore.Authentication.Twitter (3)
TwitterHandler.cs (3)
157var context = new TwitterCreatingTicketContext(Context, Scheme, Options, new ClaimsPrincipal(identity), properties, token.UserId, token.ScreenName, token.Token, token.TokenSecret, user); 160return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name); 179var redirectContext = new RedirectContext<TwitterOptions>(Context, Scheme, Options, properties, twitterAuthenticationEndpoint);
Microsoft.AspNetCore.Authentication.WsFederation (8)
WsFederationHandler.cs (8)
116var redirectContext = new RedirectContext(Context, Scheme, Options, properties) 201var messageReceivedContext = new MessageReceivedContext(Context, Scheme, Options, properties) 233var securityTokenReceivedContext = new SecurityTokenReceivedContext(Context, Scheme, Options, properties) 333var securityTokenValidatedContext = new SecurityTokenValidatedContext(Context, Scheme, Options, principal, properties) 349return HandleRequestResult.Success(new AuthenticationTicket(principal, properties, Scheme.Name)); 356var authenticationFailedContext = new AuthenticationFailedContext(Context, Scheme, Options) 449var redirectContext = new RedirectContext(Context, Scheme, Options, properties) 477var remoteSignOutContext = new RemoteSignOutContext(Context, Scheme, Options, message);