33 references to ExternalScheme
IdentitySample.Mvc (1)
Startup.cs (1)
46
o.DefaultSignInScheme = IdentityConstants.
ExternalScheme
;
IdentitySample.PasskeyConformance (1)
Program.cs (1)
18
options.DefaultSignInScheme = IdentityConstants.
ExternalScheme
;
IdentitySample.PasskeyUI (1)
Program.cs (1)
18
options.DefaultSignInScheme = IdentityConstants.
ExternalScheme
;
Microsoft.AspNetCore.Identity (13)
IdentityCookiesBuilderExtensions.cs (3)
67
builder.AddCookie(IdentityConstants.
ExternalScheme
, o =>
69
o.Cookie.Name = IdentityConstants.
ExternalScheme
;
72
return new OptionsBuilder<CookieAuthenticationOptions>(builder.Services, IdentityConstants.
ExternalScheme
);
IdentityServiceCollectionExtensions.cs (4)
57
options.DefaultSignInScheme = IdentityConstants.
ExternalScheme
;
67
.AddCookie(IdentityConstants.
ExternalScheme
, o =>
69
o.Cookie.Name = IdentityConstants.
ExternalScheme
;
171
=> services.Configure(IdentityConstants.
ExternalScheme
, configure);
SignInManager.cs (6)
308
if (await _schemes.GetSchemeAsync(IdentityConstants.
ExternalScheme
) != null)
310
await Context.SignOutAsync(IdentityConstants.
ExternalScheme
);
849
if (await _schemes.GetSchemeAsync(IdentityConstants.
ExternalScheme
) != null)
851
await Context.SignOutAsync(IdentityConstants.
ExternalScheme
);
1081
var auth = await Context.AuthenticateAsync(IdentityConstants.
ExternalScheme
);
1238
await 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)
88
Assert.Equal("b", options.Get(IdentityConstants.
ExternalScheme
).Cookie.Name);
SignInManagerTest.cs (8)
724
auth.Setup(a => a.SignOutAsync(context, IdentityConstants.
ExternalScheme
, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
979
auth.Setup(a => a.SignOutAsync(context, IdentityConstants.
ExternalScheme
, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
1162
auth.Setup(a => a.SignOutAsync(context, IdentityConstants.
ExternalScheme
, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
1430
auth.Setup(s => s.AuthenticateAsync(context, IdentityConstants.
ExternalScheme
)).ReturnsAsync(authResult);
1461
auth.Setup(s => s.AuthenticateAsync(context, IdentityConstants.
ExternalScheme
)).ReturnsAsync(authResult);
1493
auth.Setup(s => s.AuthenticateAsync(context, IdentityConstants.
ExternalScheme
)).ReturnsAsync(authResult);
1742
[IdentityConstants.
ExternalScheme
] = CreateCookieScheme(IdentityConstants.
ExternalScheme
),
Microsoft.AspNetCore.Identity.UI (7)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
113
await HttpContext.SignOutAsync(IdentityConstants.
ExternalScheme
);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (2)
130
await HttpContext.SignOutAsync(IdentityConstants.
ExternalScheme
);
161
await HttpContext.SignOutAsync(IdentityConstants.
ExternalScheme
);
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
113
await HttpContext.SignOutAsync(IdentityConstants.
ExternalScheme
);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (2)
130
await HttpContext.SignOutAsync(IdentityConstants.
ExternalScheme
);
161
await HttpContext.SignOutAsync(IdentityConstants.
ExternalScheme
);
IdentityServiceCollectionUIExtensions.cs (1)
44
o.DefaultSignInScheme = IdentityConstants.
ExternalScheme
;