But how can I made Oauth authentication without exposing my secret key with javascript? I need to make a http request with secret key, or not?
2009/12/31 Phil Plante <[email protected]> > All that aside, the other problem would be exposing your secret key. > I am sure you can imagine how terribly bad that can end up... > > On Dec 30, 10:57 pm, Hari <[email protected]> wrote: > > Is it a case of same origin policy.... > http://en.wikipedia.org/wiki/Same_origin_policy > > > > On Dec 10, 8:27 am, Daniel Silva <[email protected]> wrote: > > > > > > > > > When I trying to do Oauth authentication with jquery it always receives > a > > > empty response. I'm doing this: > > > > > $.ajax({ > > > beforeSend: function(xhr) { > > > xhr.setRequestHeader("Authentication", authorizationHeader) > > > }, > > > url:'https://twitter.com/oauth/request_token', > > > type: 'get', > > > contentType: 'application/x-www-form-urlencoded', > > > async: false, > > > success: function(msg){ > > > alert( "Data: " + msg ); > > > } > > > > > }); > > > > > //output --> "Data: " > > > > > Can someone help me? > > > -- > > > best regards, > > > > > Daniel Silva > -- Cumprimentos, Daniel Silva
