Skip to content

Latest commit

 

History

History

oauth2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Using OAuth 2.0 with the OpenHub API

What is OAuth 2.0?

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.

Using OAuth 2.0

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.

Developer Information

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.