title: How to signup/login Parse User from authenticated Twitter oauth_token in .NET?
body: <p>I've used the <a href="https://github.com/xamarin/Xamarin.Auth/blob/master/src/Xamarin.Auth/OAuth1Authenticator.cs#L83">OAuth1Authenticator</a> class from the <a href="https://components.xamarin.com/view/xamarin.auth">Xamarin.Auth component library</a> to allow users to login via Twitter. It authenticates correctly and gets me a response which has the following: oauth_token, oauth_token_secret, user_id, screen_name, oauth_consumer_key, oauth_consumer_secret.</p>
  
  <p>Here is my code</p>
  
  <pre><code>OAuth1Authenticator twitterAuthenticator = new OAuth1Authenticator(Constants.Twitter.CONSUMER_KEY, Constants.Twitter.CONSUMER_SECRET, new Uri(Constants.Twitter.REQUEST_TOKEN_URL), new Uri(Constants.Twitter.AUTHORIZE_URL), new Uri(Constants.Twitter.ACCESS_TOKEN_URL), new Uri(Constants.Twitter.CALLBACK_URL));
  
              twitterAuthenticator.Completed += async (sender, e) =&gt;
                  {    
                      if (!e.IsAuthenticated)
                      {
                          return;
                      }
  
                      string oauth_token = e.Account.Properties["oauth_token"].ToString();
  </code></pre>
  
  <p>The question is how do I then use that response to signup/signin a Parse User ? i.e. I want a ParseUser created on the parse database via the Twitter token and the session should be taken care of, same way it works for <a href="https://parse.com/docs/dotnet_guide#fbusers-signup">sign-via-Facebook using ParseFacebookUtils class</a></p>
  
  <p>Problem is Parse doesn't support Login via Twitter in Xamarin, however, I believe parse does support any type of 3rd party authentication in an alternative way as shown below but I don't know how to do it.</p>
  
  <p>Here are the most relative links</p>
  
  <p><a href="https://parse.com/tutorials/adding-third-party-authentication-to-your-web-app">https://parse.com/tutorials/adding-third-party-authentication-to-your-web-app</a> but the problem in this link is that it's made as a webpage button, don't know how to use that on a mobile, and it's for GitHub don't know how to use it for Twitter instead (Twitter is only OAuth1)</p>
  
  <p><a href="http://blog.parse.com/2013/12/03/bring-your-own-login/">http://blog.parse.com/2013/12/03/bring-your-own-login/</a> This is exactly what I need but it needs a session Token, doesn't work with the oauth_tokens that twitter responds back to me, hence don't know how to use the method mentioned in the link</p>
  
  <p><a href="https://github.com/auth0/rules/blob/master/parse.md">https://github.com/auth0/rules/blob/master/parse.md</a> This looks like the solution, however I don't know how to use it, it does show the twitter icon so it should work with twtiter but how do I get that to work in .NET <strong>Update:</strong> I've found this xamarin component <a href="http://components.xamarin.com/view/Auth0Client">http://components.xamarin.com/view/Auth0Client</a> which gets me closer to use the method mentioned in the first link in this paragraph, yet I'm still lost and don't know how to link autho0 to parse</p>
  
  <p>All in all, I'm lost in this maze and really wish anyone could help me out.</p>