Skip to content

Commit

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

This closes apache#8944

Signed-off-by: Mike Thomsen <mthomsen@apache.org>
  • Loading branch information
dan-s1 authored and MikeThomsen committed Jun 13, 2024
1 parent b1500ad commit a8e8b6a
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.getContentAsJSONObject();
final JSONObject jsonObject = httpResponse.getBodyAsJSONObject();
return OIDCProviderMetadata.parse(jsonObject);
}

Expand Down

0 comments on commit a8e8b6a

Please sign in to comment.