Пример #1
0
 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");
   }
 }
Пример #2
0
 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";
   }
 }