|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.ui.SpringSecurityFilter
org.springframework.security.ui.AbstractProcessingFilter
org.codehaus.groovy.grails.plugins.springsecurity.facebook.FacebookAuthenticationProcessingFilter
public class FacebookAuthenticationProcessingFilter
Intercepts j_spring_facebook_security_check to trigger Facebook login.
Field Summary |
---|
Fields inherited from class org.springframework.security.ui.AbstractProcessingFilter |
---|
authenticationDetailsSource, eventPublisher, messages, SPRING_SECURITY_LAST_EXCEPTION_KEY, SPRING_SECURITY_SAVED_REQUEST_KEY |
Fields inherited from class org.springframework.security.ui.SpringSecurityFilter |
---|
logger |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
FacebookAuthenticationProcessingFilter()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
org.springframework.security.Authentication |
attemptAuthentication(javax.servlet.http.HttpServletRequest request)
|
protected FacebookAuthenticationToken |
createToken(String authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String apiKey,
String secretKey)
Build an authentication from a login auth_token . |
protected String |
determineFailureUrl(javax.servlet.http.HttpServletRequest request,
org.springframework.security.AuthenticationException failed)
|
String |
getDefaultFilterProcessesUrl()
|
int |
getOrder()
|
void |
setApiKey(String key)
Dependency injection for the API key. |
void |
setAuthenticationUrlRoot(String authenticationUrlRoot)
Dependency injection for the Facebook auth url root. |
void |
setSecretKey(String key)
Dependency injection for the secret key. |
Methods inherited from class org.springframework.security.ui.AbstractProcessingFilter |
---|
determineTargetUrl, doFilterHttp, getAllowSessionCreation, getAuthenticationDetailsSource, getAuthenticationFailureUrl, getAuthenticationManager, getDefaultTargetUrl, getFilterProcessesUrl, getRememberMeServices, getTargetUrlResolver, obtainFullSavedRequestUrl, onPreAuthentication, onSuccessfulAuthentication, onUnsuccessfulAuthentication, requiresAuthentication, sendRedirect, setAllowSessionCreation, setAlwaysUseDefaultTargetUrl, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureUrl, setAuthenticationManager, setContinueChainBeforeSuccessfulAuthentication, setDefaultTargetUrl, setExceptionMappings, setFilterProcessesUrl, setInvalidateSessionOnSuccessfulAuthentication, setMessageSource, setMigrateInvalidatedSessionAttributes, setRememberMeServices, setServerSideRedirect, setSessionRegistry, setTargetUrlResolver, setUseRelativeContext, successfulAuthentication, unsuccessfulAuthentication |
Methods inherited from class org.springframework.security.ui.SpringSecurityFilter |
---|
destroy, doFilter, init, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FacebookAuthenticationProcessingFilter()
Method Detail |
---|
public org.springframework.security.Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request) throws org.springframework.security.AuthenticationException
attemptAuthentication
in class org.springframework.security.ui.AbstractProcessingFilter
org.springframework.security.AuthenticationException
AbstractProcessingFilter.attemptAuthentication(
javax.servlet.http.HttpServletRequest)
protected FacebookAuthenticationToken createToken(String authToken, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String apiKey, String secretKey)
auth_token
.
authToken
- the auth_token
request
- the http requestresponse
- the http responseapiKey
- the API keysecretKey
- the secret key
protected String determineFailureUrl(javax.servlet.http.HttpServletRequest request, org.springframework.security.AuthenticationException failed)
determineFailureUrl
in class org.springframework.security.ui.AbstractProcessingFilter
AbstractProcessingFilter.determineFailureUrl(
javax.servlet.http.HttpServletRequest, org.springframework.security.AuthenticationException)
public String getDefaultFilterProcessesUrl()
getDefaultFilterProcessesUrl
in class org.springframework.security.ui.AbstractProcessingFilter
AbstractProcessingFilter.getDefaultFilterProcessesUrl()
public int getOrder()
Ordered.getOrder()
public void setApiKey(String key)
key
- the keypublic void setSecretKey(String key)
key
- the keypublic void setAuthenticationUrlRoot(String authenticationUrlRoot)
authenticationUrlRoot
- the url rootpublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.security.ui.AbstractProcessingFilter
Exception
AbstractProcessingFilter.afterPropertiesSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |