Class AuthDynamicFeature
java.lang.Object
org.apache.drill.exec.server.rest.auth.AuthDynamicFeature
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext configuration) static boolean
isUserLoggedIn
(javax.ws.rs.core.SecurityContext sc)
-
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 interfacejavax.ws.rs.container.DynamicFeature
-
isUserLoggedIn
public static boolean isUserLoggedIn(javax.ws.rs.core.SecurityContext sc)
-