Sha256: 5ecdd77ff5e86526301c719216b80a7b937a0b112eafeff534f4531741c8cfd3
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
require 'sinatra' # Configure sinatra set :run, false set :raise_errors, true set :protection, :except => [:json_csrf] # Setup logging to file log = File.new('app.log', 'a+') $stdout.reopen(log) $stderr.reopen(log) $stderr.sync = true $stdout.sync = true get '/' do redirect '/auth/dotloop' 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-dotloop-1.0.0 | example/app.rb |