public class ProviderSignInAttempt extends Object implements Serializable
addConnection(String,ConnectionFactoryLocator,UsersConnectionRepository)post-signup to establish a connection between a new user account and the provider account. For the latter, existing users should sign-in using their local application credentials and formally connect to the provider they also wish to authenticate with.
|Modifier and Type||Field and Description|
Name of the session attribute ProviderSignInAttempt instances are indexed under.
|Constructor and Description|
|Modifier and Type||Method and Description|
Get the connection to the provider user account the client attempted to sign-in as.
public static final String SESSION_ATTRIBUTE
public ProviderSignInAttempt(Connection<?> connection)
public Connection<?> getConnection(ConnectionFactoryLocator connectionFactoryLocator)
provider user profileand use that to pre-populate a local user registration/signup form. You can also lookup the id of the provider and use that to display a provider-specific user-sign-in-attempt flash message e.g. "Your Facebook Account is not connected to a Local account. Please sign up."
ConnectionFactoryLocatorused to lookup the connection