Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,22 @@ namespace Microsoft.Identity.Test.Integration.HeadlessTests
[TestClass]
public class Agentic
{
const string ClientId = "d15884b6-a447-4dd5-a5a5-a668c49f6300"; // agent app
const string ClientId = "d05619c9-dbf2-4e60-95fd-cc75dd0db451"; // agent app
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try locally, @bgavrilMS ?
This tenant was de-authed the night after my idweb PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did :(. I ended up adding [Ignore] to the tests.

const string TenantId = "31a58c3b-ae9c-4448-9e8f-e9e143e800df";
const string AgentIdentity = "d84da24a-2ea2-42b8-b5ab-8637ec208024";
const string UserUpn = "aui1@msidlabtoint.onmicrosoft.com";
const string AgentIdentity = "edbfbbe7-d240-40dd-aee2-435201dbaa9c";
const string UserUpn = "agentuser1@msidlabtoint.onmicrosoft.com";
private const string TokenExchangeUrl = "api://AzureADTokenExchange/.default";
private const string Scope = "https://graph.microsoft.com/.default";

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

[TestMethod]
[Ignore] // ignored due to tenant deauth. See https://github.com/AzureAD/microsoft-identity-web/blob/master/tests/E2E%20Tests/AgentApplications/GetFicAsyncTests.cs#L14
public async Task AgentGetsAppTokenForGraphTest()
{
await AgentGetsAppTokenForGraph().ConfigureAwait(false);
Expand Down Expand Up @@ -68,6 +70,7 @@ private static async Task AgentUserIdentityGetsTokenForGraphAsync()
async (request) =>
{
string userFicAssertion = await GetUserFic().ConfigureAwait(false);

request.BodyParameters["user_federated_identity_credential"] = userFicAssertion;
request.BodyParameters["grant_type"] = "user_fic";

Expand Down Expand Up @@ -113,7 +116,7 @@ private static async Task<string> GetAppCredentialAsync(string fmiPath)
return result.AccessToken;
}

private static async Task<string> GetUserFic()
private static async Task<string> GetUserFic()
{
var cca1 = ConfidentialClientApplicationBuilder
.Create(AgentIdentity)
Expand Down
Loading