From a8e8b6a86b5293858423fa068db65dc8b0d44975 Mon Sep 17 00:00:00 2001 From: dan-s1 Date: Mon, 10 Jun 2024 15:56:32 +0000 Subject: [PATCH] NIFI-13379 Replaced use of deprecated com.nimbusds.oauth2.sdk.http.HTTPResponse method getContentAsJSONObject with API suggested replacement getBodyAsJSONObject. This closes #8944 Signed-off-by: Mike Thomsen --- .../authentication/oidc/StandardOidcIdentityProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/oidc/StandardOidcIdentityProvider.java b/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/oidc/StandardOidcIdentityProvider.java index 1726f23b3729..8adeb00ae577 100644 --- a/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/oidc/StandardOidcIdentityProvider.java +++ b/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/oidc/StandardOidcIdentityProvider.java @@ -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); }