org.nuxeo.ecm.platform.ui.web.auth
Class NuxeoAuthenticationFilter
java.lang.Object
org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter
- All Implemented Interfaces:
- Filter
- Direct Known Subclasses:
- NuxeoLauncher
public class NuxeoAuthenticationFilter
- extends Object
- implements Filter
Servlet filter handling Nuxeo authentication (JAAS + EJB).
Also handles logout and identity switch.
- Author:
- Thierry Delprat, Bogdan Stefanescu, Anahide Tchertchian, Florent Guillaume
DEFAULT_START_PAGE
public static final String DEFAULT_START_PAGE
- See Also:
- Constant Field Values
NuxeoAuthenticationFilter
public NuxeoAuthenticationFilter()
destroy
public void destroy()
- Specified by:
destroy
in interface Filter
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter
in interface Filter
- Throws:
IOException
ServletException
getAuthenticator
public NuxeoAuthenticationPlugin getAuthenticator(CachableUserIdentificationInfo ci)
init
public void init(FilterConfig config)
throws ServletException
- Specified by:
init
in interface Filter
- Throws:
ServletException
saveRequestedURLBeforeRedirect
public boolean saveRequestedURLBeforeRedirect(HttpServletRequest httpRequest,
HttpServletResponse httpResponse)
- Save requested URL before redirecting to login form.
Returns true if target url is a valid startup page.
getRequestedUrl
public static String getRequestedUrl(HttpServletRequest httpRequest)
getRequestedPage
public static String getRequestedPage(ServletRequest request)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.