public class ProviderSignInUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Connection<?> |
getConnection(org.springframework.web.context.request.RequestAttributes request)
Get the connection to the provider user the client attempted to sign-in as.
|
static void |
handlePostSignUp(String userId,
org.springframework.web.context.request.RequestAttributes request)
Add the connection to the provider user the client attempted to sign-in with to the new local user's set of connections.
|
public static Connection<?> getConnection(org.springframework.web.context.request.RequestAttributes request)
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."
Returns null if no provider sign-in has been attempted for the current user session.request
- the current request attributes, used to extract sign-in attempt information from the current user sessionpublic static void handlePostSignUp(String userId, org.springframework.web.context.request.RequestAttributes request)
request
- the current request attributes, used to extract sign-in attempt information from the current user sessionCopyright © 2016. All rights reserved.