src.java.org.codehaus.groovy.grails.plugins.springsecurity.facebook
Class FacebookAuthenticationProcessingFilter

Intercepts j_spring_facebook_security_check to trigger Facebook login.

author:
Burt Beckwith

Field Summary
 String _apiKey
           
 String _authenticationUrlRoot
           
 String _secretKey
           
 
Constructor Summary
FacebookAuthenticationProcessingFilter()
           
 
Method Summary
void afterPropertiesSet()
          
Authentication attemptAuthentication(HttpServletRequest request)
          
FacebookAuthenticationToken createToken(String authToken, HttpServletRequest request, HttpServletResponse response, String apiKey, String secretKey)
           Build an authentication from a login auth_token.
String determineFailureUrl(HttpServletRequest request, 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 setLastUsername(long userId, HttpServletRequest request)
          
void setSecretKey(String key)
           Dependency injection for the secret key.
 

Constructor Detail

FacebookAuthenticationProcessingFilter

FacebookAuthenticationProcessingFilter()


Method Detail

afterPropertiesSet

public void afterPropertiesSet()


attemptAuthentication

public Authentication attemptAuthentication(HttpServletRequest request)


createToken

FacebookAuthenticationToken createToken(String authToken, HttpServletRequest request, HttpServletResponse response, String apiKey, String secretKey)
Build an authentication from a login auth_token.
param:
authToken the auth_token
param:
request the http request
param:
response the http response
param:
apiKey the API key
param:
secretKey the secret key
return:
the auth token


determineFailureUrl

String determineFailureUrl(HttpServletRequest request, AuthenticationException failed)


getDefaultFilterProcessesUrl

public String getDefaultFilterProcessesUrl()


getOrder

public int getOrder()


setApiKey

public void setApiKey(String key)
Dependency injection for the API key.
param:
key the key


setAuthenticationUrlRoot

public void setAuthenticationUrlRoot(String authenticationUrlRoot)
Dependency injection for the Facebook auth url root.
param:
authenticationUrlRoot the url root


setLastUsername

void setLastUsername(long userId, HttpServletRequest request)


setSecretKey

public void setSecretKey(String key)
Dependency injection for the secret key.
param:
key the key