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