2013-04-09 3 views

답변

0

주세요 다음

1) 재정의 CasAuthenticationFilter

2) 자신의 attemptAuthentication 방법 (아래 구현)

3)

public Authentication attemptAuthentication(final HttpServletRequest request, final HttpServletResponse response) 
     throws AuthenticationException, IOException { 
    // Access to HTTP request 
    if (it CAS authentication) { 
     return super.attemptAuthentication(request,response); 
    } else { 
     // provide username, password 
     final UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username, password); 
     authRequest.setDetails(authenticationDetailsSource.buildDetails(request)); 
     return this.getAuthenticationManager().authenticate(authRequest); 
    } 
} 
+0

가 주셔서 감사 필터 구성하여 응답 @ 마이클. 나는 같은 생각을했다. 불행히도 우리의 어플리케이션은 ** org.springframework.security.cas.web.CasAuthenticationFilter **보다는 org.jasig.cas.client.authentication.AuthenticationFilter **를 사용하고 있습니다. 그리고 자시 그 필터가 최종입니다. 나는이 솔루션을 구현할 수 있도록 다른 하나와 교환하는 과정에있다. – user2263804

관련 문제