34 references to ExternalScheme
Identity.ExternalClaims (3)
Pages\Account\Login.cshtml.cs (1)
61await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Pages\Account\Manage\ExternalLogins.cshtml.cs (2)
76await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 105await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
IdentitySample.Mvc (1)
Startup.cs (1)
46o.DefaultSignInScheme = IdentityConstants.ExternalScheme;
Microsoft.AspNetCore.Identity (13)
IdentityCookiesBuilderExtensions.cs (3)
67builder.AddCookie(IdentityConstants.ExternalScheme, o => 69o.Cookie.Name = IdentityConstants.ExternalScheme; 72return new OptionsBuilder<CookieAuthenticationOptions>(builder.Services, IdentityConstants.ExternalScheme);
IdentityServiceCollectionExtensions.cs (4)
57options.DefaultSignInScheme = IdentityConstants.ExternalScheme; 67.AddCookie(IdentityConstants.ExternalScheme, o => 69o.Cookie.Name = IdentityConstants.ExternalScheme; 170=> services.Configure(IdentityConstants.ExternalScheme, configure);
SignInManager.cs (6)
255if (await _schemes.GetSchemeAsync(IdentityConstants.ExternalScheme) != null) 257await Context.SignOutAsync(IdentityConstants.ExternalScheme); 508if (await _schemes.GetSchemeAsync(IdentityConstants.ExternalScheme) != null) 510await Context.SignOutAsync(IdentityConstants.ExternalScheme); 689var auth = await Context.AuthenticateAsync(IdentityConstants.ExternalScheme); 846await Context.SignOutAsync(IdentityConstants.ExternalScheme);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\FunctionalTestsServiceCollectionExtensions.cs (1)
28.AddContosoAuthentication(o => o.SignInScheme = IdentityConstants.ExternalScheme)
Microsoft.AspNetCore.Identity.Test (9)
IdentityOptionsTest.cs (1)
88Assert.Equal("b", options.Get(IdentityConstants.ExternalScheme).Cookie.Name);
SignInManagerTest.cs (8)
538auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 684auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 821auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 1043auth.Setup(s => s.AuthenticateAsync(context, IdentityConstants.ExternalScheme)).ReturnsAsync(authResult); 1074auth.Setup(s => s.AuthenticateAsync(context, IdentityConstants.ExternalScheme)).ReturnsAsync(authResult); 1106auth.Setup(s => s.AuthenticateAsync(context, IdentityConstants.ExternalScheme)).ReturnsAsync(authResult); 1355[IdentityConstants.ExternalScheme] = CreateCookieScheme(IdentityConstants.ExternalScheme),
Microsoft.AspNetCore.Identity.UI (7)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
113await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (2)
130await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 161await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
113await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (2)
130await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 161await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
IdentityServiceCollectionUIExtensions.cs (1)
44o.DefaultSignInScheme = IdentityConstants.ExternalScheme;