Skip to content

Commit 26b2362

Browse files
author
chassq
authored
Update hosted-with-identity-server.md (#20117)
1 parent 6ed7400 commit 26b2362

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aspnetcore/blazor/security/webassembly/hosted-with-identity-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public class CustomUserFactory
300300
if (user.Identity.IsAuthenticated)
301301
{
302302
var identity = (ClaimsIdentity)user.Identity;
303-
var roleClaims = identity.FindAll(identity.RoleClaimType);
303+
var roleClaims = identity.FindAll(identity.RoleClaimType).ToArray();
304304

305305
if (roleClaims != null && roleClaims.Any())
306306
{

0 commit comments

Comments
 (0)