public boolean authenticationSucceeded()

in src/main/java/org/apache/sling/auth/saml2/impl/AuthenticationHandlerSAML2Impl.java [673:696]


    public boolean authenticationSucceeded(HttpServletRequest request, HttpServletResponse response,
                                           AuthenticationInfo authInfo) {

        /*
         * Note: This method is called if this handler provided credentials which
         * succeeded login into the repository
         */

        // ensure fresh authentication data
        refreshAuthData(request, response, authInfo);

        final boolean result;
        // only consider a resource redirect if this is a POST request to the ACS URL
        if (REQUEST_METHOD.equals(request.getMethod()) &&
                request.getRequestURI().endsWith(this.getAcsPath())) {
            redirectToGotoURL(request, response);
            result = true;
        } else {
            // no redirect, hence continue processing
            result = false;
        }
        // no redirect
        return result;
    }