mohammadjkhan commented on a change in pull request #6972: Support LDAP
authentication/authorization
URL: https://github.com/apache/incubator-druid/pull/6972#discussion_r332068082
##########
File path:
extensions-core/druid-basic-security/src/main/java/org/apache/druid/security/basic/authorization/endpoint/BasicAuthorizerResource.java
##########
@@ -347,24 +505,59 @@ public Response getCachedSerializedUserMap(
@PathParam("authorizerName") final String authorizerName
)
{
- return resourceHandler.getCachedMaps(authorizerName);
+ return resourceHandler.getCachedUserMaps(authorizerName);
+ }
+
+ /**
+ * @param req HTTP request
+ *
+ * @return serialized groupMapping map
+ */
+ @GET
+ @Path("/db/{authorizerName}/cachedSerializedGroupMappingMap")
+ @Produces(SmileMediaTypes.APPLICATION_JACKSON_SMILE)
+ @Consumes(MediaType.APPLICATION_JSON)
+ @ResourceFilters(BasicSecurityResourceFilter.class)
+ public Response getCachedSerializedGroupMap(
+ @Context HttpServletRequest req,
+ @PathParam("authorizerName") final String authorizerName
+ )
+ {
+ return resourceHandler.getCachedGroupMappingMaps(authorizerName);
}
/**
- * Listen for update notifications for the auth storage
+ * Listen for update notifications for the user auth storage
*/
@POST
- @Path("/listen/{authorizerName}")
+ @Path("/listen/users/{authorizerName}")
Review comment:
Done
----------------------------------------------------------------
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]