Re: [twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-11 Thread Taylor Singletary
If your intent is to have Twitter redirect to a specific URL after the OAuth
authetnication page is complete, you'll want to make sure that your
application is marked as being a web-based application and you've provided a
default callback URL (even though it doesn't have to correspond to your
actual callback URL). Then, you manually declare the oauth_callback with
your target callback URL instead of oob

Taylor

On Tue, Aug 10, 2010 at 1:31 AM, Lumpizaver demsarj...@gmail.com wrote:

 I fixed that now, I just had to type oob as callback url. But now I
 don't get redirected to the page I want to be. I just get a PIN
 number, what should I do now?



[twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-10 Thread Lumpizaver
I am trying to create a simple Log in with twitter application.
I am using this example: http://www.voiceoftech.com/swhitley/?p=681.
You can get all the code there.

But it throws out an error at this line

Response.Redirect(oAuth.AuthorizationLinkGet()); in oAuthTwitter
WebResponseGet.

Thanks for your help.

Sincerely, Jure


On 9 avg., 16:53, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 xAuth would not require this as no callback is utilized. In the case of
 actually executing API resource actions (like sending a tweet), your
 callback (and effectively OAuth itself) has nothing to do with the request
 -- it's only a means of identifying the two parties involved in the request
 (the user and the application).

 On Mon, Aug 9, 2010 at 7:51 AM, Andrew W. Donoho 
 andrew.don...@gmail.comwrote:





  On Aug 9, 2010, at 08:37 , Taylor Singletary wrote:

   As a reminder, it's proper OAuth to always send an oauth_callback on the
  request token step of OAuth negotiation -- even if you've preregistered a
  callback or are using the PIN code/out-of-band flow (in which case you would
  send oauth_callback=oob).

  Taylor,

         As a user of xauth, I do  not currently send oauth_callback=oob. I
  think this is because xauth does not participate in the negotiation for a
  temporary credential. (See: http://tools.ietf.org/html/rfc5849 section
  2.1.). Is this your understanding? Or do xauth users need to include this
  callback in our request for our permanent access token?

  Anon,
  Andrew
  
  Andrew W. Donoho
  Donoho Design Group, L.L.C.
  a...@ddg.com, +1 (512) 750-7596

  We did not come to fear the future.
     We came here to shape it.

  -- President Barack Obama, Sept. 2009


[twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-10 Thread Lumpizaver
I fixed that now, I just had to type oob as callback url. But now I
don't get redirected to the page I want to be. I just get a PIN
number, what should I do now?


[twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-09 Thread Lumpizaver
I also have a problem with this.

I cannot use the twitter API login with OAuth when I am debugging on
localhost.
I tought that it is not possible to use Twitter authentication on
localhost because of the callback url.
So I tought that I have to upload my site somewhere before.

Sincerely, Jure

On 8 avg., 07:30, punit khaire punit.kha...@gmail.com wrote:
 Thanks Tom,

 I am using localhost to tweet messages but it is giving error message as
 Failed to authenticate with oauthe signature and token.Is this happening
 because I had given callback URL.I am generating proper signature and
 sending all parameters.

 I am not getting where I am going wrong .

 Punit.



 On Sun, Aug 8, 2010 at 5:13 AM, Tom allerleiga...@gmail.com wrote:
  Yes, you can. Any application that can sign oAuth requests can send
  tweets.

  Tom

  On Aug 7, 2:44 pm, Punit.khaire punit.kha...@gmail.com wrote:
   Can we use localhost to tweet messages using oAuth authentication??


Re: [twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-09 Thread Taylor Singletary
For clarity:

There is nothing stopping you from using localhost as your oauth_callback
during testing for OAuth 1.0a. While the form for your application on
dev.twitter.com will not allow you to store a localhost domain as your
pre-registered callback URL, our OAuth sub-system has no trouble using
localhost for redirects when explicitly declared on the request token step.
If you want to use localhost as your domain, just set the callback URL
within your application record to something else.

As a reminder, it's proper OAuth to always send an oauth_callback on the
request token step of OAuth negotiation -- even if you've preregistered a
callback or are using the PIN code/out-of-band flow (in which case you would
send oauth_callback=oob).

Taylor

On Mon, Aug 9, 2010 at 5:53 AM, Lumpizaver demsarj...@gmail.com wrote:

 I also have a problem with this.

 I cannot use the twitter API login with OAuth when I am debugging on
 localhost.
 I tought that it is not possible to use Twitter authentication on
 localhost because of the callback url.
 So I tought that I have to upload my site somewhere before.

 Sincerely, Jure

 On 8 avg., 07:30, punit khaire punit.kha...@gmail.com wrote:
  Thanks Tom,
 
  I am using localhost to tweet messages but it is giving error message as
  Failed to authenticate with oauthe signature and token.Is this happening
  because I had given callback URL.I am generating proper signature and
  sending all parameters.
 
  I am not getting where I am going wrong .
 
  Punit.
 
 
 
  On Sun, Aug 8, 2010 at 5:13 AM, Tom allerleiga...@gmail.com wrote:
   Yes, you can. Any application that can sign oAuth requests can send
   tweets.
 
   Tom
 
   On Aug 7, 2:44 pm, Punit.khaire punit.kha...@gmail.com wrote:
Can we use localhost to tweet messages using oAuth authentication??



[twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-09 Thread Tom
If you are generating the right signature (which is quite a large
assumption) and sending the right parameters, then make sure you
aren't sending too much.

Signature + parameters are, as far as I know, the only things that can
cause a 401 error - assuming that the keys are right.

Just make sure to do proper URLencoding on the callback.

Tom


On Aug 8, 7:30 am, punit khaire punit.kha...@gmail.com wrote:
 Thanks Tom,

 I am using localhost to tweet messages but it is giving error message as
 Failed to authenticate with oauthe signature and token.Is this happening
 because I had given callback URL.I am generating proper signature and
 sending all parameters.

 I am not getting where I am going wrong .

 Punit.







 On Sun, Aug 8, 2010 at 5:13 AM, Tom allerleiga...@gmail.com wrote:
  Yes, you can. Any application that can sign oAuth requests can send
  tweets.

  Tom

  On Aug 7, 2:44 pm, Punit.khaire punit.kha...@gmail.com wrote:
   Can we use localhost to tweet messages using oAuth authentication??


Re: [twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-09 Thread Andrew W. Donoho

On Aug 9, 2010, at 08:37 , Taylor Singletary wrote:

 As a reminder, it's proper OAuth to always send an oauth_callback on the 
 request token step of OAuth negotiation -- even if you've preregistered a 
 callback or are using the PIN code/out-of-band flow (in which case you would 
 send oauth_callback=oob).



Taylor,

As a user of xauth, I do  not currently send oauth_callback=oob. I 
think this is because xauth does not participate in the negotiation for a 
temporary credential. (See: http://tools.ietf.org/html/rfc5849 section 2.1.). 
Is this your understanding? Or do xauth users need to include this callback in 
our request for our permanent access token?


Anon,
Andrew

Andrew W. Donoho
Donoho Design Group, L.L.C.
a...@ddg.com, +1 (512) 750-7596

We did not come to fear the future. 
We came here to shape it.

-- President Barack Obama, Sept. 2009







Re: [twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-09 Thread Taylor Singletary
xAuth would not require this as no callback is utilized. In the case of
actually executing API resource actions (like sending a tweet), your
callback (and effectively OAuth itself) has nothing to do with the request
-- it's only a means of identifying the two parties involved in the request
(the user and the application).


On Mon, Aug 9, 2010 at 7:51 AM, Andrew W. Donoho andrew.don...@gmail.comwrote:


 On Aug 9, 2010, at 08:37 , Taylor Singletary wrote:

  As a reminder, it's proper OAuth to always send an oauth_callback on the
 request token step of OAuth negotiation -- even if you've preregistered a
 callback or are using the PIN code/out-of-band flow (in which case you would
 send oauth_callback=oob).



 Taylor,

As a user of xauth, I do  not currently send oauth_callback=oob. I
 think this is because xauth does not participate in the negotiation for a
 temporary credential. (See: http://tools.ietf.org/html/rfc5849 section
 2.1.). Is this your understanding? Or do xauth users need to include this
 callback in our request for our permanent access token?


 Anon,
 Andrew
 
 Andrew W. Donoho
 Donoho Design Group, L.L.C.
 a...@ddg.com, +1 (512) 750-7596

 We did not come to fear the future.
We came here to shape it.

 -- President Barack Obama, Sept. 2009








Re: [twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-08 Thread punit khaire
Thanks Tom,

I am using localhost to tweet messages but it is giving error message as
Failed to authenticate with oauthe signature and token.Is this happening
because I had given callback URL.I am generating proper signature and
sending all parameters.

I am not getting where I am going wrong .

Punit.

On Sun, Aug 8, 2010 at 5:13 AM, Tom allerleiga...@gmail.com wrote:

 Yes, you can. Any application that can sign oAuth requests can send
 tweets.

 Tom


 On Aug 7, 2:44 pm, Punit.khaire punit.kha...@gmail.com wrote:
  Can we use localhost to tweet messages using oAuth authentication??



[twitter-dev] Re: Can we use localhost to tweet messages using oAuth authentication??

2010-08-07 Thread Tom
Yes, you can. Any application that can sign oAuth requests can send
tweets.

Tom


On Aug 7, 2:44 pm, Punit.khaire punit.kha...@gmail.com wrote:
 Can we use localhost to tweet messages using oAuth authentication??