org.broadleafcommerce.core.web.social
Class BroadleafSocialSignInAdapter

java.lang.Object
  extended by org.broadleafcommerce.core.web.social.BroadleafSocialSignInAdapter
All Implemented Interfaces:
org.springframework.social.connect.web.SignInAdapter

@Component(value="blSocialSignInAdapter")
public class BroadleafSocialSignInAdapter
extends Object
implements org.springframework.social.connect.web.SignInAdapter

The SignInAdapter is exclusively used for provider sign in so a SignInAdapter bean will need to be added to the Spring Social configuration. The signIn() method takes the local application user's user ID normalized as a String. No other credentials are necessary here because by the time this method is called the user will have signed into the provider and their connection with that provider has been used to prove the user's identity. This adapter will then authenticate manually against Spring Security To use: this will automatically be injected into ProviderSignInController, as long as this package is scanned (make sure the following is in applicationContext-servlet.xml)

Author:
elbertbautista
See Also:
ProviderSignInController

Constructor Summary
BroadleafSocialSignInAdapter()
           
 
Method Summary
 String signIn(String username, org.springframework.social.connect.Connection<?> connection, org.springframework.web.context.request.NativeWebRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadleafSocialSignInAdapter

public BroadleafSocialSignInAdapter()
Method Detail

signIn

public String signIn(String username,
                     org.springframework.social.connect.Connection<?> connection,
                     org.springframework.web.context.request.NativeWebRequest request)
Specified by:
signIn in interface org.springframework.social.connect.web.SignInAdapter


Copyright © 2013. All Rights Reserved.