5 writes to Id
Microsoft.AspNetCore.Identity.Test (5)
Passkeys\PasskeyHandlerAssertionTest.cs (1)
987
Id
= "df0a3af4-bd65-440f-82bd-5b839e300dcd",
SignInManagerTest.cs (3)
1420
var user = new PocoUser {
Id
= "foo", UserName = "Foo" };
1451
var user = new PocoUser {
Id
= "foo", UserName = "Foo" };
1482
var user = new PocoUser {
Id
= "foo", UserName = "Foo" };
src\Identity\test\Shared\PocoModel\PocoUser.cs (1)
18
Id
= Guid.NewGuid().ToString();
48 references to Id
Microsoft.AspNetCore.Identity.Test (48)
NoopUserStore.cs (1)
10
return Task.FromResult(user.
Id
);
Passkeys\PasskeyHandlerAssertionTest.cs (4)
443
var newUserId = test.User.
Id
[..^1];
1026
.Setup(m => m.FindByIdAsync(User.
Id
))
1043
.Returns(Task.FromResult(User.
Id
));
1083
"userHandle": {{ToBase64UrlJsonValue(User.
Id
)}}
SecurityStampValidatorTest.cs (8)
79
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
112
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
139
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
180
tid.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
221
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
258
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
296
id.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.
Id
));
325
userManager.Setup(u => u.GetUserIdAsync(user)).ReturnsAsync(user.
Id
).Verifiable();
SignInManagerTest.cs (30)
129
manager.Setup(m => m.FindByIdAsync(user.
Id
)).ReturnsAsync(user);
130
manager.Setup(m => m.GetUserIdAsync(user)).ReturnsAsync(user.
Id
.ToString());
175
SetupSignIn(context, auth, user.
Id
, isPersistent, loginProvider: null, amr: "pwd");
199
SetupSignIn(context, auth, user.
Id
, false, loginProvider: null, amr: "pwd");
262
id.AddClaim(new Claim(ClaimTypes.Name, user.
Id
));
331
It.Is<ClaimsPrincipal>(id => id.FindFirstValue(ClaimTypes.Name) == user.
Id
),
374
SetupSignIn(context, auth, user.
Id
, false, loginProvider);
379
It.Is<ClaimsPrincipal>(id => id.FindFirstValue(ClaimTypes.Name) == user.
Id
),
456
SetupSignIn(context, auth, user.
Id
, isPersistent: false, loginProvider: null);
559
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
560
SetupSignIn(context, auth, user.
Id
, isPersistent);
567
It.Is<ClaimsPrincipal>(i => i.FindFirstValue(ClaimTypes.Name) == user.
Id
601
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
640
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
716
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, externalLogin ? loginProvider : null);
722
&& i.FindFirstValue(ClaimTypes.NameIdentifier) == user.
Id
),
729
SetupSignIn(context, auth, user.
Id
);
765
SetupSignIn(context, auth, user.
Id
, isPersistent, loginProvider);
835
manager.Setup(m => m.GetUserId(claimsPrincipal)).Returns(user.
Id
.ToString());
968
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, externalLogin ? loginProvider : null);
975
&& i.FindFirstValue(ClaimTypes.NameIdentifier) == user.
Id
),
984
SetupSignIn(context, auth, user.
Id
, isPersistent, null, "mfa");
990
It.Is<ClaimsPrincipal>(i => i.FindFirstValue(ClaimTypes.Name) == user.
Id
1028
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, loginProvider: null);
1057
It.Is<ClaimsPrincipal>(i => i.FindFirstValue(ClaimTypes.Name) == user.
Id
1129
id.AddClaim(new Claim(ClaimTypes.Name, user.
Id
));
1333
SetupSignIn(context, auth, user.
Id
, isPersistent: null, loginProvider: null, amr: "pwd");
1387
SetupSignIn(context, auth, user.
Id
, isPersistent: null, loginProvider: null, amr: "pwd");
1587
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
1653
var id = SignInManager<PocoUser>.StoreTwoFactorInfo(user.
Id
, null);
UserClaimsPrincipalFactoryTest.cs (2)
49
userManager.Setup(m => m.GetUserIdAsync(user)).ReturnsAsync(user.
Id
);
98
Assert.Contains(claims, c => c.Type == manager.Options.ClaimsIdentity.UserIdClaimType && c.Value == user.
Id
);
UserManagerTest.cs (3)
250
store.Setup(s => s.FindByIdAsync(user.
Id
, CancellationToken.None)).Returns(Task.FromResult(user)).Verifiable();
254
var result = await userManager.FindByIdAsync(user.
Id
);
2163
.Returns(Task.FromResult(user2.
Id
))