OAuth on Windows Phone

60 views
Skip to first unread message
Message has been deleted

senloe

unread,
Feb 18, 2011, 8:40:05 PM2/18/11
to RestSharp
I'm trying to follow the samples at
https://github.com/johnsheehan/RestSharp/blob/master/RestSharp.IntegrationTests/oAuth1Tests.cs
to authenticate my app, but the libraries don't seem to match up.

const string consumerKey = <my key>;
const string consumerSecret = <my secret>;

var baseUrl = "https://api.twitter.com";
var client = new RestClient(baseUrl);
client.Authenticator =
OAuth1Authenticator.ForRequestToken(consumerKey, consumerSecret);

when I get to this last line:
client.Authenticator =
OAuth1Authenticator.ForRequestToken(consumerKey, consumerSecret);
OAuth1Authenticator is NOT available.
There is a OAuth2Authenticator, but it doesn't have the
ForRequestToken method.

Does anybody have any examples working with restsharp and oauth for
Windows Phone?

thanks!!

John Sheehan

unread,
Feb 18, 2011, 9:06:29 PM2/18/11
to rest...@googlegroups.com
oAuth1 is not yet supported in async scenarios (SL and WP). It's
definitely something I want to add, but I haven't started yet. I'll
gladly accept a contribution if someone else has it working.
Reply all
Reply to author
Forward
0 new messages