45 references to SignInAsync
CookieSample (1)
Program.cs (1)
44
await context.
SignInAsync
(CookieAuthenticationDefaults.AuthenticationScheme, user);
CookieSessionSample (1)
Startup.cs (1)
42
await context.
SignInAsync
(CookieAuthenticationDefaults.AuthenticationScheme,
Microsoft.AspNetCore.Authentication.BearerToken (4)
BearerTokenExtensions.cs (4)
20
/// Bearer tokens can be obtained by calling <see cref="AuthenticationHttpContextExtensions.
SignInAsync
(AspNetCore.Http.HttpContext, string?, System.Security.Claims.ClaimsPrincipal)" />.
31
/// Bearer tokens can be obtained by calling <see cref="AuthenticationHttpContextExtensions.
SignInAsync
(AspNetCore.Http.HttpContext, string?, System.Security.Claims.ClaimsPrincipal)" />.
43
/// Bearer tokens can be obtained by calling <see cref="AuthenticationHttpContextExtensions.
SignInAsync
(AspNetCore.Http.HttpContext, string?, System.Security.Claims.ClaimsPrincipal)" />.
55
/// Bearer tokens can be obtained by calling <see cref="AuthenticationHttpContextExtensions.
SignInAsync
(AspNetCore.Http.HttpContext, string?, System.Security.Claims.ClaimsPrincipal)" />.
Microsoft.AspNetCore.Authentication.Test (31)
CookieTests.cs (20)
574
context.
SignInAsync
("Cookies",
605
context.
SignInAsync
("Cookies",
633
context.
SignInAsync
("Cookies",
670
context.
SignInAsync
("Cookies",
715
context.
SignInAsync
("Cookies",
748
context.
SignInAsync
("Cookies",
791
context.
SignInAsync
("Cookies",
847
context.
SignInAsync
("Cookies",
906
context.
SignInAsync
("Cookies",
952
context.
SignInAsync
("Cookies",
1004
context.
SignInAsync
("Cookies",
1216
return context.
SignInAsync
("Cookies",
1356
app.Run(context => context.
SignInAsync
(CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(new ClaimsIdentity("whatever"))));
1384
app.Run(context => context.
SignInAsync
("Cookie1", new ClaimsPrincipal(new ClaimsIdentity("whatever"))));
1412
app.Map("/notlogin", signoutApp => signoutApp.Run(context => context.
SignInAsync
("Cookies",
1435
app.Map("/login", signoutApp => signoutApp.Run(context => context.
SignInAsync
("Cookies", new ClaimsPrincipal(new ClaimsIdentity("whatever")))));
1587
await context.
SignInAsync
(
1609
await context.
SignInAsync
(
1632
await context.
SignInAsync
(
1769
await context.
SignInAsync
(
GoogleTests.cs (1)
1213
await Assert.ThrowsAsync<InvalidOperationException>(() => context.
SignInAsync
("Google", new ClaimsPrincipal()));
JwtBearerTests.cs (1)
1220
await Assert.ThrowsAsync<InvalidOperationException>(() => context.
SignInAsync
(JwtBearerDefaults.AuthenticationScheme, new ClaimsPrincipal()));
JwtBearerTests_Handler.cs (1)
1288
await Assert.ThrowsAsync<InvalidOperationException>(() => context.
SignInAsync
(JwtBearerDefaults.AuthenticationScheme, new ClaimsPrincipal()));
MicrosoftAccountTests.cs (1)
405
await Assert.ThrowsAsync<InvalidOperationException>(() => context.
SignInAsync
("Microsoft", new ClaimsPrincipal()));
OpenIdConnect\TestServerBuilder.cs (1)
89
await context.
SignInAsync
(OpenIdConnectDefaults.AuthenticationScheme, new ClaimsPrincipal());
PolicyTests.cs (5)
105
await context.
SignInAsync
("forward", new ClaimsPrincipal(new ClaimsIdentity("whatever")));
161
await context.
SignInAsync
("forward", new ClaimsPrincipal(new ClaimsIdentity("whatever")));
222
await context.
SignInAsync
("forward", new ClaimsPrincipal(new ClaimsIdentity("whatever")));
274
await context.
SignInAsync
("forward", new ClaimsPrincipal(new ClaimsIdentity("whatever")));
331
await context.
SignInAsync
("forward", new ClaimsPrincipal(new ClaimsIdentity("whatever")));
TwitterTests.cs (1)
556
await Assert.ThrowsAsync<InvalidOperationException>(() => context.
SignInAsync
("Twitter", new ClaimsPrincipal()));
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookiePolicyTests.cs (2)
375
return context.
SignInAsync
(CookieAuthenticationDefaults.AuthenticationScheme,
426
return context.
SignInAsync
(CookieAuthenticationDefaults.AuthenticationScheme,
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
1231
await Context.
SignInAsync
(IdentityConstants.TwoFactorUserIdScheme, StoreTwoFactorInfo(userId, loginProvider));
PathSchemeSelection (1)
Controllers\AccountController.cs (1)
42
await HttpContext.
SignInAsync
(CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(new ClaimsIdentity(claims, "Cookies", "user", "role")));
SecurityWebSite (4)
Controllers\AdministrationController.cs (1)
38
await HttpContext.
SignInAsync
("Cookie2", new ClaimsPrincipal(new ClaimsIdentity("Cookie2")));
Controllers\LoginController.cs (3)
19
await HttpContext.
SignInAsync
(scheme: null, new ClaimsPrincipal(identity));
27
await HttpContext.
SignInAsync
(CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(identity));
35
await HttpContext.
SignInAsync
(CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(identity));