1 write to Name
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationScheme.cs (1)
29
Name
= name;
52 references to Name
Aspire.Dashboard (7)
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
)));
DashboardWebApplication.cs (1)
778
context.Principal = new ClaimsPrincipal(new ClaimsIdentity(claims, context.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 (16)
AuthenticationHandler.cs (9)
97
/// The <c>ClaimsIssuer</c> configured in <typeparamref name="TOptions"/>, if configured, otherwise <see cref="AuthenticationScheme.
Name
"/>.
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
);
AuthenticationMiddleware.cs (2)
52
var handler = await handlers.GetHandlerAsync(context, scheme.
Name
) as IAuthenticationRequestHandler;
62
var result = await context.AuthenticateAsync(defaultAuthenticate.
Name
);
Events\RemoteAuthenticationContext.cs (1)
42
public void Success() => Result = HandleRequestResult.Success(new AuthenticationTicket(Principal!, Properties, Scheme.
Name
));
Events\ResultContext.cs (1)
51
public void Success() => Result = HandleRequestResult.Success(new AuthenticationTicket(Principal!, Properties, Scheme.
Name
));
RemoteAuthenticationHandler.cs (3)
154
ticketContext.Properties!.Items[AuthSchemeKey] = Scheme.
Name
;
206
&& string.Equals(Scheme.
Name
, authenticatedScheme, StringComparison.Ordinal))
209
ticket.Properties, Scheme.
Name
));
Microsoft.AspNetCore.Authentication.BearerToken (3)
BearerTokenHandler.cs (3)
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 (7)
CookieAuthenticationHandler.cs (7)
226
return AuthenticateResult.Success(new AuthenticationTicket(context.Principal, context.Properties, Scheme.
Name
));
268
Scheme.
Name
));
269
ticket = new AuthenticationTicket(principal, null, Scheme.
Name
);
335
var ticket = new AuthenticationTicket(signInContext.Principal!, signInContext.Properties, signInContext.Scheme.
Name
);
353
ticket = new AuthenticationTicket(principal, null, Scheme.
Name
);
377
Logger.AuthenticationSchemeSignedIn(Scheme.
Name
);
413
Logger.AuthenticationSchemeSignedOut(Scheme.
Name
);
Microsoft.AspNetCore.Authentication.Core (14)
AuthenticationSchemeProvider.cs (6)
139
if (_schemes.ContainsKey(scheme.
Name
))
145
if (_schemes.ContainsKey(scheme.
Name
))
154
_schemes[scheme.
Name
] = scheme;
168
if (_schemes.ContainsKey(scheme.
Name
))
170
throw new InvalidOperationException("Scheme already exists: " + scheme.
Name
);
176
throw new InvalidOperationException("Scheme already exists: " + scheme.
Name
);
AuthenticationService.cs (8)
68
scheme = defaultScheme?.
Name
;
113
scheme = defaultChallengeScheme?.
Name
;
136
scheme = defaultForbidScheme?.
Name
;
174
scheme = defaultScheme?.
Name
;
202
scheme = defaultScheme?.
Name
;
220
var schemes = string.Join(", ", (await Schemes.GetAllSchemesAsync()).Select(sch => sch.
Name
));
238
.Select(sch => sch.
Name
));
278
.Select(sch => sch.
Name
));
Microsoft.AspNetCore.Authentication.OAuth (2)
Events\OAuthCreatingTicketContext.cs (1)
117
action.Run(userData, Identity!, Options.ClaimsIssuer ?? Scheme.
Name
);
OAuthHandler.cs (1)
258
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.
Name
);
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
1114
var providerDisplayName = (await GetExternalAuthenticationSchemesAsync()).FirstOrDefault(p => p.
Name
== provider)?.DisplayName
Microsoft.AspNetCore.Server.IISIntegration (1)
AuthenticationHandler.cs (1)
23
return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(_user, _scheme.
Name
)));