Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An example OAuth 1.0a consumer
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
README.textile
app.rb
config.ru

README.textile

Sinatra OAuth 1.0a Example

A simple Sinatra-based example of OAuth 1.0a consumer. If you provide OAuth via oauth-plugin in your Ruby on Rails app make sure that you use a bugfixed version (available in my fork).

Setup

All you need to do is to configure your OAuth provider data

@consumer ||=OAuth::Consumer.new "YOUR-KEY-GOES-HERE", "YOUR-SECRET-GOES-HERE", {
  :site => "YOUR-URL-GOES-HERE.com"
}

That’s it? Yep!

Something went wrong with that request. Please try again.