Skip to content

Commit e49bb4b

Browse files
Updates Graph connector notification token (#867)
1 parent 42315db commit e49bb4b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

dev-proxy-plugins/Mocks/GraphConnectorNotificationPlugin.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,16 @@ private string GetJwtToken()
141141
{
142142
Claims = new Dictionary<string, object>
143143
{
144-
{ "scp", "user_impersonation" },
145-
{ "sub", "l3_roISQU222bULS9yi2k0XpqpOiMz5H3ZACo1GeXA" },
146-
{ "ver", "1.0" },
147-
// Graph Connector Service
148-
{ "appid", "56c1da01-2129-48f7-9355-af6d59d42766" }
144+
// Microsoft Graph Change Tracking
145+
{ "azp", "0bf30f3b-4a52-48df-9a82-234910c4a086" },
146+
// client cert auth
147+
{ "azpacr", "2" },
148+
{ "tid", _graphConnectorConfiguration.Tenant ?? "" },
149+
{ "ver", "2.0" }
150+
149151
},
150152
Expires = DateTime.UtcNow.AddMinutes(60),
151-
Issuer = $"https://sts.windows.net/{_graphConnectorConfiguration.Tenant}/",
153+
Issuer = $"https://login.microsoftonline.com/{_graphConnectorConfiguration.Tenant}/v2.0",
152154
Audience = _graphConnectorConfiguration.Audience,
153155
SigningCredentials = signingCredentials
154156
};

0 commit comments

Comments
 (0)