Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
example rails 3 application that uses oauth
Ruby
tree: 6eb74b0245

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib
public
script
spec
test
vendor/plugins
.gitignore
.rspec
Gemfile
Gemfile.lock
README.mkd
Rakefile
config.ru

README.mkd

TwitterApp

TwitterApp is a very basic Rails 3 application that demonstrates how to use the Sign in with Twitter workflow with version 1.0 of the twitter gem (which has removed built-in OAuth support).

Installation

git clone git://github.com/jnunemaker/twitter-app.git
cd twitter-app
bundle install

Usage

Using TwitterApp requires you to register an app with Twitter to obtain OAuth credentials. Once you obtain credentials, substitute your consumer key and secret into the command below.

CONSUMER_KEY=xyz CONSUMER_SECRET=123 rails server

OmniAuth

There is an omniauth branch that demonstrates integration with the omniauth gem instead of the oauth gem.

Something went wrong with that request. Please try again.