Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Unable to get OAuth Access Token
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Transcendence  
View profile  
 More options Sep 23 2012, 5:27 pm
From: Transcendence <johny....@gmail.com>
Date: Sun, 23 Sep 2012 14:27:16 -0700 (PDT)
Local: Sun, Sep 23 2012 5:27 pm
Subject: Unable to get OAuth Access Token

I'm writing a client in Java with the oauth-signpost library.

If I try to do things in anonymous mode, it works, but when I try to get an
access token (examples of how to do it here:
https://github.com/kaeppler/signpost-examples/blob/master/OAuthTwitte...).
it fails when I try to get the access token. Getting the request token
works however.

Here is my code:
https://github.com/johnywith1n/scoopit-client/blob/master/src/main/ja...

The verification code I enter is from the url I get to after authorizing my
app.

So if the authorization url was:
https://www.scoop.it/oauth/authorize?oauth_token=m-CP3iLd7BOvDnuNpqwB...

I get to
http://www.scoop.it/oauth/oob?&oauth_token=m-CP3iLd7BOvDnuNpqwBjLwcIw...
and I get the verification code as tWLqAuAtkR4LuMz2opOL.

I enter that but I get this error:
Exception in thread "main"
oauth.signpost.exception.OAuthNotAuthorizedException: Authorization failed
(server replied with a 401). This can happen if the consumer key was not
correct or the signatures did not match.
    at
oauth.signpost.AbstractOAuthProvider.handleUnexpectedResponse(AbstractOAuth Provider.java:243)
    at
oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.ja va:193)
    at
oauth.signpost.AbstractOAuthProvider.retrieveAccessToken(AbstractOAuthProvi der.java:108)
    at org.scoopit.client.ScoopItClient.main(ScoopItClient.java:54)

This pattern works for other OAuth services such as Twitter. Is there
something I'm missing for Scoop.It?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philippe Gassmann  
View profile  
 More options Sep 24 2012, 3:23 am
From: Philippe Gassmann <philippe.gassm...@scoop.it>
Date: Mon, 24 Sep 2012 09:23:58 +0200
Local: Mon, Sep 24 2012 3:23 am
Subject: Re: [Scoop.it API Talk] Unable to get OAuth Access Token

Hi Transcendence,

I've run your code during a little wireshark session. It shown me the
oauth_verifier is never sent to scoop.it access token retrieve url. This is
why you get the 401.

Adding PROVIDER.setOAuth10a(true); at line 48 solve the issue.

P.

2012/9/23 Transcendence <johny....@gmail.com>

--
Philippe - The Scoop.it Team

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Transcendence  
View profile  
 More options Sep 24 2012, 3:49 am
From: Transcendence <johny....@gmail.com>
Date: Mon, 24 Sep 2012 00:49:40 -0700 (PDT)
Local: Mon, Sep 24 2012 3:49 am
Subject: Re: [Scoop.it API Talk] Unable to get OAuth Access Token

Thanks Philippe.

According to the oauth-signpost library, that boolean flag for OAuth1.0a
should be automatically set if the parameter

oauth_callback_confirmed is sent back with the unauthorized Request Token.

Is Scoop.it implementing this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philippe Gassmann  
View profile  
 More options Sep 24 2012, 3:59 am
From: Philippe Gassmann <philippe.gassm...@scoop.it>
Date: Mon, 24 Sep 2012 09:59:26 +0200
Local: Mon, Sep 24 2012 3:59 am
Subject: Re: [Scoop.it API Talk] Unable to get OAuth Access Token

Scoop.it does not implements this, this is a huge mistake.

The fix that sends this parameter back to the consumer will be rolled out
to production asap (likely before the end of the week).

Thanks for the heads up.
P.

2012/9/24 Transcendence <johny....@gmail.com>

--
Philippe - The Scoop.it Team

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic