leventov commented on a change in pull request #4271: Extension points for 
authentication/authorization
URL: https://github.com/apache/incubator-druid/pull/4271#discussion_r224539116
 
 

 ##########
 File path: server/src/main/java/io/druid/server/http/MetadataResource.java
 ##########
 @@ -106,37 +102,14 @@ public String apply(DruidDataSource input)
       );
     }
 
-    final Set<String> dataSourceNamesPostAuth;
+    List<String> datasourceNamesList = 
AuthorizationUtils.filterAuthorizedResources(
+        req,
+        dataSourceNamesPreAuth,
+        AuthorizationUtils.DATASOURCE_READ_RA_GENERATOR,
+        authorizerMapper
+    );
 
-    if (authConfig.isEnabled()) {
 
 Review comment:
   Since this change, the `authConfig` field in `MetadataResource` is unused

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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