public class AuthenticationWithProxyUserFilter extends 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_VALIDITY, AUTH_TYPE, CONFIG_PREFIX, COOKIE_DOMAIN, COOKIE_PATH, 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, getRequestURL, getToken, getValidity, init, initializeAuthHandler, initializeSecretProvider, isCustomSignerSecretProvider, isRandomSecretpublic AuthenticationWithProxyUserFilter()
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 AuthenticationFilterfilterChain - the filter chain object.request - the request object.response - the response object.IOExceptionjavax.servlet.ServletExceptionCopyright © 2018 CERN. All Rights Reserved.