11 references to GetClaimsAsync
Microsoft.AspNetCore.Identity.Specification.Tests (8)
IdentitySpecificationTestBase.cs (8)
245
var roleClaims = await manager.
GetClaimsAsync
(role);
246
var safeRoleClaims = await manager.
GetClaimsAsync
(roleSafe);
250
roleClaims = await manager.
GetClaimsAsync
(role);
251
safeRoleClaims = await manager.
GetClaimsAsync
(roleSafe);
255
roleClaims = await manager.
GetClaimsAsync
(role);
256
safeRoleClaims = await manager.
GetClaimsAsync
(roleSafe);
260
roleClaims = await manager.
GetClaimsAsync
(role);
261
safeRoleClaims = await manager.
GetClaimsAsync
(roleSafe);
Microsoft.AspNetCore.Identity.Test (2)
UserClaimsPrincipalFactoryTest.cs (2)
76
roleManager.Setup(m => m.
GetClaimsAsync
(admin)).ReturnsAsync(adminClaims);
77
roleManager.Setup(m => m.
GetClaimsAsync
(local)).ReturnsAsync(localClaims);
Microsoft.Extensions.Identity.Core (1)
UserClaimsPrincipalFactory.cs (1)
150
id.AddClaims(await RoleManager.
GetClaimsAsync
(role).ConfigureAwait(false));