Skip to content

Commit

Permalink
Revert "NIFI-13379 Replaced use of deprecated com.nimbusds.oauth2.sdk…
Browse files Browse the repository at this point in the history
….http.HTTPResponse method getContentAsJSONObject with API suggested replacement getBodyAsJSONObject."

This reverts commit 627fa06.
  • Loading branch information
mattyb149 committed Jun 14, 2024
1 parent 627fa06 commit 93b27d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private OIDCProviderMetadata retrieveOidcProviderMetadata(final String discovery
throw new IOException("Unable to download OpenId Connect Provider metadata from " + url + ": Status code " + httpResponse.getStatusCode());
}

final JSONObject jsonObject = httpResponse.getBodyAsJSONObject();
final JSONObject jsonObject = httpResponse.getContentAsJSONObject();
return OIDCProviderMetadata.parse(jsonObject);
}

Expand Down

0 comments on commit 93b27d5

Please sign in to comment.