debian-mirror-gitlab/debian/gems-compat/omniauth-salesforce-1.0.5
2019-08-03 10:27:51 +05:30
..
lib Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
spec Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
.gitignore Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
.rspec Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
.rvmrc Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
Gemfile Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
Guardfile Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
LICENSE.md Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
omniauth-salesforce.gemspec Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
Rakefile Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30
README.md Embed omniauth-salesforce 2019-08-03 10:27:51 +05:30

omniauth-salesforce

OmniAuth Strategy for salesforce.com.

Note: This is a fork of the original project and is now the main repository for the omniauth-salesforce gem.

See it in action

http://omniauth-salesforce-example.herokuapp.com

Source for above app

Basic Usage

require "sinatra"
require "omniauth"
require "omniauth-salesforce"

class MyApplication < Sinatra::Base
  use Rack::Session
  use OmniAuth::Builder do
    provider :salesforce, ENV['SALESFORCE_KEY'], ENV['SALESFORCE_SECRET']
  end
end

Including other sites

use OmniAuth::Builder do
    provider :salesforce, 
             ENV['SALESFORCE_KEY'], 
             ENV['SALESFORCE_SECRET']
    provider OmniAuth::Strategies::SalesforceSandbox, 
             ENV['SALESFORCE_SANDBOX_KEY'], 
             ENV['SALESFORCE_SANDBOX_SECRET']
    provider OmniAuth::Strategies::SalesforcePreRelease, 
             ENV['SALESFORCE_PRERELEASE_KEY'], 
             ENV['SALESFORCE_PRERELEASE_SECRET']
    provider OmniAuth::Strategies::DatabaseDotCom, 
             ENV['DATABASE_DOT_COM_KEY'], 
             ENV['DATABASE_DOT_COM_SECRET']
end

Resources