org.codehaus.groovy.grails.plugins.springsecurity
Class WithAjaxAuthenticationProcessingFilterEntryPoint
java.lang.Object
org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint
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. |
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 |
AJAX_HEADER
public static final String AJAX_HEADER
- Default value for the name of the Ajax header.
- See Also:
- Constant Field Values
WithAjaxAuthenticationProcessingFilterEntryPoint
public WithAjaxAuthenticationProcessingFilterEntryPoint()
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