Skip to content

Commit

Permalink
Test fix for AccountID being in x.y format (#2337)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgavrilMS authored Jul 21, 2023
1 parent f7a299f commit 8e0bdd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Microsoft.Identity.Web.Test/AccountExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public void ToClaimsPrincipal_ValidAccount_ReturnsClaimsPrincipal()

IAccount account = Substitute.For<IAccount>();
account.Username.Returns(username);
account.HomeAccountId.Returns(new AccountId("identifier", oid, tid));
// AccountId is in the x.y format, MSAL has some DEBUG only checks on that format
account.HomeAccountId.Returns(new AccountId($"{oid}.{tid}", oid, tid));

var claimsIdentityResult = account.ToClaimsPrincipal().Identity as ClaimsIdentity;

Expand Down

0 comments on commit 8e0bdd5

Please sign in to comment.