1 write to Name
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationScheme.cs (1)
29Name = name;
76 references to Name
Aspire.Dashboard (7)
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)));
DashboardWebApplication.cs (1)
778context.Principal = new ClaimsPrincipal(new ClaimsIdentity(claims, context.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 (16)
AuthenticationHandler.cs (9)
97/// The <c>ClaimsIssuer</c> configured in <typeparamref name="TOptions"/>, if configured, otherwise <see cref="AuthenticationScheme.Name"/>. 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);
AuthenticationMiddleware.cs (2)
52var handler = await handlers.GetHandlerAsync(context, scheme.Name) as IAuthenticationRequestHandler; 62var result = await context.AuthenticateAsync(defaultAuthenticate.Name);
Events\RemoteAuthenticationContext.cs (1)
42public void Success() => Result = HandleRequestResult.Success(new AuthenticationTicket(Principal!, Properties, Scheme.Name));
Events\ResultContext.cs (1)
51public void Success() => Result = HandleRequestResult.Success(new AuthenticationTicket(Principal!, Properties, Scheme.Name));
RemoteAuthenticationHandler.cs (3)
154ticketContext.Properties!.Items[AuthSchemeKey] = Scheme.Name; 206&& string.Equals(Scheme.Name, authenticatedScheme, StringComparison.Ordinal)) 209ticket.Properties, Scheme.Name));
Microsoft.AspNetCore.Authentication.BearerToken (3)
BearerTokenHandler.cs (3)
78Logger.AuthenticationSchemeSignedIn(Scheme.Name); 104=> new(user, properties, $"{Scheme.Name}:AccessToken"); 113return new AuthenticationTicket(user, refreshProperties, $"{Scheme.Name}:RefreshToken");
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateAuthenticationHandler.cs (1)
72Context.Items[CertificateSchemeCacheKeyItem] = Scheme.Name;
Microsoft.AspNetCore.Authentication.Cookies (7)
CookieAuthenticationHandler.cs (7)
226return AuthenticateResult.Success(new AuthenticationTicket(context.Principal, context.Properties, Scheme.Name)); 268Scheme.Name)); 269ticket = new AuthenticationTicket(principal, null, Scheme.Name); 335var ticket = new AuthenticationTicket(signInContext.Principal!, signInContext.Properties, signInContext.Scheme.Name); 353ticket = new AuthenticationTicket(principal, null, Scheme.Name); 377Logger.AuthenticationSchemeSignedIn(Scheme.Name); 413Logger.AuthenticationSchemeSignedOut(Scheme.Name);
Microsoft.AspNetCore.Authentication.Core (14)
AuthenticationSchemeProvider.cs (6)
139if (_schemes.ContainsKey(scheme.Name)) 145if (_schemes.ContainsKey(scheme.Name)) 154_schemes[scheme.Name] = scheme; 168if (_schemes.ContainsKey(scheme.Name)) 170throw new InvalidOperationException("Scheme already exists: " + scheme.Name); 176throw new InvalidOperationException("Scheme already exists: " + scheme.Name);
AuthenticationService.cs (8)
68scheme = defaultScheme?.Name; 113scheme = defaultChallengeScheme?.Name; 136scheme = defaultForbidScheme?.Name; 174scheme = defaultScheme?.Name; 202scheme = defaultScheme?.Name; 220var schemes = string.Join(", ", (await Schemes.GetAllSchemesAsync()).Select(sch => sch.Name)); 238.Select(sch => sch.Name)); 278.Select(sch => sch.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 (1)
NegotiateHandler.cs (1)
371var ticket = new AuthenticationTicket(authenticatedContext.Principal, authenticatedContext.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.OAuth (2)
Events\OAuthCreatingTicketContext.cs (1)
117action.Run(userData, Identity!, Options.ClaimsIssuer ?? Scheme.Name);
OAuthHandler.cs (1)
258return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
OpenIdConnectHandler.cs (5)
310Logger.AuthenticationSchemeSignedOut(Scheme.Name); 927return HandleRequestResult.Success(new AuthenticationTicket(user, properties, Scheme.Name)); 1050return HandleRequestResult.Success(new AuthenticationTicket(principal, properties, Scheme.Name)); 1055return HandleRequestResult.Success(new AuthenticationTicket(principal, properties, Scheme.Name)); 1107return HandleRequestResult.Success(new AuthenticationTicket(principal, properties, Scheme.Name));
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
160return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
349return HandleRequestResult.Success(new AuthenticationTicket(principal, properties, Scheme.Name));
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
1114var providerDisplayName = (await GetExternalAuthenticationSchemesAsync()).FirstOrDefault(p => p.Name == provider)?.DisplayName
Microsoft.AspNetCore.Identity.UI (10)
_generated\17\ExternalLogins_cshtml.g.cs (2)
325$"link-login-button-{provider.Name}" 337provider.Name
_generated\30\Register_cshtml.g.cs (1)
411provider.Name
_generated\49\Login_cshtml.g.cs (1)
472provider.Name
_generated\59\ExternalLogins_cshtml.g.cs (2)
325$"link-login-button-{provider.Name}" 337provider.Name
_generated\7\Login_cshtml.g.cs (1)
459provider.Name
_generated\72\Register_cshtml.g.cs (1)
421provider.Name
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (1)
94.Where(auth => CurrentLogins.All(ul => auth.Name != ul.LoginProvider))
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (1)
94.Where(auth => CurrentLogins.All(ul => auth.Name != ul.LoginProvider))
Microsoft.AspNetCore.Server.HttpSys (1)
AuthenticationHandler.cs (1)
19return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(_requestContext.User!, properties: null, authenticationScheme: _scheme!.Name)));
Microsoft.AspNetCore.Server.IIS (1)
Core\IISServerAuthenticationHandlerInternal.cs (1)
30return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(user, Scheme.Name)));
Microsoft.AspNetCore.Server.IISIntegration (1)
AuthenticationHandler.cs (1)
23return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(_user, _scheme.Name)));