This is an automated email from the ASF dual-hosted git repository.

mattyb149 pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
     new 93b27d5a28 Revert "NIFI-13379 Replaced use of deprecated 
com.nimbusds.oauth2.sdk.http.HTTPResponse method getContentAsJSONObject with 
API suggested replacement getBodyAsJSONObject."
93b27d5a28 is described below

commit 93b27d5a2880c5863c347472318bc8604855a74d
Author: Matt Burgess <mattyb...@apache.org>
AuthorDate: Fri Jun 14 15:58:01 2024 -0400

    Revert "NIFI-13379 Replaced use of deprecated 
com.nimbusds.oauth2.sdk.http.HTTPResponse method getContentAsJSONObject with 
API suggested replacement getBodyAsJSONObject."
    
    This reverts commit 627fa06866e7f8bca8e2504a8e4027ee6568392d.
---
 .../web/security/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 e83cba3daf..e70f696604 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 @@ public class StandardOidcIdentityProvider implements 
OidcIdentityProvider {
             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);
     }
 

Reply via email to