Sha256: 199c026b449386943e1f584c8820385627636d92a085260f06b78a15e1c652a1
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
require 'bundler/setup' require 'sinatra/base' require 'omniauth-geni' SCOPE = 'email' class App < Sinatra::Base get '/' do redirect '/auth/geni' 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 :geni, ENV['APP_ID'], ENV['APP_SECRET'], :scope => SCOPE end run App.new
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-geni-1.1.0 | example/config.ru |
omniauth-geni-1.0.0 | example/config.ru |