|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.connect.signin.web.ProviderSignInUtils
public class ProviderSignInUtils
Helper methods that support provider user sign-in scenarios.
Method Summary | |
---|---|
static Connection<?> |
getConnection(WebRequest request)
Get the connection to the provider user the client attempted to sign-in as. |
static void |
handlePostSignUp(WebRequest 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(WebRequest 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 web request, used to extract sign-in attempt information from the current user sessionpublic static void handlePostSignUp(WebRequest request)
request
- the current web request, used to extract sign-in attempt information from the current user session
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |