1 write to Scheme
Microsoft.AspNetCore.Authentication (1)
AuthenticationHandler.cs (1)
152Scheme = scheme;
42 references to Scheme
Aspire.Dashboard (6)
Api\ApiAuthenticationHandler.cs (3)
43return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), Scheme.Name)); 76return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), Scheme.Name)); 84return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), Scheme.Name));
Authentication\OtlpCompositeAuthenticationHandler.cs (1)
38return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), Scheme.Name));
Authentication\UnsecuredAuthenticationHandler.cs (1)
24return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), Scheme.Name)));
Mcp\McpCompositeAuthenticationHandler.cs (1)
36return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), Scheme.Name));
Aspire.Hosting (1)
Dashboard\DashboardServiceAuth.cs (1)
63authenticationScheme: Scheme.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.BearerToken (4)
BearerTokenHandler.cs (4)
27var messageReceivedContext = new MessageReceivedContext(Context, Scheme, Options); 78Logger.AuthenticationSchemeSignedIn(Scheme.Name); 104=> new(user, properties, $"{Scheme.Name}:AccessToken"); 113return new AuthenticationTicket(user, refreshProperties, $"{Scheme.Name}:RefreshToken");
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.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,