Class AuthDynamicFeature
java.lang.Object
org.apache.drill.yarn.appMaster.http.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.
Shameless copy of
AuthDynamicFeature
; the two
implementations should be merged at some point. The difference is only the
log in/log out constant references.
-
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)
-