org.codehaus.groovy.grails.plugins.springsecurity.facebook
Class FacebookAuthenticationProvider

java.lang.Object
  extended by org.codehaus.groovy.grails.plugins.springsecurity.facebook.FacebookAuthenticationProvider
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.providers.AuthenticationProvider

public class FacebookAuthenticationProvider
extends Object
implements org.springframework.security.providers.AuthenticationProvider, org.springframework.beans.factory.InitializingBean

Finalizes the authentication process by populating the local authorities for the authenticated user.

Author:
Burt Beckwith

Constructor Summary
FacebookAuthenticationProvider()
           
 
Method Summary
 void afterPropertiesSet()
          
 org.springframework.security.Authentication authenticate(org.springframework.security.Authentication authentication)
          
 void setUserDetailsService(org.springframework.security.userdetails.UserDetailsService userDetailsService)
          Dependency injection for the user detail service.
 boolean supports(Class authentication)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacebookAuthenticationProvider

public FacebookAuthenticationProvider()
Method Detail

authenticate

public org.springframework.security.Authentication authenticate(org.springframework.security.Authentication authentication)
                                                         throws org.springframework.security.AuthenticationException

Specified by:
authenticate in interface org.springframework.security.providers.AuthenticationProvider
Throws:
org.springframework.security.AuthenticationException
See Also:
AuthenticationProvider.authenticate( org.springframework.security.Authentication)

setUserDetailsService

public void setUserDetailsService(org.springframework.security.userdetails.UserDetailsService userDetailsService)
Dependency injection for the user detail service.

Parameters:
userDetailsService - the service

supports

public boolean supports(Class authentication)

Specified by:
supports in interface org.springframework.security.providers.AuthenticationProvider
See Also:
AuthenticationProvider.supports(java.lang.Class)

afterPropertiesSet

public void afterPropertiesSet()

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
See Also:
InitializingBean.afterPropertiesSet()