Sha256: 0651aed36a8ac6d1e73bb40db269a8247eed2323c8ee7c9e494b6b8eb2a54c8f
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
require 'bundler/setup' require 'sinatra/base' require 'omniauth-mendeley' class App < Sinatra::Base get '/' do redirect '/auth/mendeley' 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 :mendeley, ENV['MENDELEY_CONSUMER_KEY'], ENV['MENDELEY_CONSUMER_SECRET'] end run App.new
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-mendeley-0.3 | example/config.ru |
omniauth-mendeley-0.2 | example/config.ru |