Hi Yefei,
Make sure that you have your key cache updated with valid consumer key
and secret of the consumer in your back end.
On Thu, Feb 18, 2010 at 2:40 PM, Yefei <[email protected]> wrote:
> Hi John,
>
> Thanks for answering my questions and I did modify my code, i.e, I
> don't add oauth_token parameter to params and I don't set
> accessor.requestToken( I suppose this is what you mean), anyways, I
> still get an Unauthorized exception.
>
> 02-18 04:00:44.308: WARN/System.err(352):
> net.oauth.OAuthProblemException: HTTP/1.1 401 Unauthorized
> 02-18 04:00:44.308: WARN/System.err(352): at
>
> net.oauth.client.OAuthResponseMessage.toOAuthProblemException(OAuthResponseMessage.java:
> 83)
> 02-18 04:00:44.308: WARN/System.err(352): at
> net.oauth.client.OAuthClient.invoke(OAuthClient.java:306)
> 02-18 04:00:44.318: WARN/System.err(352): at
> net.oauth.client.OAuthClient.invoke(OAuthClient.java:260)
> 02-18 04:00:44.318: WARN/System.err(352): at
>
> com.yefei.scanner.back.db.DBProvider.accessProtectedMeterial(DBProvider.java:
> 170)
> 02-18 04:00:44.318: WARN/System.err(352): at
> com.yefei.scanner.front.ui.MyProfileActivity
> $2.run(MyProfileActivity.java:57)
>
> I got stuck on this. I tried to trace the code during the debug mode
> but I am pretty new to this and just got lost. Is there something that
> I can print out because it has some useful information in it? ( I am
> very sure my app is authorized since I can see them in authorized app
> under my profile of that website) Any help is greatly appreciate!
>
> Thanks in advance
>
>
> On Feb 13, 5:55 pm, John Kristian <[email protected]> wrote:
> > Don't add an oauth_token parameter to params. OAuthClient.invoke will
> > do that for you.
> >
> > It's not necessary to set accessor.tokenSecret, if you set the
> > accessToken and tokenSecret. In this case, accessor.tokenSecret
> > should be the secret that the service provider sent with the access
> > token.
>
> --
> You received this message because you are subscribed to the Google Groups
> "OAuth" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <oauth%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/oauth?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"OAuth" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/oauth?hl=en.