Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:07:54+00:00 2026-05-29T07:07:54+00:00

New to OAuth and RestSharp. I’m building a Windows Phone app, using RestSharp to

  • 0

New to OAuth and RestSharp.

I’m building a Windows Phone app, using RestSharp to handle all the OAuth stuff.

private void LoginButton_Tap(object sender, System.Windows.Input.GestureEventArgs e)
    {
        RestClient client = new RestClient(OAuth.Auth.baseurl);
        client.Authenticator = RestSharp.Authenticators.OAuth1Authenticator.ForRequestToken(OAuth.Auth.consumerkey, OAuth.Auth.consumersecret);

        var request = new RestRequest("oauth/request_token", Method.POST);

        client.ExecuteAsync(request, (response) =>
        {
            var resource = response.Content;

            MessageBox.Show(resource);
            webBrowser1.Navigate(new Uri(OAuth.Auth.UAuthorise + "?" + resource + "&oauth_callback=http://bing.com"));
        });

    }

private void webBrowser1_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
            MessageBox.Show(e.Uri.ToString() + " loaded");
        }

I’m successfully getting the request token, and then a user is able to log in to the service. webBrowser1 then navigates to bing.com (as defined in the callback url). My question is: what do I do to get the oauth_token and oauth_token_secret? I can see them, due to the webBrowser1_LoadCompleted event handler, but how can I extract them to use them in my program?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:07:55+00:00Added an answer on May 29, 2026 at 7:07 am

    Handle the Navigating event for the browser control when it redirect back to the callback domain/Uri.
    You can then extract the values you’re after from from the Uri.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a 2 Legged OAuth app (Google Marketplace app) using zend gdata
I've been using libraries to handle OAuth so far, but lately I've been digging
New to javascript/jquery and having a hard time with using this or $(this) to
New day, new problem :-) Code: Client Side: void abw_Closed(object sender, EventArgs e) {
I'm trying to upgrade may program to support the new oAuth that Google uses
Has anyone had any luck integrating Twitpic's new OAuth Echo authentication into their iPhone
I'm having a strange problem using PHP's OAuth PECL library - I seem to
how can I do this in express? req.session.oa = new OAuth(....); // and in
I am building a 2-Legged OAuth provider for my api. Everything is hooked up
I'm trying to use Twitter's Oauth Single Token for posting from a rails app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.