Sha256: fb1b3f99eaea9a448edf492580d364004b33847e3cba9681d9f6b72bc880b807
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
require 'bundler/setup' require 'sinatra/base' require 'omniauth-getglue' require 'pp' ENV['CONSUMER_KEY'] = '' ENV['CONSUMER_SECRET'] = '' class App < Sinatra::Base get '/' do redirect '/auth/getglue' end get '/auth/:provider/callback' do MultiJson.encode(request.env) end get '/auth/failure' do MultiJson.encode(request.env) end end use Rack::Session::Cookie use OmniAuth::Builder do provider :getglue, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET'] end run App.new
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-getglue-0.1.0 | example/config.ru |