omniauth-sfdc-background
OmniAuth strategy for logging in to salesforce.com without leaving your app.
To use OAuth, check omniauth-salesforce.
Basic Usage
require 'sinatra'
require 'omniauth'
require 'omniauth-sfdc-background'
class MyApplication < Sinatra::Base
use Rack::Session
use OmniAuth::Builder do
provider :sfdc_background,
ENV['SFDC_CLIENT_ID'], ENV['SFDC_CLIENT_SECRET'],
host: ENV['SFDC_HOST'], name: 'salesforce'
end
end