Sha256: 583a26f01abf20b67c0293e51633e6d1141d28b43a4d226059bebe276f80ea8c

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

require 'bundler/setup'
require 'sinatra/base'
require 'omniauth-burner'

SCOPE = 'email'

class App < Sinatra::Base

  get '/' do
    redirect '/auth/burner'
  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 :burner, 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-burner-1.0.1 example/config.ru