Skip to content

Commit ae4bd13

Browse files
committed
Update
1 parent 3df6ec5 commit ae4bd13

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ public class Agentic
2424
private const string Scope = "https://graph.microsoft.com/.default";
2525

2626
[TestMethod]
27+
[Ignore] // ignored due to tenant deauth. See https://github.com/AzureAD/microsoft-identity-web/blob/master/tests/E2E%20Tests/AgentApplications/GetFicAsyncTests.cs#L14
2728
public async Task AgentUserIdentityGetsTokenForGraphTest()
2829
{
2930
await AgentUserIdentityGetsTokenForGraphAsync().ConfigureAwait(false);
3031
}
3132

3233
[TestMethod]
34+
[Ignore] // ignored due to tenant deauth. See https://github.com/AzureAD/microsoft-identity-web/blob/master/tests/E2E%20Tests/AgentApplications/GetFicAsyncTests.cs#L14
3335
public async Task AgentGetsAppTokenForGraphTest()
3436
{
3537
await AgentGetsAppTokenForGraph().ConfigureAwait(false);
@@ -63,11 +65,12 @@ private static async Task AgentUserIdentityGetsTokenForGraphAsync()
6365
.WithClientAssertion((AssertionRequestOptions _) => GetAppCredentialAsync(AgentIdentity))
6466
.Build();
6567

68+
string userFicAssertion = await GetUserFic().ConfigureAwait(false);
69+
6670
var result = await (cca as IByUsernameAndPassword).AcquireTokenByUsernamePassword([Scope], UserUpn, "no_password")
6771
.OnBeforeTokenRequest(
6872
async (request) =>
6973
{
70-
string userFicAssertion = await GetUserFic().ConfigureAwait(false);
7174
request.BodyParameters["user_federated_identity_credential"] = userFicAssertion;
7275
request.BodyParameters["grant_type"] = "user_fic";
7376

0 commit comments

Comments
 (0)