This commit is contained in:
Luke Taylor 2008-12-15 23:51:46 +00:00
parent 898ef36d02
commit 224c86a0b3

View File

@ -65,7 +65,7 @@ public class CasProcessingFilter extends AbstractProcessingFilter {
public static final String CAS_STATEFUL_IDENTIFIER = "_cas_stateful_"; public static final String CAS_STATEFUL_IDENTIFIER = "_cas_stateful_";
/** /**
* Used to identify a CAS request for a stateless user agent, such as a remoting protocol client (eg * Used to identify a CAS request for a stateless user agent, such as a remoting protocol client (e.g.
* Hessian, Burlap, SOAP etc). Results in a more aggressive caching strategy being used, as the absence of a * Hessian, Burlap, SOAP etc). Results in a more aggressive caching strategy being used, as the absence of a
* <code>HttpSession</code> will result in a new authentication attempt on every request. * <code>HttpSession</code> will result in a new authentication attempt on every request.
*/ */
@ -88,8 +88,9 @@ public class CasProcessingFilter extends AbstractProcessingFilter {
} }
//~ Methods ======================================================================================================== //~ Methods ========================================================================================================
public Authentication attemptAuthentication(final HttpServletRequest request, HttpServletResponse response) public Authentication attemptAuthentication(final HttpServletRequest request, HttpServletResponse response)
throws AuthenticationException { throws AuthenticationException {
final String username = CAS_STATEFUL_IDENTIFIER; final String username = CAS_STATEFUL_IDENTIFIER;
String password = request.getParameter("ticket"); String password = request.getParameter("ticket");
@ -107,8 +108,7 @@ public class CasProcessingFilter extends AbstractProcessingFilter {
/** /**
* Overridden to provide proxying capabilities. * Overridden to provide proxying capabilities.
*/ */
protected boolean requiresAuthentication(final HttpServletRequest request, protected boolean requiresAuthentication(final HttpServletRequest request, final HttpServletResponse response) {
final HttpServletResponse response) {
final String requestUri = request.getRequestURI(); final String requestUri = request.getRequestURI();
if (CommonUtils.isEmpty(this.proxyReceptorUrl) || !requestUri.endsWith(this.proxyReceptorUrl) || this.proxyGrantingTicketStorage == null) { if (CommonUtils.isEmpty(this.proxyReceptorUrl) || !requestUri.endsWith(this.proxyReceptorUrl) || this.proxyGrantingTicketStorage == null) {