Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

example rails 3 application that uses oauth

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 spec
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.md

TwitterApp

TwitterApp is a very basic Rails 3 application that demonstrates how to use the Sign in with Twitter workflow with version 1.x 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=abc CONSUMER_SECRET=123 rails server

OmniAuth

If you would like to see how to use the omniauth gem for authentication, Erik Michaels-Ober maintains a simple Rails application that demonstrates how to do so.

Something went wrong with that request. Please try again.