@Override
public void authenticate(HttpServletRequest request, HttpServletResponse response, FilterChain chain,
String authStateValue, String returnUri) throws IOException, ServletException {
LOG.debug("Hitting SAML Authenticator filter");
if (isSAMLResponse(request)) {
Response samlResponse = extractSamlResponse(request);
SAMLAuthenticatedPrincipal principal = (SAMLAuthenticatedPrincipal) openSAMLContext.assertionConsumer().consume(samlResponse);
if (enrichPricipal) {
//need to save the Principal and the AuthState somewhere
request.getSession().setAttribute(PRINCIPAL_FROM_SAML, principal);
request.getSession().setAttribute(RELAY_STATE_FROM_SAML, getSAMLRelayState(request));