From e49bb4bb33e87093772f1e58e88145726bb495dc Mon Sep 17 00:00:00 2001 From: Waldek Mastykarz Date: Mon, 2 Sep 2024 16:30:07 +0200 Subject: [PATCH] Updates Graph connector notification token (#867) --- .../Mocks/GraphConnectorNotificationPlugin.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/dev-proxy-plugins/Mocks/GraphConnectorNotificationPlugin.cs b/dev-proxy-plugins/Mocks/GraphConnectorNotificationPlugin.cs index 68a0bbab..602cbba3 100644 --- a/dev-proxy-plugins/Mocks/GraphConnectorNotificationPlugin.cs +++ b/dev-proxy-plugins/Mocks/GraphConnectorNotificationPlugin.cs @@ -141,14 +141,16 @@ private string GetJwtToken() { Claims = new Dictionary { - { "scp", "user_impersonation" }, - { "sub", "l3_roISQU222bULS9yi2k0XpqpOiMz5H3ZACo1GeXA" }, - { "ver", "1.0" }, - // Graph Connector Service - { "appid", "56c1da01-2129-48f7-9355-af6d59d42766" } + // Microsoft Graph Change Tracking + { "azp", "0bf30f3b-4a52-48df-9a82-234910c4a086" }, + // client cert auth + { "azpacr", "2" }, + { "tid", _graphConnectorConfiguration.Tenant ?? "" }, + { "ver", "2.0" } + }, Expires = DateTime.UtcNow.AddMinutes(60), - Issuer = $"https://sts.windows.net/{_graphConnectorConfiguration.Tenant}/", + Issuer = $"https://login.microsoftonline.com/{_graphConnectorConfiguration.Tenant}/v2.0", Audience = _graphConnectorConfiguration.Audience, SigningCredentials = signingCredentials };