omniauth-salesforce 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,23 @@
1
+ # omniauth-salesforce
2
+
3
+ [OmniAuth](https://github.com/intridea/omniauth) Strategy for [salesforce.com](salesforce.com).
4
+
5
+ ## See it in action
6
+
7
+ [http://omniauth-salesforce-example.herokuapp.com](http://omniauth-salesforce-example.herokuapp.com)
8
+
9
+ [Source for above app](https://github.com/richardvanhook/omniauth-salesforce-example)
10
+
1
11
  ## Basic Usage
2
12
 
3
- use OmniAuth::Builder do
4
- provider :salesforce, ENV['SALESFORCE_KEY'], ENV['SALESFORCE_SECRET']
5
- end
13
+ require "sinatra"
14
+ require "omniauth"
15
+ require "omniauth-salesforce"
16
+
17
+ class MyApplication < Sinatra::Base
18
+ use Rack::Session
19
+ use OmniAuth::Builder do
20
+ provider :salesforce, ENV['SALESFORCE_KEY'], ENV['SALESFORCE_SECRET']
21
+ end
22
+ end
23
+
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Salesforce
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -71,9 +71,14 @@ module OmniAuth
71
71
  class SalesforceSandbox < OmniAuth::Strategies::Salesforce
72
72
  default_options[:client_options][:site] = 'https://test.salesforce.com'
73
73
  end
74
+
74
75
  class DatabaseDotCom < OmniAuth::Strategies::Salesforce
75
76
  default_options[:client_options][:site] = 'https://login.database.com'
76
77
  end
77
78
 
79
+ class SalesforcePreRelease < OmniAuth::Strategies::Salesforce
80
+ default_options[:client_options][:site] = 'https://prerellogin.pre.salesforce.com/'
81
+ end
82
+
78
83
  end
79
84
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-salesforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
- requirement: &2155938520 !ruby/object:Gem::Requirement
16
+ requirement: &2156089220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2155938520
24
+ version_requirements: *2156089220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: omniauth-oauth2
27
- requirement: &2155937900 !ruby/object:Gem::Requirement
27
+ requirement: &2156088020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2155937900
35
+ version_requirements: *2156088020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &2155937160 !ruby/object:Gem::Requirement
38
+ requirement: &2156087100 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '2.7'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2155937160
46
+ version_requirements: *2156087100
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rack-test
49
- requirement: &2155936620 !ruby/object:Gem::Requirement
49
+ requirement: &2156086240 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2155936620
57
+ version_requirements: *2156086240
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &2155935940 !ruby/object:Gem::Requirement
60
+ requirement: &2156085680 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2155935940
68
+ version_requirements: *2156085680
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
- requirement: &2155934960 !ruby/object:Gem::Requirement
71
+ requirement: &2156085120 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2155934960
79
+ version_requirements: *2156085120
80
80
  description: OmniAuth strategy for salesforce.com.
81
81
  email:
82
82
  - rvanhook@salesforce.com