mohammadjkhan commented on a change in pull request #6972: Support LDAP 
authentication/authorization
URL: https://github.com/apache/incubator-druid/pull/6972#discussion_r307892722
 
 

 ##########
 File path: 
extensions-core/druid-basic-security/src/main/java/org/apache/druid/security/basic/authentication/db/cache/CoordinatorPollingBasicAuthenticatorCacheManager.java
 ##########
 @@ -182,6 +210,33 @@ public void handleAuthenticatorUpdate(String 
authenticatorPrefix, byte[] seriali
     return cachedUserMaps.get(authenticatorPrefix);
   }
 
+  @Override
+  public void handleAuthenticatorConfigUpdate(String authenticatorPrefix, 
byte[] serializedConfig)
+  {
+    LOG.debug("Received config cache update for authenticator [%s].", 
authenticatorPrefix);
+    Preconditions.checkState(lifecycleLock.awaitStarted(1, 
TimeUnit.MILLISECONDS));
+    try {
+      cachedConfigs.put(
+          authenticatorPrefix,
+          objectMapper.readValue(
+              serializedConfig,
+              BasicAuthConfig.class
+          )
+      );
+    }
+    catch (Exception e) {
+      LOG.makeAlert(e, "Could not deserialize config received from 
coordinator.").emit();
+    }
+  }
+
+  @Override
 
 Review comment:
   fixed

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to