added a check to make sure we really wanted to gateway.
This commit is contained in:
Scott Battaglia 2011-09-22 00:55:15 +00:00
parent 5cd43c2139
commit 84aa06629f
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ public class AuthenticationFilter extends AbstractCasFilter {
final String serviceUrl = constructServiceUrl(request, response);
final String ticket = retrieveTicketFromRequest(request);
final boolean wasGatewayed = this.gatewayStorage.hasGatewayedAlready(request, serviceUrl);
final boolean wasGatewayed = this.gateway && this.gatewayStorage.hasGatewayedAlready(request, serviceUrl);
if (CommonUtils.isNotBlank(ticket) || wasGatewayed) {
filterChain.doFilter(request, response);