omniauth-exvo 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +11 -2
- data/lib/omniauth-exvo/version.rb +1 -1
- data/lib/omniauth/strategies/exvo.rb +2 -3
- data/omniauth-exvo.gemspec +0 -1
- data/spec/omniauth/strategies/exvo_spec.rb +1 -1
- metadata +24 -35
data/README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
This gem contains the official Exvo strategy for OmniAuth 1.0.
|
4
4
|
|
5
|
-
It depends on the [exvo_helpers](https://github.com/Exvo/exvo_helpers) gem for its configuration.
|
6
|
-
|
7
5
|
There is also [exvo-auth](https://github.com/Exvo/exvo_auth) gem, which provides additional helper methods, which make both users and app authorizations at Exvo easier.
|
8
6
|
|
9
7
|
|
@@ -20,12 +18,23 @@ Then `bundle install`.
|
|
20
18
|
|
21
19
|
## Basic usage
|
22
20
|
|
21
|
+
Set both `ENV['AUTH_CLIENT_ID']` and `ENV['AUTH_CLIENT_SECRET']` somewhere (vhost configuration, heroku config, `config/environments/*` or even `config/application.rb`).
|
22
|
+
|
23
23
|
```ruby
|
24
24
|
use OmniAuth::Builder do
|
25
25
|
provider :exvo, ENV['AUTH_CLIENT_ID'], ENV['AUTH_CLIENT_SECRET']
|
26
26
|
end
|
27
27
|
```
|
28
28
|
|
29
|
+
If you'd like to use Exvo's staging auth, you need to pass the `:client_options` hash to override the default:
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
use OmniAuth::Builder do
|
33
|
+
provider :exvo, ENV['AUTH_CLIENT_ID'], ENV['AUTH_CLIENT_SECRET'], :client_options => { :site => 'http://staging.auth.exvo.com' }
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
|
29
38
|
|
30
39
|
|
31
40
|
Copyright © 2011-2012 Exvo.com Development BV, released under the MIT license
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'omniauth-oauth2'
|
2
|
-
require 'exvo_helpers'
|
3
2
|
|
4
3
|
module OmniAuth
|
5
4
|
module Strategies
|
@@ -8,8 +7,8 @@ module OmniAuth
|
|
8
7
|
option :name, 'exvo'
|
9
8
|
|
10
9
|
option :client_options, {
|
11
|
-
:site =>
|
12
|
-
:token_url =>
|
10
|
+
:site => 'https://auth.exvo.com',
|
11
|
+
:token_url => '/oauth/access_token'
|
13
12
|
}
|
14
13
|
|
15
14
|
def request_phase
|
data/omniauth-exvo.gemspec
CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |gem|
|
|
18
18
|
|
19
19
|
gem.add_dependency 'omniauth', '~> 1.0'
|
20
20
|
gem.add_dependency 'omniauth-oauth2', '~> 1.0'
|
21
|
-
gem.add_dependency 'exvo_helpers', '~> 0.2'
|
22
21
|
|
23
22
|
gem.add_development_dependency 'rspec', '>= 2.8'
|
24
23
|
gem.add_development_dependency 'rack-test'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-exvo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-16 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
16
|
-
requirement: &
|
16
|
+
requirement: &78718760 !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: *
|
24
|
+
version_requirements: *78718760
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: omniauth-oauth2
|
27
|
-
requirement: &
|
27
|
+
requirement: &78718210 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,21 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: exvo_helpers
|
38
|
-
requirement: &86895390 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '0.2'
|
44
|
-
type: :runtime
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *86895390
|
35
|
+
version_requirements: *78718210
|
47
36
|
- !ruby/object:Gem::Dependency
|
48
37
|
name: rspec
|
49
|
-
requirement: &
|
38
|
+
requirement: &78717680 !ruby/object:Gem::Requirement
|
50
39
|
none: false
|
51
40
|
requirements:
|
52
41
|
- - ! '>='
|
@@ -54,10 +43,10 @@ dependencies:
|
|
54
43
|
version: '2.8'
|
55
44
|
type: :development
|
56
45
|
prerelease: false
|
57
|
-
version_requirements: *
|
46
|
+
version_requirements: *78717680
|
58
47
|
- !ruby/object:Gem::Dependency
|
59
48
|
name: rack-test
|
60
|
-
requirement: &
|
49
|
+
requirement: &78716880 !ruby/object:Gem::Requirement
|
61
50
|
none: false
|
62
51
|
requirements:
|
63
52
|
- - ! '>='
|
@@ -65,10 +54,10 @@ dependencies:
|
|
65
54
|
version: '0'
|
66
55
|
type: :development
|
67
56
|
prerelease: false
|
68
|
-
version_requirements: *
|
57
|
+
version_requirements: *78716880
|
69
58
|
- !ruby/object:Gem::Dependency
|
70
59
|
name: webmock
|
71
|
-
requirement: &
|
60
|
+
requirement: &78715470 !ruby/object:Gem::Requirement
|
72
61
|
none: false
|
73
62
|
requirements:
|
74
63
|
- - ! '>='
|
@@ -76,10 +65,10 @@ dependencies:
|
|
76
65
|
version: '0'
|
77
66
|
type: :development
|
78
67
|
prerelease: false
|
79
|
-
version_requirements: *
|
68
|
+
version_requirements: *78715470
|
80
69
|
- !ruby/object:Gem::Dependency
|
81
70
|
name: guard
|
82
|
-
requirement: &
|
71
|
+
requirement: &78714090 !ruby/object:Gem::Requirement
|
83
72
|
none: false
|
84
73
|
requirements:
|
85
74
|
- - ~>
|
@@ -87,10 +76,10 @@ dependencies:
|
|
87
76
|
version: '1.0'
|
88
77
|
type: :development
|
89
78
|
prerelease: false
|
90
|
-
version_requirements: *
|
79
|
+
version_requirements: *78714090
|
91
80
|
- !ruby/object:Gem::Dependency
|
92
81
|
name: guard-rspec
|
93
|
-
requirement: &
|
82
|
+
requirement: &78713640 !ruby/object:Gem::Requirement
|
94
83
|
none: false
|
95
84
|
requirements:
|
96
85
|
- - ! '>='
|
@@ -98,10 +87,10 @@ dependencies:
|
|
98
87
|
version: 0.6.0
|
99
88
|
type: :development
|
100
89
|
prerelease: false
|
101
|
-
version_requirements: *
|
90
|
+
version_requirements: *78713640
|
102
91
|
- !ruby/object:Gem::Dependency
|
103
92
|
name: rb-fsevent
|
104
|
-
requirement: &
|
93
|
+
requirement: &78713360 !ruby/object:Gem::Requirement
|
105
94
|
none: false
|
106
95
|
requirements:
|
107
96
|
- - ! '>='
|
@@ -109,10 +98,10 @@ dependencies:
|
|
109
98
|
version: '0'
|
110
99
|
type: :development
|
111
100
|
prerelease: false
|
112
|
-
version_requirements: *
|
101
|
+
version_requirements: *78713360
|
113
102
|
- !ruby/object:Gem::Dependency
|
114
103
|
name: rb-inotify
|
115
|
-
requirement: &
|
104
|
+
requirement: &78712940 !ruby/object:Gem::Requirement
|
116
105
|
none: false
|
117
106
|
requirements:
|
118
107
|
- - ! '>='
|
@@ -120,10 +109,10 @@ dependencies:
|
|
120
109
|
version: '0'
|
121
110
|
type: :development
|
122
111
|
prerelease: false
|
123
|
-
version_requirements: *
|
112
|
+
version_requirements: *78712940
|
124
113
|
- !ruby/object:Gem::Dependency
|
125
114
|
name: simplecov
|
126
|
-
requirement: &
|
115
|
+
requirement: &78712390 !ruby/object:Gem::Requirement
|
127
116
|
none: false
|
128
117
|
requirements:
|
129
118
|
- - ! '>='
|
@@ -131,10 +120,10 @@ dependencies:
|
|
131
120
|
version: '0'
|
132
121
|
type: :development
|
133
122
|
prerelease: false
|
134
|
-
version_requirements: *
|
123
|
+
version_requirements: *78712390
|
135
124
|
- !ruby/object:Gem::Dependency
|
136
125
|
name: simplecov-rcov
|
137
|
-
requirement: &
|
126
|
+
requirement: &78711900 !ruby/object:Gem::Requirement
|
138
127
|
none: false
|
139
128
|
requirements:
|
140
129
|
- - ! '>='
|
@@ -142,7 +131,7 @@ dependencies:
|
|
142
131
|
version: '0'
|
143
132
|
type: :development
|
144
133
|
prerelease: false
|
145
|
-
version_requirements: *
|
134
|
+
version_requirements: *78711900
|
146
135
|
description: OmniAuth strategy for Exvo
|
147
136
|
email:
|
148
137
|
- pawel.goscicki@gmail.com
|