OAuth 2.0 is the next evolution of the OAuth protocol. It is an open protocol that allows applications and websites to share sensitive data, without requiring you to release your password. Using OAuth, you can permit third-party applications to read from your OpenHub account without having to share your password.
Instead of handing out your OpenHub account password to a third-party application, you visit the OpenHub website directly and grant that application permission to access your OpenHub account. You can revoke this permission any time you change your mind.
In order to become OpenHub OAuth consumer, you'd need to get your key and secret from your API Keys page.
The application ohloh_oauth2_sinatra.rb is a simple Sinatra based example using the oauth2 gem that fetches authenticated user's account xml.
OAuth 2.0 is an optional, additional feature of the OpenHub API that can be used to integrate OpenHub users on your website using their authenticated identity. You can read public data from OpenHub at any time using only your application’s OpenHub API Key.