https://github.com/jnunemaker/twitter-app
example rails 3 application that uses oauth
https://github.com/jnunemaker/twitter-app
Last synced: about 1 year ago
JSON representation
example rails 3 application that uses oauth
- Host: GitHub
- URL: https://github.com/jnunemaker/twitter-app
- Owner: jnunemaker
- Created: 2009-04-04T06:55:00.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2011-05-07T23:07:33.000Z (about 15 years ago)
- Last Synced: 2025-03-28T22:23:00.579Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 2.25 MB
- Stars: 132
- Watchers: 4
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TwitterApp
==========
TwitterApp is a very basic Rails 3 application that demonstrates how to use the
[Sign in with Twitter](http://dev.twitter.com/pages/sign_in_with_twitter)
workflow with version 1.x of the [twitter
gem](https://github.com/jnunemaker/twitter/) (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](http://dev.twitter.com/apps) 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](https://github.com/intridea/omniauth) for authentication, Erik
Michaels-Ober maintains [a simple Rails
application](https://github.com/sferik/sign-in-with-twitter) that demonstrates
how to do so.