public void cancel() { if (dialogueId != null) { dialogueManager.attachDialogue(dialogueId); samlIdentityProviderApi.authenticationFailed( (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse()); dialogueManager.detachDialogue(); } else { throw new IllegalStateException("cancel method can only be called during a SAML login"); } }
public String login() { identity.localLogin(userName); if (dialogueId != null) { dialogueManager.attachDialogue(dialogueId); samlIdentityProviderApi.authenticationSucceeded( (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse()); dialogueManager.detachDialogue(); return "SAML_LOGIN"; } else { return "LOCAL_LOGIN"; } }