Class AuthDynamicFeature

java.lang.Object
org.apache.drill.exec.server.rest.auth.AuthDynamicFeature
All Implemented Interfaces:
javax.ws.rs.container.DynamicFeature

public class AuthDynamicFeature extends Object implements javax.ws.rs.container.DynamicFeature
Implementation of DynamicFeature. As part of the setup it adds the auth check filter AuthDynamicFeature.AuthCheckFilter for resources that need to have user authenticated. If authentication is not done, request is forwarded to login page.
  • Constructor Details

    • AuthDynamicFeature

      public AuthDynamicFeature()
  • Method Details

    • configure

      public void configure(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext configuration)
      Specified by:
      configure in interface javax.ws.rs.container.DynamicFeature
    • isUserLoggedIn

      public static boolean isUserLoggedIn(javax.ws.rs.core.SecurityContext sc)