@Override
    protected void doCommonFilter(PortletRequest request, PortletResponse response,
            javax.portlet.filter.FilterChain chain) throws IOException, PortletException {

        if (logger.isDebugEnabled()) {
            logger.debug("Checking secure context token: " + SecurityContextHolder.getContext().getAuthentication());
        }

        if (requiresAuthentication((PortletRequest) request)) {
            doAuthenticate((PortletRequest) request, (PortletResponse) response);
        }

        PortletFilterUtils.doFilter(request, response, chain);
    }
@ Override protected void doCommonFilter ( PortletRequest request , PortletResponse response , javax . portlet . filter . FilterChain chain ) throws IOException , PortletException { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Checking secure context token: " + SecurityContextHolder . getContext ( ) . getAuthentication ( ) ) ; } if ( requiresAuthentication ( ( PortletRequest ) request ) ) { doAuthenticate ( ( PortletRequest ) request , ( PortletResponse ) response ) ; } PortletFilterUtils . doFilter ( request , response , chain ) ; }
{@inheritDoc}

Try to authenticate a pre-authenticated user with Spring Security if the user has not yet been authenticated.