public class ProviderSignInAttempt extends Object implements Serializable
addConnection(String)
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.Constructor and Description |
---|
ProviderSignInAttempt(Connection<?> connection,
ConnectionFactoryLocator connectionFactoryLocator,
UsersConnectionRepository connectionRepository) |
Modifier and Type | Method and Description |
---|---|
Connection<?> |
getConnection()
Get the connection to the provider user account the client attempted to sign-in as.
|
public ProviderSignInAttempt(Connection<?> connection, ConnectionFactoryLocator connectionFactoryLocator, UsersConnectionRepository connectionRepository)
public Connection<?> getConnection()
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."Copyright © 2016. All rights reserved.