org.codehaus.groovy.grails.plugins.springsecurity
Class WithAjaxAuthenticationProcessingFilterEntryPoint

java.lang.Object
  extended by org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint
      extended by org.codehaus.groovy.grails.plugins.springsecurity.WithAjaxAuthenticationProcessingFilterEntryPoint
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.ui.AuthenticationEntryPoint

public class WithAjaxAuthenticationProcessingFilterEntryPoint
extends org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint

AuthenticationProcessingFilterEntryPoint with Ajax login form option if Method Access is denied returns null.

Author:
T.Yamamoto, Burt Beckwith

Field Summary
static String AJAX_HEADER
          Default value for the name of the Ajax header.
 
Constructor Summary
WithAjaxAuthenticationProcessingFilterEntryPoint()
           
 
Method Summary
protected  String determineUrlToUseForThisRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.AuthenticationException exception)
          
 void setAjaxHeader(String header)
          Dependency injection for the Ajax header name; defaults to 'X-Requested-With'.
 void setAjaxLoginFormUrl(String url)
          Dependency injection for the Ajax login form url, e.g.
 
Methods inherited from class org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint
afterPropertiesSet, buildHttpsRedirectUrlForRequest, buildRedirectUrlToLoginPage, commence, getLoginFormUrl, getPortMapper, getPortResolver, isForceHttps, isServerSideRedirect, setForceHttps, setLoginFormUrl, setPortMapper, setPortResolver, setServerSideRedirect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AJAX_HEADER

public static final String AJAX_HEADER
Default value for the name of the Ajax header.

See Also:
Constant Field Values
Constructor Detail

WithAjaxAuthenticationProcessingFilterEntryPoint

public WithAjaxAuthenticationProcessingFilterEntryPoint()
Method Detail

determineUrlToUseForThisRequest

protected String determineUrlToUseForThisRequest(javax.servlet.http.HttpServletRequest request,
                                                 javax.servlet.http.HttpServletResponse response,
                                                 org.springframework.security.AuthenticationException exception)

Overrides:
determineUrlToUseForThisRequest in class org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint
See Also:
AuthenticationProcessingFilterEntryPoint.determineUrlToUseForThisRequest( javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.springframework.security.AuthenticationException)

setAjaxLoginFormUrl

public void setAjaxLoginFormUrl(String url)
Dependency injection for the Ajax login form url, e.g. '/login/authAjax'.

Parameters:
url - the url

setAjaxHeader

public void setAjaxHeader(String header)
Dependency injection for the Ajax header name; defaults to 'X-Requested-With'.

Parameters:
header - the header name