getConfiguration(String configPrefix,
javax.servlet.FilterConfig filterConfig)
Returns the configuration from Oozie configuration to be used by the authentication filter.
void
init(javax.servlet.FilterConfig filterConfig)
Initialize the filter.
Methods inherited from class org.apache.hadoop.security.authentication.server.AuthenticationFilter
Returns the configuration from Oozie configuration to be used by the authentication filter.
All properties from Oozie configuration which name starts with OOZIE_PREFIX will
be returned. The keys of the returned properties are trimmed from the OOZIE_PREFIX
prefix, for example the Oozie configuration property name 'oozie.authentication.type' will
be just 'type'.
Overrides:
getConfiguration in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
Parameters:
configPrefix - configuration prefix, this parameter is ignored by this implementation.
filterConfig - filter configuration, this parameter is ignored by this implementation.
Returns:
all Oozie configuration properties prefixed with OOZIE_PREFIX, without the
prefix.
Enforces authentication using Hadoop-auth AuthenticationFilter.
This method is overriden to respond to HTTP OPTIONS requests for authenticated calls, regardless
of the target servlet supporting OPTIONS or not and to inject the authenticated user name as
request attribute for Oozie to retrieve the user id.
Specified by:
doFilter in interface javax.servlet.Filter
Overrides:
doFilter in class org.apache.hadoop.security.authentication.server.AuthenticationFilter