Skip to content

Commit 7116a7d

Browse files
authored
Pass Client sku and Version to MsalRuntime (#5103)
Pass Client sku and ver via authparam properties
1 parent 9c486cf commit 7116a7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client/Microsoft.Identity.Client.Broker/WamAdapters.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ public static NativeInterop.AuthParameters GetCommonAuthParameters(
191191
authParams.Properties[kvp.Key] = kvp.Value;
192192
}
193193
}
194+
195+
//pass client sku and ver
196+
Dictionary<string, string> msalIdParams = MsalIdHelper.GetMsalIdParameters(logger);
197+
authParams.Properties["msal_client_sku"] = msalIdParams[MsalIdParameter.Product];
198+
authParams.Properties["msal_client_ver"] = msalIdParams[MsalIdParameter.Version];
194199

195200
//pass extra query parameters if there are any
196201
if (authenticationRequestParameters.ExtraQueryParameters != null)

0 commit comments

Comments
 (0)