Sha256: e4060023320e28355425abd4981cfa924ece13e952f3a41790ce4f208cb41f15

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

$:.push File.dirname(__FILE__) + '/../lib'

require 'rubygems'
require 'bundler'
Bundler.setup :default, :development, :example, ENV['RACK_ENV']

require 'sinatra'
require 'omniauth-browserid'
require 'pry'

use Rack::Session::Cookie
use OmniAuth::Strategies::BrowserID

get '/' do
  "<a href='/auth/browser_id'>Auth with BrowserID</a>"
end

post '/auth/browser_id/callback' do
  content_type 'text/plain'
  request.env['omniauth.auth'].to_hash.inspect
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
omniauth-browserid-discourse-0.0.2 examples/sinatra/application.rb
omniauth-browserid-0.0.1 examples/sinatra/application.rb