You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2012/04/10 15:30:39 UTC
svn commit: r1311716 -
/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
Author: sergeyb
Date: Tue Apr 10 13:30:38 2012
New Revision: 1311716
URL: http://svn.apache.org/viewvc?rev=1311716&view=rev
Log:
Minor update to JAASAuthenticationFilter to convert SecurityException to 401
Modified:
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java?rev=1311716&r1=1311715&r2=1311716&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/security/JAASAuthenticationFilter.java Tue Apr 10 13:30:38 2012
@@ -86,10 +86,12 @@ public class JAASAuthenticationFilter im
return null;
} catch (AuthenticationException ex) {
return handleAuthenticationException(ex, m);
+ } catch (SecurityException ex) {
+ return handleAuthenticationException(ex, m);
}
}
- protected Response handleAuthenticationException(AuthenticationException ex, Message m) {
+ protected Response handleAuthenticationException(SecurityException ex, Message m) {
HttpHeaders headers = new HttpHeadersImpl(m);
if (redirectURI != null && isRedirectPossible(headers)) {