Spring Social

org.springframework.social.connect.web
Interface ProviderSignInInterceptor<S>

Type Parameters:
S - The service API hosted by the intercepted service provider.

public interface ProviderSignInInterceptor<S>

Listens for service provider sign in events. Allows for custom logic to be executed before and after sign in is performed via a specific service provider. Note that this interceptor only handles events during ProviderSignInController's flow. It does not handle events that take place in the case where ProviderSignInController redirects to the application-defined signup process. In that case, interceptors are not necessary and any post-signup logic can be performed using the connection carried in the ProviderSignInAttempt.

Author:
Craig Walls

Method Summary
 void postSignIn(Connection<S> connection, org.springframework.web.context.request.WebRequest request)
          Called immediately after the sign in is complete.
 void preSignIn(ConnectionFactory<S> connectionFactory, org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> parameters, org.springframework.web.context.request.WebRequest request)
          Called during sign in initiation, immediately before user authorization.
 

Method Detail

preSignIn

void preSignIn(ConnectionFactory<S> connectionFactory,
               org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> parameters,
               org.springframework.web.context.request.WebRequest request)
Called during sign in initiation, immediately before user authorization. May be used to store custom connection attributes in the session before redirecting the user to the provider's site or to contribute parameters to the authorization URL.


postSignIn

void postSignIn(Connection<S> connection,
                org.springframework.web.context.request.WebRequest request)
Called immediately after the sign in is complete. Used to invoke the service API on behalf of the user upon signing in.


Spring Social