title: OAuth with Verification in .NET
body: <p>I'm trying to create a .NET-based client app (in WPF - although for the time being I'm just doing it as a console app) to integrate with an OAuth-enabled application, specifically Mendeley (<a href="http://dev.mendeley.com" rel="noreferrer">http://dev.mendeley.com</a>), which apparently uses 3-legged OAuth.</p>
  
  <p>This is my first time using OAuth, and I'm having a lot of difficulty getting started with it. I've found several .NET OAuth libraries or helpers, but they seem to be more complicated than I think I need. All I want to do is be able to issue REST requests to the Mendeley API and get responses back!</p>
  
  <p>So far, I've tried:</p>
  
  <ul>
  <li>DotNetOpenAuth</li>
  <li><a href="http://github.com/bittercoder/DevDefined.OAuth" rel="noreferrer">http://github.com/bittercoder/DevDefined.OAuth</a></li>
  <li><a href="http://oauth.googlecode.com/svn/code/csharp/" rel="noreferrer">http://oauth.googlecode.com/svn/code/csharp/</a></li>
  </ul>
  
  <p>The first (DotNetOpenAuth) seems like it could possibly do what I needed if I spent hours and hours trying to work out how. The second and third, as best I can tell, don't support the verification codes that Mendeley is sending back -- although I could be wrong about this :)</p>
  
  <p>I've got a consumer key and secret from Mendeley, and with DotNetOpenAuth I managed to get a browser launched with the Mendeley page providing a verification code for the user to enter into the application. However, at this point I got lost and couldn't work out how to sensibly provide that back to the application.</p>
  
  <p>I'm very willing to admit that I have no idea where to start with this (although it seems like there's quite a steep learning curve) - if anyone can point me in the right direction I'd appreciate it!</p>