Saturday, November 9, 2013

Openam custom modules - stop chaing processing and take the user to error page


protected LoginException handleLoginFailure(String url, String exceptionMessage) {
        try {
            if(url != null){
                super.setLoginFailureURL(url);
            }
        } catch (AuthLoginException e) {
            ThreadLogger.error(moduleName, "Failed to set the loginFailureUrl", e);
        }

        ThreadLogger.message(moduleName, "handleLoginFailure about to throw Exception");

        return new LoginException(exceptionMessage);
    }

No comments:

Post a Comment