- All Implemented Interfaces:
- org.jasig.cas.client.authentication.GatewayResolver
public class AjaxAwareGatewayStorage
extends Object
implements org.jasig.cas.client.authentication.GatewayResolver
The AjaxAwareGatewayStorage class delegates to a CAS DefaultGatewayResolverImpl with one difference:
if the request is determined to be an ajax request, the next call to hasGatewayedAlready() will return false as the
browser will not be follow the redirect to CAS due to domain origin restrictions.
Note that the mechanism used to detect the ajax request relies on the default jquery behaviour of setting the
X-Requested-With header.