Skip to content

Commit eec8942

Browse files
authored
Add the CodeQL suppression in the right place for wstrustrequest parameter. (#5269)
Update WsTrustWebRequestManager.cs
1 parent 78249de commit eec8942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/Microsoft.Identity.Client/WsTrust/WsTrustWebRequestManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ public async Task<WsTrustResponse> GetWsTrustResponseAsync(
100100
{ "SOAPAction", (wsTrustEndpoint.Version == WsTrustVersion.WsTrust2005) ? XmlNamespace.Issue2005.ToString() : XmlNamespace.Issue.ToString() }
101101
};
102102

103-
// CodeQL [SM00417] False Positive: wsTrustRequest is a body parameter for HttpRequest that follows WsTrust protocol
104103
var body = new StringContent(
104+
// CodeQL [SM00417] False Positive: wsTrustRequest is a body parameter for HttpRequest that follows WsTrust protocol
105105
wsTrustRequest,
106106
Encoding.UTF8, "application/soap+xml");
107107

0 commit comments

Comments
 (0)