예제 #1
0
파일: Login.java 프로젝트: sbryzak/security
 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
파일: Login.java 프로젝트: sbryzak/security
 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";
   }
 }