Skip to content

Commit c6a706a

Browse files
committed
fix
1 parent ae4bd13 commit c6a706a

File tree

1 file changed

+3
-3
lines changed
  • tests/Microsoft.Identity.Test.Integration.netcore/HeadlessTests

1 file changed

+3
-3
lines changed

tests/Microsoft.Identity.Test.Integration.netcore/HeadlessTests/Agentic.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ private static async Task AgentUserIdentityGetsTokenForGraphAsync()
6565
.WithClientAssertion((AssertionRequestOptions _) => GetAppCredentialAsync(AgentIdentity))
6666
.Build();
6767

68-
string userFicAssertion = await GetUserFic().ConfigureAwait(false);
69-
7068
var result = await (cca as IByUsernameAndPassword).AcquireTokenByUsernamePassword([Scope], UserUpn, "no_password")
7169
.OnBeforeTokenRequest(
7270
async (request) =>
7371
{
72+
string userFicAssertion = await GetUserFic().ConfigureAwait(false);
73+
7474
request.BodyParameters["user_federated_identity_credential"] = userFicAssertion;
7575
request.BodyParameters["grant_type"] = "user_fic";
7676

@@ -116,7 +116,7 @@ private static async Task<string> GetAppCredentialAsync(string fmiPath)
116116
return result.AccessToken;
117117
}
118118

119-
private static async Task<string> GetUserFic()
119+
private static async Task<string> GetUserFic()
120120
{
121121
var cca1 = ConfidentialClientApplicationBuilder
122122
.Create(AgentIdentity)

0 commit comments

Comments
 (0)