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