@ProviderType public interface OAuthManager
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthorizedId(HttpServletRequest request,
java.lang.String configId)
Retrieve the user id who has been authorized for the app configured; (The user id is stored in the
encrypted cookie)
|
org.scribe.model.Response |
getOAuthDataWithSharedToken(Resource encryptedTokenResource,
java.lang.String configId,
org.scribe.model.OAuthRequest oauthRequest)
Use a shared token stored on encryptedTokenNode to retrieve protected data with the specified
OAuthRequest |
java.lang.String |
getOAuthDataWithSharedToken(Resource encryptedTokenResource,
java.lang.String configId,
java.lang.String url)
Convenience method; same as:
|
org.scribe.model.Response |
getOAuthDataWithUserToken(SlingHttpServletRequest request,
java.lang.String configId,
org.scribe.model.OAuthRequest oauthRequest)
Use the user's access token (stored on the cookie or user profile jcr node) to retrieve protected data with
the specified
OAuthRequest |
java.lang.String |
getOAuthDataWithUserToken(SlingHttpServletRequest request,
java.lang.String configId,
java.lang.String url)
Convenience method; same as:
|
Provider |
getProvider(java.lang.String configId)
Retrieve the Provider implementation specific within the config with this configId
|
org.scribe.model.Response getOAuthDataWithSharedToken(Resource encryptedTokenResource, java.lang.String configId, org.scribe.model.OAuthRequest oauthRequest) throws java.io.IOException
OAuthRequest
encryptedTokenResource
- configId
- oauthRequest
- java.io.IOException
java.lang.String getOAuthDataWithSharedToken(Resource encryptedTokenResource, java.lang.String configId, java.lang.String url) throws java.io.IOException
OAuthRequest oauthRequest = new OAuthRequest(url, Verb.GET);
getOAuthDataWithSharedToken(encryptedTokenResource, configId, oauthRequest);
encryptedTokenResource
- configId
- url
- java.io.IOException
org.scribe.model.Response getOAuthDataWithUserToken(SlingHttpServletRequest request, java.lang.String configId, org.scribe.model.OAuthRequest oauthRequest) throws java.io.IOException
OAuthRequest
request
- configId
- oauthRequest
- java.io.IOException
java.lang.String getOAuthDataWithUserToken(SlingHttpServletRequest request, java.lang.String configId, java.lang.String url) throws java.io.IOException
OAuthRequest oauthRequest = new OAuthRequest(url, Verb.GET);
getOAuthDataStreamWithUserToken(request, configId, oauthRequest);
request
- configId
- url
- java.io.IOException
Provider getProvider(java.lang.String configId)
configId
- java.lang.String getAuthorizedId(HttpServletRequest request, java.lang.String configId)
request
- configId
- the id of the configurationCopyright © 2010 - 2020 Adobe. All Rights Reserved