Skip to content

Commit

Permalink
corrected some stuff in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasta committed Jan 26, 2012
1 parent a8ba076 commit 8868a2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions example/Gemfile
Expand Up @@ -2,5 +2,4 @@ source :rubygems

gem 'sinatra'
gem 'multi_json'
gem 'omniauth-linkedin', :path => '../'
#gem 'omniauth-linkedin'
gem 'omniauth-viadeo', :path => '../'
6 changes: 3 additions & 3 deletions example/config.ru
@@ -1,10 +1,10 @@
require 'bundler/setup'
require 'sinatra/base'
require 'omniauth-linkedin'
require 'omniauth-viadeo'

class App < Sinatra::Base
get '/' do
redirect '/auth/linkedin'
redirect '/auth/viadeo'
end

get '/auth/:provider/callback' do
Expand All @@ -21,7 +21,7 @@ end
use Rack::Session::Cookie

use OmniAuth::Builder do
provider :linkedin, ENV['LINKEDIN_CONSUMER_KEY'], ENV['LINKEDIN_CONSUMER_SECRET']
provider :viadeo, ENV['VIADEO_CONSUMER_KEY'], ENV['VIADEO_CONSUMER_SECRET']
end

run App.new

0 comments on commit 8868a2e

Please sign in to comment.