Pankaj260100 commented on code in PR #15753:
URL: https://github.com/apache/druid/pull/15753#discussion_r1466066355


##########
extensions-core/druid-pac4j/src/main/java/org/apache/druid/security/pac4j/Pac4jFilter.java:
##########
@@ -48,11 +48,12 @@ public class Pac4jFilter implements Filter
 {
   private static final Logger LOGGER = new Logger(Pac4jFilter.class);
 
-  private static final HttpActionAdapter<String, JEEContext> 
NOOP_HTTP_ACTION_ADAPTER = (HttpAction code, JEEContext ctx) -> null;
+  // JEE_HTTP_ACTION_ADAPTER updates the response in the context according to 
the HTTPAction.
+  private static final HttpActionAdapter<Object, JEEContext> 
JEE_HTTP_ACTION_ADAPTER = new JEEHttpActionAdapter();

Review Comment:
   Earlier NOOP_HTTP_ACTION_ADAPTER was working fine because the response in 
the context was getting updated when generating HTTPAction. But now in 4.5.7 
pac4j, it just simply returns the HTTPAction, and we need HTTPActionAdapter to 
update the context.   



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to