@Override public void onSessionCreated(SamlSession samlSession) { completeAuthentication(samlSession); } });
public SamlAuthenticator(final HttpFacade facade, final SamlDeployment deployment, final SamlSessionStore sessionStore) { this.handler = createAuthenticationHandler(facade, deployment, sessionStore); }
protected boolean executeAuthenticator(Request request, HttpServletResponse response, CatalinaHttpFacade facade, SamlDeployment deployment, SamlAuthenticator authenticator) { AuthOutcome outcome = authenticator.authenticate(); if (outcome == AuthOutcome.AUTHENTICATED) { log.trace("AUTHENTICATED"); if (facade.isEnded()) { return false; } return true; } if (outcome == AuthOutcome.LOGGED_OUT) { logoutInternal(request); if (deployment.getLogoutPage() != null) { forwardToLogoutPage(request, response, deployment); } log.trace("Logging OUT"); return false; } AuthChallenge challenge = authenticator.getChallenge(); if (challenge != null) { log.trace("challenge"); challenge.challenge(facade); } return false; }
protected SamlAuthenticationHandler createAuthenticationHandler(HttpFacade facade, SamlDeployment deployment, SamlSessionStore sessionStore) { if (EcpAuthenticationHandler.canHandle(facade)) { return EcpAuthenticationHandler.create(facade, deployment, sessionStore); } // defaults to the web browser sso profile return createBrowserHandler(facade, deployment, sessionStore); }