apucher commented on a change in pull request #6613:
URL: https://github.com/apache/incubator-pinot/pull/6613#discussion_r599078262



##########
File path: 
pinot-controller/src/main/java/org/apache/pinot/controller/api/access/AccessControl.java
##########
@@ -64,4 +67,32 @@ default boolean hasAccess(String tableName, AccessType 
accessType, HttpHeaders h
   default boolean hasAccess(AccessType accessType, HttpHeaders httpHeaders, 
String endpointUrl) {
     return true;
   }
+
+  /**
+   * Return workflow info for authenticating users. Not all workflows may be 
supported by the pinot UI implementation.
+   *
+   * @return workflow info for user authentication
+   */
+  default AuthWorkflowInfo getAuthWorkflowInfo() {
+    return new AuthWorkflowInfo(WORKFLOW_NONE);
+  }
+
+  /**
+   * Container for authentication workflow info. May be extended by 
implementations.
+   */
+  class AuthWorkflowInfo {
+    String workflow;
+
+    public AuthWorkflowInfo(String workflow) {
+      this.workflow = workflow;
+    }
+
+    public String getWorkflow() {
+      return workflow;
+    }
+
+    public void setWorkflow(String workflow) {

Review comment:
       It's a POJO. While Pinot isn't consistent on this, most of them seem to 
prefer mutable state




-- 
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to