Sha256: 0052466c8391c150110420e6371b7f57b5fc56ea9f4ab49b21124e1810ca0585
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
require 'bundler/setup' require 'sinatra/base' require 'omniauth-translationexchange' SCOPE = 'email' class App < Sinatra::Base get '/' do redirect '/auth/translationexchange' end get '/auth/:provider/callback' do content_type 'application/json' MultiJson.encode(request.env) end get '/auth/failure' do content_type 'application/json' MultiJson.encode(request.env) end end use Rack::Session::Cookie use OmniAuth::Builder do provider :translationexchange, ENV['APP_ID'], ENV['APP_SECRET'], :scope => SCOPE end run App.new
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-translationexchange-1.0.0 | example/config.ru |