|
Spring Social | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.connect.web.ProviderSignInUtils
public class ProviderSignInUtils
Helper methods that support provider user sign-in scenarios.
| Method Summary | |
|---|---|
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(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 session
public static void handlePostSignUp(java.lang.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 session
|
Spring Social | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||