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 Open Hub 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 Open Hub account without having to share your password.

Instead of handing out your Open Hub account password to a third-party application, you visit the Open Hub website directly and grant that application permission to access your Open Hub account. You can revoke this permission any time you change your mind.

Using OAuth 2.0

In order to become Open Hub 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 Open Hub API that can be used to integrate Open Hub users on your website using their authenticated identity. You can read public data from Open Hub at any time using only your application’s Open Hub API Key.