1 write to Name
Microsoft.AspNetCore.Authentication.Abstractions (1)
109 references to Name
Aspire.Dashboard (2)
BasicWebSite (2)
Certificate.Sample (1)
Identity.ExternalClaims (1)
IdentitySample.Mvc (1)
InProcessWebSite (1)
Microsoft.AspNetCore.Authentication (16)
Microsoft.AspNetCore.Authentication.Cookies (7)
Microsoft.AspNetCore.Authentication.Core (14)
Microsoft.AspNetCore.Authentication.Core.Test (21)
AuthenticationSchemeProviderTests.cs (21)
49Assert.Equal("B", (await provider.GetDefaultForbidSchemeAsync())!.Name);
50Assert.Equal("B", (await provider.GetDefaultAuthenticateSchemeAsync())!.Name);
51Assert.Equal("B", (await provider.GetDefaultChallengeSchemeAsync())!.Name);
52Assert.Equal("B", (await provider.GetDefaultSignInSchemeAsync())!.Name);
53Assert.Equal("B", (await provider.GetDefaultSignOutSchemeAsync())!.Name);
67Assert.Equal("B", (await provider.GetDefaultForbidSchemeAsync())!.Name);
68Assert.Equal("B", (await provider.GetDefaultAuthenticateSchemeAsync())!.Name);
69Assert.Equal("B", (await provider.GetDefaultChallengeSchemeAsync())!.Name);
70Assert.Equal("B", (await provider.GetDefaultSignInSchemeAsync())!.Name);
71Assert.Equal("B", (await provider.GetDefaultSignOutSchemeAsync())!.Name);
87Assert.Equal("signin", scheme!.Name);
103Assert.Equal("challenge", scheme!.Name);
124Assert.Equal("B", (await provider.GetDefaultForbidSchemeAsync())!.Name);
125Assert.Equal("C", (await provider.GetDefaultAuthenticateSchemeAsync())!.Name);
126Assert.Equal("A", (await provider.GetDefaultChallengeSchemeAsync())!.Name);
127Assert.Equal("C", (await provider.GetDefaultSignInSchemeAsync())!.Name);
128Assert.Equal("A", (await provider.GetDefaultSignOutSchemeAsync())!.Name);
227provider.RemoveScheme(scheme2.Name);
231provider.RemoveScheme(scheme2.Name);
235provider.RemoveScheme(scheme1.Name);
239provider.RemoveScheme(scheme3.Name);
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OAuth (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
Microsoft.AspNetCore.Authentication.Test (23)
PolicyTests.cs (6)
375id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name));
377return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
425id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name));
427return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
TestHandlers.cs (6)
40id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name));
42return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
72id.AddClaim(new Claim(ClaimTypes.NameIdentifier, Scheme.Name, ClaimValueTypes.String, Scheme.Name));
74return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authentication.WsFederation (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IISIntegration (1)
SocialSample (1)