title: Which OAuth library do you find works best for Objective-C/iPhone?
body: <p>I have been looking to switch to OAuth for my Twitter integration code and now that there is a  deadline in less than 7 weeks (see countdown link) it is even more important to make the jump to OAuth. I have been doing Basic Authentication which is extremely easy. Unfortunately OAuth does not appear to be something that I would whip together in a couple of hours.</p>
  
  <p><a href="http://www.countdowntooauth.com/" rel="noreferrer">http://www.countdowntooauth.com/</a></p>
  
  <p>So I am looking to use a library. I have put together the following list.</p>
  
  <ul>
  <li>MPOAuth</li>
  <li>MGTwitterEngine</li>
  <li>OAuthConsumer</li>
  </ul>
  
  <p>I see that MPOAuth has some great features with a good deal of testing code in place but there is one big problem. It does not work. The sample iPhone project that is supposed to authenticate with Twitter causes an error which others have identified and logged as a bug.</p>
  
  <p><a href="http://code.google.com/p/mpoauthconnection/issues/detail?id=29" rel="noreferrer">http://code.google.com/p/mpoauthconnection/issues/detail?id=29</a></p>
  
  <p>The last code change was March 11 and this bug was filed on March 30. It has been over a month and this critical bug has not been fixed yet. So I have moved on to MGTwitterEngine.</p>
  
  <p>I pulled down the source code and loaded it up in Xcode. Immediately I find that there are a few dependencies and the README file does not have a clear list of steps to fetch those dependencies and integrate them with the project so that it builds successfully. I see this as a sign that the project is not mature enough for prime time. I see also that the project references 2 libraries for JSON when one should be enough. One is TouchJSON which has worked well for me so I am again discouraged from relying on this project for my applications.</p>
  
  <p>I did find that MGTwitterEngine makes use of OAuthConsumer which is one of many OAuth projects hosted by an OAuth project on Google Code.</p>
  
  <ul>
  <li><a href="http://code.google.com/p/oauth/" rel="noreferrer">http://code.google.com/p/oauth/</a></li>
  <li><a href="http://code.google.com/p/oauthconsumer/wiki/UsingOAuthConsumer" rel="noreferrer">http://code.google.com/p/oauthconsumer/wiki/UsingOAuthConsumer</a></li>
  </ul>
  
  <p>It looks like OAuthConsumer is a good choice at first glance. It is hosted with other OAuth libraries and has some nice documentation with it. I pulled down the code and it builds without errors but it does have many warnings. And when I run the new Build and Analyze feature in Xcode 3.2 I see 50 analyzer results. Many are marked as potential memory leaks which would likely lead to instability in any app which uses this library.</p>
  
  <p>It seems there is no clear winner and I have to go with something before the big Twitter OAuth deadline.</p>
  
  <p>Any suggestions?</p>