Sha256: 2070870226a3cf353f2f644a3b9f24020a67011162307b28edeeecf92bfbfaaf
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
require "bundler/setup" require "sinatra/base" require "omniauth-linkedin" class App < Sinatra::Base get "/" do redirect "/auth/idme" 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 :linkedin, ENV["IDME_CONSUMER_KEY"], ENV["IDME_CONSUMER_SECRET"], :scope => "basic" end run App.new
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-idme-1.0.0 | example/config.ru |
omniauth-idme-0.1.0 | example/config.ru |