We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7313320 commit 72bcab6Copy full SHA for 72bcab6
src/AspNet.Security.OAuth.VisualStudio/VisualStudioAuthenticationHandler.cs
@@ -71,7 +71,10 @@ protected override async Task<OAuthTokenResponse> ExchangeCodeAsync([NotNull] OA
71
}
72
73
using var request = new HttpRequestMessage(HttpMethod.Post, Options.TokenEndpoint);
74
+
75
+ // TODO Review whether this is just a copy-paste mistake and is redundant by testing with a real instance
76
request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded"));
77
78
request.Content = new FormUrlEncodedContent(tokenRequestParameters);
79
80
using var response = await Backchannel.SendAsync(request, Context.RequestAborted);
0 commit comments