public class AuthenticationWithProxyUserFilter
extends org.apache.hadoop.security.authentication.server.AuthenticationFilter
AuthenticationFilter
to
support authorizing proxy user. If the query string
contains doAs parameter, then check the proxy user,
otherwise do the next filter.AUTH_TOKEN_MAX_INACTIVE_INTERVAL, AUTH_TOKEN_VALIDITY, AUTH_TYPE, CONFIG_PREFIX, COOKIE_DOMAIN, COOKIE_PATH, COOKIE_PERSISTENT, SIGNATURE_SECRET, SIGNATURE_SECRET_FILE, SIGNER_SECRET_PROVIDER, SIGNER_SECRET_PROVIDER_ATTRIBUTE
Constructor and Description |
---|
AuthenticationWithProxyUserFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilter(javax.servlet.FilterChain filterChain,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method provide the ability to do pre/post tasks
in filter chain.
|
static String |
getDoAs(javax.servlet.http.HttpServletRequest request)
Get proxy user from query string.
|
constructSecretProvider, createAuthCookie, destroy, doFilter, getAuthenticationHandler, getConfiguration, getConfiguration, getCookieDomain, getCookiePath, getMaxInactiveInterval, getRequestURL, getToken, getValidity, init, initializeAuthHandler, initializeSecretProvider, isCookiePersistent, isCustomSignerSecretProvider, isRandomSecret, verifyTokenType
protected void doFilter(javax.servlet.FilterChain filterChain, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doFilter
in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
filterChain
- the filter chain object.request
- the request object.response
- the response object.IOException
javax.servlet.ServletException
public static String getDoAs(javax.servlet.http.HttpServletRequest request)
request
- the request objectCopyright © 2019 Apache Software Foundation. All Rights Reserved.