Skip to content

Commit

Permalink
fix: wrong content type in request (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafvonb authored Aug 30, 2024
1 parent 799cf40 commit 92b868d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private TokenResponse retrieveToken() {

private HttpPost buildRequest() throws URISyntaxException {
HttpPost httpPost = new HttpPost(jwtCredential.authUrl().toURI());
httpPost.addHeader("Content-Type", "application/json");
httpPost.addHeader("Content-Type", "application/x-www-form-urlencoded");
List<NameValuePair> formParams = new ArrayList<>();
formParams.add(new BasicNameValuePair("grant_type", "client_credentials"));
formParams.add(new BasicNameValuePair("client_id", jwtCredential.clientId()));
Expand Down

0 comments on commit 92b868d

Please sign in to comment.