1 write to Scheme
Microsoft.AspNetCore.Authentication (1)
AuthenticationHandler.cs (1)
152
Scheme
= scheme;
42 references to Scheme
Aspire.Dashboard (6)
Api\ApiAuthenticationHandler.cs (3)
43
return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id),
Scheme
.Name));
76
return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id),
Scheme
.Name));
84
return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id),
Scheme
.Name));
Authentication\OtlpCompositeAuthenticationHandler.cs (1)
38
return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id),
Scheme
.Name));
Authentication\UnsecuredAuthenticationHandler.cs (1)
24
return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id),
Scheme
.Name)));
Mcp\McpCompositeAuthenticationHandler.cs (1)
36
return AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id),
Scheme
.Name));
Aspire.Hosting (1)
Dashboard\DashboardServiceAuth.cs (1)
63
authenticationScheme:
Scheme
.Name)));
Microsoft.AspNetCore.Authentication (14)
AuthenticationHandler.cs (8)
99
protected virtual string ClaimsIssuer => Options.ClaimsIssuer ??
Scheme
.Name;
155
Options = OptionsMonitor.Get(
Scheme
.Name);
209
return string.Equals(target,
Scheme
.Name, StringComparison.Ordinal)
230
Logger.AuthenticationSchemeAuthenticated(
Scheme
.Name);
234
Logger.AuthenticationSchemeNotAuthenticated(
Scheme
.Name);
239
Logger.AuthenticationSchemeNotAuthenticatedWithFailure(
Scheme
.Name, result.Failure.Message);
317
Logger.AuthenticationSchemeChallenged(
Scheme
.Name);
332
Logger.AuthenticationSchemeForbidden(
Scheme
.Name);
RemoteAuthenticationHandler.cs (6)
116
var errorContext = new RemoteFailureContext(Context,
Scheme
, Options, exception)
146
var ticketContext = new TicketReceivedContext(Context,
Scheme
, Options, ticket)
154
ticketContext.Properties!.Items[AuthSchemeKey] =
Scheme
.Name;
206
&& string.Equals(
Scheme
.Name, authenticatedScheme, StringComparison.Ordinal))
209
ticket.Properties,
Scheme
.Name));
290
var context = new AccessDeniedContext(Context,
Scheme
, Options)
Microsoft.AspNetCore.Authentication.BearerToken (4)
BearerTokenHandler.cs (4)
27
var messageReceivedContext = new MessageReceivedContext(Context,
Scheme
, Options);
78
Logger.AuthenticationSchemeSignedIn(
Scheme
.Name);
104
=> new(user, properties, $"{
Scheme
.Name}:AccessToken");
113
return new AuthenticationTicket(user, refreshProperties, $"{
Scheme
.Name}:RefreshToken");
Microsoft.AspNetCore.Authentication.Cookies (14)
CookieAuthenticationHandler.cs (14)
103
var eventContext = new CookieSlidingExpirationContext(Context,
Scheme
, Options, ticket, timeElapsed, timeRemaining)
213
var context = new CookieValidatePrincipalContext(Context,
Scheme
, Options, result.Ticket);
226
return AuthenticateResult.Success(new AuthenticationTicket(context.Principal, context.Properties,
Scheme
.Name));
268
Scheme
.Name));
269
ticket = new AuthenticationTicket(principal, null,
Scheme
.Name);
305
Scheme
,
353
ticket = new AuthenticationTicket(principal, null,
Scheme
.Name);
366
Scheme
,
377
Logger.AuthenticationSchemeSignedIn(
Scheme
.Name);
397
Scheme
,
413
Logger.AuthenticationSchemeSignedOut(
Scheme
.Name);
443
new RedirectContext<CookieAuthenticationOptions>(Context,
Scheme
, Options, properties, redirectUri));
470
var redirectContext = new RedirectContext<CookieAuthenticationOptions>(Context,
Scheme
, Options, properties, BuildRedirectUri(accessDeniedUri));
484
var redirectContext = new RedirectContext<CookieAuthenticationOptions>(Context,
Scheme
, Options, properties, BuildRedirectUri(loginUri));
Microsoft.AspNetCore.Authentication.OAuth (3)
OAuthHandler.cs (3)
256
var context = new OAuthCreatingTicketContext(new ClaimsPrincipal(identity), properties, Context,
Scheme
, Options, Backchannel, tokens, user.RootElement);
258
return new AuthenticationTicket(context.Principal!, context.Properties,
Scheme
.Name);
275
Context,
Scheme
, Options,