57 references to GetSecurityStampAsync
Microsoft.AspNetCore.Identity (4)
DataProtectorTokenProvider.cs (2)
89
stamp = await manager.
GetSecurityStampAsync
(user);
148
var isEqualsSecurityStamp = stamp == await manager.
GetSecurityStampAsync
(user);
SignInManager.cs (2)
320
(!UserManager.SupportsUserSecurityStamp || securityStamp == await UserManager.
GetSecurityStampAsync
(user));
792
var stamp = await UserManager.
GetSecurityStampAsync
(user);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
SqlStoreTestBase.cs (1)
318
await Assert.ThrowsAsync<InvalidOperationException>(async () => await manager.
GetSecurityStampAsync
(user));
Microsoft.AspNetCore.Identity.Specification.Tests (46)
UserManagerSpecificationTests.cs (46)
272
var stamp = await manager.
GetSecurityStampAsync
(user);
275
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
289
var stamp = await manager.
GetSecurityStampAsync
(user);
291
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
506
var stamp = await manager.
GetSecurityStampAsync
(user);
513
Assert.Equal(stamp, await manager.
GetSecurityStampAsync
(user));
650
var stamp = await manager.
GetSecurityStampAsync
(user);
656
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
670
var stamp = await manager.
GetSecurityStampAsync
(user);
676
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
691
var stamp = await manager.
GetSecurityStampAsync
(user);
696
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
887
var stamp = await manager.
GetSecurityStampAsync
(user);
889
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
996
var stamp = await manager.
GetSecurityStampAsync
(user);
1004
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1021
var stamp = await manager.
GetSecurityStampAsync
(user);
1030
Assert.Equal(stamp, await manager.
GetSecurityStampAsync
(user));
1047
var stamp = await manager.
GetSecurityStampAsync
(user);
1052
Assert.Equal(stamp, await manager.
GetSecurityStampAsync
(user));
1353
var stamp = await manager.
GetSecurityStampAsync
(user);
1357
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1371
var stamp = await manager.
GetSecurityStampAsync
(user);
1376
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1404
var stamp = await manager.
GetSecurityStampAsync
(user);
1410
Assert.Equal(stamp, await manager.
GetSecurityStampAsync
(user));
1438
var stamp = await manager.
GetSecurityStampAsync
(user);
1442
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1456
var stamp = await manager.
GetSecurityStampAsync
(user);
1462
Assert.Equal(stamp, await manager.
GetSecurityStampAsync
(user));
1503
var stamp = await manager.
GetSecurityStampAsync
(user);
1509
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1525
var stamp = await manager.
GetSecurityStampAsync
(user);
1532
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1552
var stamp = await manager.
GetSecurityStampAsync
(user);
1558
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1574
var stamp = await manager.
GetSecurityStampAsync
(user);
1578
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1598
var stamp = await manager.
GetSecurityStampAsync
(user);
1604
Assert.Equal(stamp, await manager.
GetSecurityStampAsync
(user));
1621
var stamp = await manager.
GetSecurityStampAsync
(user);
1628
Assert.Equal(stamp, await manager.
GetSecurityStampAsync
(user));
1647
var stamp = await manager.
GetSecurityStampAsync
(user);
1671
var stamp = await manager.
GetSecurityStampAsync
(user);
1674
Assert.NotEqual(stamp, await manager.
GetSecurityStampAsync
(user));
1849
var stamp = await manager.
GetSecurityStampAsync
(user);
Microsoft.AspNetCore.Identity.Test (3)
UserManagerTest.cs (3)
740
await Assert.ThrowsAsync<NotSupportedException>(() => manager.
GetSecurityStampAsync
(null));
1089
async () => await manager.
GetSecurityStampAsync
(null));
1177
await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.
GetSecurityStampAsync
(null));
Microsoft.Extensions.Identity.Core (3)
UserClaimsPrincipalFactory.cs (1)
91
await UserManager.
GetSecurityStampAsync
(user).ConfigureAwait(false)));
UserManager.cs (2)
2195
return Encoding.Unicode.GetBytes(await
GetSecurityStampAsync
(user).ConfigureAwait(false));
2303
var stamp = await
GetSecurityStampAsync
(user).ConfigureAwait(false);