public interface OAuthServiceConsumer
| Modifier and Type | Method and Description |
|---|---|
org.opensocial.Client |
getClient()
Get a OpenSocial client for two-legged oauth
|
org.opensocial.Client |
getClient(org.opensocial.auth.OAuth3LeggedScheme.Token token)
Get a OpenSocial client for two-legged oauth
|
org.opensocial.providers.Provider |
getProvider(String virtualOrganization) |
org.opensocial.auth.OAuth3LeggedScheme.Token |
getToken(String personId)
Return a token for three-legged oauth
|
boolean |
isOAuthUserConsentGranted(String personId) |
void |
oauthCallBack(org.springframework.ui.ModelMap modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Callback when the OAuth provider is returning the accessToken
|
void |
provideOauthConsent(String personId,
String callback,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String virtualOrganization)
The underlying OpenSocial implementations use Oauth in our case.
|
void |
removeOAuthUserConsentGranted(String owner) |
void provideOauthConsent(String personId, String callback, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String virtualOrganization) throws Exception
personId - the unique identifier for the personrequest - the request to perform redirecting if necessaryExceptionorg.opensocial.auth.OAuth3LeggedScheme.Token getToken(String personId)
personId - org.opensocial.Client getClient()
org.opensocial.Client getClient(org.opensocial.auth.OAuth3LeggedScheme.Token token)
token - the accessTokenboolean isOAuthUserConsentGranted(String personId)
void oauthCallBack(org.springframework.ui.ModelMap modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
modelMap - Spring modelMaprequest - httpRequestresponse - httpResponseExceptionorg.opensocial.providers.Provider getProvider(String virtualOrganization)
virtualOrganization - void removeOAuthUserConsentGranted(String owner)
owner - Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.