Skip to content

Commit

Permalink
Handle query strings
Browse files Browse the repository at this point in the history
  • Loading branch information
kbnhn committed Jan 31, 2025
1 parent 2396f98 commit b6370ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Auth/Utils/AuthHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ private HttpRequestMessage CreateRequestMessage(string uri, string? accessToken,

if (_dPoPKey != null && accessToken != null)
{
var dPopProof = DPoPProofBuilder.CreateDPoPProof(uri, method.ToString(), _dPoPKey, accessToken: accessToken);
string uriWithoutQueryString = uri.Contains("?") ? uri.Split("?")[0] : uri;

var dPopProof = DPoPProofBuilder.CreateDPoPProof(uriWithoutQueryString, method.ToString(), _dPoPKey, accessToken: accessToken);
requestMessage.SetDPoPToken(accessToken, dPopProof);
}
else if (accessToken != null)
Expand Down

0 comments on commit b6370ee

Please sign in to comment.