public class CheatingBasicOAuthStore
extends org.apache.shindig.gadgets.oauth.BasicOAuthStore
BasicOAuthStore that "cheats" and returns static values given a service name. It
ignores the App URL on the security token. This is done because in the OpenSocial Explorer, a
gadget URL will change because it contains a hash.
FIXME: Implement a real mechanism that can handle dynamic gadget URLs| Constructor and Description |
|---|
CheatingBasicOAuthStore() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAppUrl(String serviceName)
Override this if you want to cheat at OAuth too.
|
org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo |
getConsumerKeyAndSecret(org.apache.shindig.auth.SecurityToken securityToken,
String serviceName,
net.oauth.OAuthServiceProvider provider) |
convertFromOpenSsl, getAccessTokenAddCount, getAccessTokenLookupCount, getAccessTokenRemoveCount, getConsumerKeyLookupCount, getTokenInfo, initFromConfigString, removeToken, setAuthority, setConsumerKeyAndSecret, setDefaultCallbackUrl, setDefaultKey, setTokenInfopublic org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo getConsumerKeyAndSecret(org.apache.shindig.auth.SecurityToken securityToken,
String serviceName,
net.oauth.OAuthServiceProvider provider)
throws org.apache.shindig.gadgets.GadgetException
getConsumerKeyAndSecret in interface org.apache.shindig.gadgets.oauth.OAuthStoregetConsumerKeyAndSecret in class org.apache.shindig.gadgets.oauth.BasicOAuthStoreorg.apache.shindig.gadgets.GadgetExceptionCopyright © 2013 OpenSocial Foundation. All Rights Reserved.