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 |
|---|---|
static String |
SESSION_ATTRIBUTE
Name of the session attribute ProviderSignInAttempt instances are indexed under.
|
| Constructor and Description |
|---|
ProviderSignInAttempt(org.springframework.social.connect.Connection<?> connection) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.social.connect.Connection<?> |
getConnection(org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator)
Get the connection to the provider user account the client attempted to sign-in as.
|
public static final String SESSION_ATTRIBUTE
public ProviderSignInAttempt(org.springframework.social.connect.Connection<?> connection)
public org.springframework.social.connect.Connection<?> getConnection(org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator)
provider user profile and 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."connectionFactoryLocator - A ConnectionFactoryLocator used to lookup the connection