Permalink
Browse files

corrected some stuff in example

  • Loading branch information...
Pasta committed Jan 26, 2012
1 parent a8ba076 commit 8868a2e8948f2b74d2f0094f529d7350b0db308d
Showing with 4 additions and 5 deletions.
  1. +1 −2 example/Gemfile
  2. +3 −3 example/config.ru
View
@@ -2,5 +2,4 @@ source :rubygems
gem 'sinatra'
gem 'multi_json'
-gem 'omniauth-linkedin', :path => '../'
-#gem 'omniauth-linkedin'
+gem 'omniauth-viadeo', :path => '../'
View
@@ -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
@@ -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.