On 26 January 2012 22:54, Mahadevan, Venkat <[email protected]> wrote:
> Hi
>
> I am trying to display a widget that uses OAuth to get data from a
> service. I followed the example on the Rave web site to add a record to the
> oauth_consumer_store table with consumer key/secret etc. This doesn't seem
> to work, I am getting this error.
>
>
> logs:
> [WARNING] [talledLocalContainer] Jan 26, 2012 4:23:20 PM
> org.apache.shindig.gadgets.oauth.OAuthRequest fetchNoThrow
> [WARNING] [talledLocalContainer] WARNING: The following fatal error
> occurred when OAuth was fetching content:
> [WARNING] [talledLocalContainer] No oauth_token returned from service
> provider.
>
>
>
> From firebug:
>
> throw 1; < don't be evil' >{"
> https://abchost.org/services/api/rest/xml?method=abc.status":{"oauthError":"MISSING_OAUTH_PARAMETER","body":"","oauthErrorText":"No
> oauth_token returned from service provider\n\n==== Original request:\nGET
> /services/api/rest/xml?method=abc.status\n\nHost:
> abchost.org\nX-Shindig-AuthType:
> oauth\nX-Forwarded-For: 127.0.0.1\nX-shindig-dos: on\n\n\n====\n==== Sent
> request 1:\nPOST /pg/oauth/requesttoken\n\nHost:
> abchost.org\nX-Shindig-AuthType:
> none\nAuthorization: OAuth
> oauth_callback=\"http%3A%2F%2Flocalhost%3A8080%2Fgadgets%2Foauthcallback%3Fcs%3DqFzdD2XIe52U3kcdMazW6gqEyKGQ3BI-VS147qQ0w6l6SIJ2NSzFi-AJOCLR_1x9_ghz08aK1OXgifgG8owxhqFAAnxU9_0dg4U6s9qzhzeMAkNOg1oVualcNZtkrenRixDy4Q\",
> xoauth_signature_publickey=\"abcde\", xoauth_public_key=\"abcde\",
> oauth_version=\"1.0\", oauth_timestamp=\"1327613000\",
> oauth_nonce=\"6078074619793889950\",
> oauth_consumer_key=\"a0e8ae522d755fbc5cbdb77a37d3ae16\",
> oauth_signature_method=\"HMAC-SHA1\",
> oauth_signature=\"lb4tYFTxA7Wr095leGWiR96Adlk%3D\"\nContent-Type:
> application/x-www-form-urlencoded\nX-shindig-dos: on\n\n\n==== Received
> response 1:\nHTTP/1.1 200\r\n\r\nCache-Control: no-store, no-cache,
> must-revalidate, post-check=0, pre-check=0\r\nConnection:
> close\r\nContent-Encoding: gzip\r\nContent-Length: 45\r\nContent-Type:
> text/html; charset=UTF-8\r\nDate: Thu, 26 Jan 2012 21:23:20 GMT\r\nExpires:
> Thu, 19 Nov 1981 08:52:00 GMT\r\nPragma: no-cache\r\nServer: Apache/2.2.13
> (Red Hat)\r\nSet-Cookie: Elgg=3cidce3g7lqj2vu84abdg60o74; path=/\r\nVary:
> Accept-Encoding,User-Agent\r\nX-Powered-By: PHP/5.2.10\r\n\r\nInvalid
> signature\n\u003chr
> /\u003e\n\r\n\n====","DataHash":"qgeopmcf02p09qc016cepu22fo","rc":403}}
>
>
> Has anyone tried running OAuth widget on Rave lately?
>
>
>
> Thanks
> Venkat
>
>
> I tried my test oauth gadget, but that one fails to load either. It used
to work in Rave and still works in SURFconext.
The gadget says:
OAuth error: UNKNOWN_PROBLEM: no consumer ==== Original request: GET
/m8/feeds/contacts/default/base?alt=json Host:
www.google.comX-Shindig-AuthType: oauth X-Forwarded-For: 127.0.0.1
X-shindig-dos: on ====
The log says:
[WARNING] [talledLocalContainer] 27-jan-2012 8:21:51
org.apache.shindig.gadgets.oauth.OAuthModule$OAuthCrypterProvider <init>
[WARNING] [talledLocalContainer] INFO: Using random key for OAuth
client-side state encryption
[WARNING] [talledLocalContainer] 27-jan-2012 8:21:51
org.apache.shindig.gadgets.oauth.OAuthModule OAuthCrypterProvider
constructor
[WARNING] [talledLocalContainer] INFO: A random key for OAuth client-side
state encryption is being used.
[INFO] [talledLocalContainer] 161656 raveShindigPersistenceUnit INFO
[http-8080-2] openjpa.Runtime - The Entity
"org.apache.rave.opensocial.repository.impl.JpaApplicationDataRepository$JpaSerializableApplicationData"
was enhanced at level "2", but the current level of enhancement is
"1,055,128".
[INFO] [talledLocalContainer] 161658 raveShindigPersistenceUnit INFO
[http-8080-2] openjpa.Runtime - A down level Entity was detected and
logged. Please enable RUNTIME trace to see all down level Entities.
[INFO] [talledLocalContainer] 161910 raveShindigPersistenceUnit TRACE
[http-8080-2] openjpa.jdbc.SQL - <t 1940107136, conn 638514564> executing
prepstmnt 1285052749 SELECT t0.entity_id, t0.callback_url, t0.consumer_key,
t0.consumer_secret, t0.gadget_uri, t0.key_name, t0.key_type,
t0.service_name FROM oauth_consumer_store t0 WHERE (t0.gadget_uri = ? AND
t0.service_name = ?) [params=?, ?]
[INFO] [talledLocalContainer] 161910 raveShindigPersistenceUnit TRACE
[http-8080-2] openjpa.jdbc.SQL - <t 1940107136, conn 638514564> [0 ms]
spent
[INFO] [talledLocalContainer] 161996 raveShindigPersistenceUnit TRACE
[http-8080-2] openjpa.jdbc.SQL - <t 1940107136, conn 739377623> executing
prepstmnt 1690738561 SELECT t0.entity_id, t0.access_token, t0.app_url,
t0.module_id, t0.service_name, t0.session_handle, t0.token_expire_millis,
t0.token_name, t0.token_secret, t0.user_id FROM oauth_token_info t0 WHERE
(t0.user_id = ? AND t0.app_url = ? AND t0.module_id = ? AND t0.token_name =
? AND t0.service_name = ?) [params=?, ?, ?, ?, ?]
[INFO] [talledLocalContainer] 161996 raveShindigPersistenceUnit TRACE
[http-8080-2] openjpa.jdbc.SQL - <t 1940107136, conn 739377623> [0 ms]
spent
[WARNING] [talledLocalContainer] 27-jan-2012 8:21:51
org.apache.shindig.gadgets.oauth.OAuthRequest fetchNoThrow
[WARNING] [talledLocalContainer] WARNING: The following fatal error
occurred when OAuth was fetching content:
[WARNING] [talledLocalContainer] no consumer.
Jasha Joachimsthal
Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)
www.onehippo.com