You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by kd...@apache.org on 2019/06/13 20:52:17 UTC

[nifi-registry] branch master updated: NIFIREG-282 Fixing AccessResource createAccessTokenByTryingAllProviders to use correct provider reference

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

kdoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi-registry.git


The following commit(s) were added to refs/heads/master by this push:
     new 6812c02  NIFIREG-282 Fixing AccessResource createAccessTokenByTryingAllProviders to use correct provider reference
6812c02 is described below

commit 6812c027433787b98192fbd600bdb3238923ee59
Author: Bryan Bende <bb...@apache.org>
AuthorDate: Thu Jun 13 15:32:20 2019 -0400

    NIFIREG-282 Fixing AccessResource createAccessTokenByTryingAllProviders to use correct provider reference
---
 .../main/java/org/apache/nifi/registry/web/api/AccessResource.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/AccessResource.java b/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/AccessResource.java
index e45aad4..2cf3116 100644
--- a/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/AccessResource.java
+++ b/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/AccessResource.java
@@ -164,15 +164,15 @@ public class AccessResource extends ApplicationResource {
         String token = null;
         for (IdentityProvider provider : identityProviderWaterfall) {
 
-            AuthenticationRequest authenticationRequest = identityProvider.extractCredentials(httpServletRequest);
+            AuthenticationRequest authenticationRequest = provider.extractCredentials(httpServletRequest);
             if (authenticationRequest == null) {
                 continue;
             }
             try {
-                token = createAccessToken(identityProvider, authenticationRequest);
+                token = createAccessToken(provider, authenticationRequest);
                 break;
             } catch (final InvalidCredentialsException ice){
-                logger.debug("{}: the supplied client credentials are invalid.", identityProvider.getClass().getSimpleName());
+                logger.debug("{}: the supplied client credentials are invalid.", provider.getClass().getSimpleName());
                 logger.debug("", ice);
             }