public class OAuthRequestTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GADGET_MAKE_REQUEST_URL |
static String |
GADGET_URL |
static String |
GADGET_URL_APPROVAL_PARAMS |
static String |
GADGET_URL_BAD_OAUTH_URL |
static String |
GADGET_URL_BODY |
static String |
GADGET_URL_HEADER |
static String |
GADGET_URL_NO_KEY |
protected List<LogRecord> |
logRecords |
| Constructor and Description |
|---|
OAuthRequestTest() |
public static final String GADGET_URL
public static final String GADGET_URL_NO_KEY
public static final String GADGET_URL_HEADER
public static final String GADGET_URL_BODY
public static final String GADGET_URL_BAD_OAUTH_URL
public static final String GADGET_URL_APPROVAL_PARAMS
public static final String GADGET_MAKE_REQUEST_URL
public org.apache.shindig.gadgets.oauth.GadgetOAuthTokenStore getOAuthStore(org.apache.shindig.gadgets.oauth.BasicOAuthStore base)
public static SecurityToken getNormalSecurityToken(String owner, String viewer) throws Exception
Exceptionpublic static SecurityToken getNokeySecurityToken(String owner, String viewer) throws Exception
Exceptionpublic static SecurityToken getHeaderSecurityToken(String owner, String viewer) throws Exception
Exceptionpublic static SecurityToken getBodySecurityToken(String owner, String viewer) throws Exception
Exceptionpublic static SecurityToken getSecurityToken(String owner, String viewer, String gadget) throws Exception
Exceptionpublic void testOAuthFlow_withCallbackVerifier()
throws Exception
Exceptionpublic void testOAuthFlow_badCallbackVerifier()
throws Exception
Exceptionpublic void testOAuthFlow_tokenReused()
throws Exception
Exceptionpublic void testOAuthFlow_noSpecNoRequestTokenUrl()
throws Exception
Exceptionpublic void testOAuthFlow_noSpecNoAccessTokenUrl()
throws Exception
Exceptionpublic void testOAuthFlow_noSpecNoApprovalUrl()
throws Exception
Exceptionpublic void testOAuthFlow_noSpecAuthHeader()
throws Exception
Exceptionpublic void testOAuthFlow_noSpecPostBody()
throws Exception
Exceptionpublic void testOAuthFlow_noSpecPostBodyAndHeader()
throws Exception
Exceptionpublic void testOAuthFlow_noSpecInvalidUrl()
throws Exception
Exceptionpublic void testOAuthFlow_noSpecBlankUrl()
throws Exception
Exceptionpublic void testAccessTokenNotUsedForSocialPage()
throws Exception
Exceptionpublic void testAccessTokenOkForSecureOwnerPage()
throws Exception
Exceptionpublic void testParamsInBody_withExtraParams()
throws Exception
Exceptionpublic void testParamsInBody_forGetRequest()
throws Exception
Exceptionpublic void testParamsInBody_forGetRequestStrictSp()
throws Exception
Exceptionpublic void testBrokenRequestTokenResponse()
throws Exception
Exceptionpublic void testBrokenAccessTokenResponse()
throws Exception
Exceptionpublic void testConsumerThrottled_vagueErrors()
throws Exception
Exceptionpublic void testSocialOAuth_tokenRevoked()
throws Exception
Exceptionpublic void testPreapprovedToken_invalid()
throws Exception
Exceptionpublic void testPreapprovedToken_notUsedIfAccessTokenExists()
throws Exception
Exceptionpublic void testSignedFetchParametersSet()
throws Exception
Exceptionpublic void testSignedFetch_authHeader()
throws Exception
Exceptionpublic void testSignedFetchParametersSetProxiedContent()
throws Exception
Exceptionpublic void testGetWithFormEncodedBody()
throws Exception
Exceptionpublic void testGetTamperedRawContent()
throws Exception
Exceptionpublic void testGetTamperedFormContent()
throws Exception
Exceptionpublic void testGetTamperedRemoveRawContent()
throws Exception
Exceptionpublic void testPostTamperedRawContent()
throws Exception
Exceptionpublic void testPostTamperedFormContent()
throws Exception
Exceptionpublic void testPostTamperedRemoveRawContent()
throws Exception
Exceptionpublic void testSignedFetch_unnamedConsumerKey()
throws Exception
Exceptionpublic void testSignedFetch_extraQueryParameters()
throws Exception
Exceptionpublic void testTrickyParametersInQuery()
throws Exception
Exceptionpublic void testTrickyParametersInBody()
throws Exception
Exceptionpublic void testGetWithQueryMultiParam()
throws Exception
Exceptionpublic void testValidParameterCharacters()
throws Exception
Exceptionpublic void testPostWithQueryWithData()
throws Exception
Exceptionpublic void testStripOpenSocialParamsFromQuery()
throws Exception
Exceptionpublic void testStripOAuthParamsFromQuery()
throws Exception
Exceptionpublic void testStripOpenSocialParamsFromBody()
throws Exception
Exceptionpublic void testStripOAuthParamsFromBody()
throws Exception
Exceptionpublic void testAccessTokenExpires_onClient()
throws Exception
Exceptionpublic void testAccessTokenExpires_onClientNoPredictedExpiration()
throws Exception
Exceptionpublic void testAccessTokenExpires_onServer()
throws Exception
Exceptionpublic void testAccessTokenExpired_andRevoked()
throws Exception
Exceptionpublic void testExtraParamsSuppressed()
throws Exception
Exceptionpublic void testCanRetrieveAccessTokenData()
throws Exception
Exceptionpublic void testAccessTokenData_noOAuthParams()
throws Exception
Exceptionpublic void testAccessTokenData_noDirectRequest()
throws Exception
Exceptionpublic void testNextFetchThrowsGadgetException()
throws Exception
Exceptionpublic void testNextFetchThrowsRuntimeException()
throws Exception
Exceptionpublic void testTrustedParamsMisc()
throws Exception
Exceptionpublic void testAlwaysAppendTrustedParams()
throws Exception
ExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.