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 duringProviderSignInController's flow. It does not handle events that take place in the case whereProviderSignInControllerredirects 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 theProviderSignInAttempt.- Author:
- Craig Walls
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostSignIn(Connection<S> connection, org.springframework.web.context.request.WebRequest request)Called immediately after the sign in is complete.voidpreSignIn(ConnectionFactory<S> connectionFactory, org.springframework.util.MultiValueMap<String,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<String,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.- Parameters:
connectionFactory- ConnectionFactoryparameters- Maparequest- WebRequest
-
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.- Parameters:
connection- Connectionrequest- WebRequest
-
-