exvo_auth 0.16.3 → 0.16.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e754347d0b073427eb5fb87c24e29737385b9f69
4
+ data.tar.gz: cb7d2d9e463830e5a987bcfe26b3993b5260546f
5
+ SHA512:
6
+ metadata.gz: 87b3b27ebe336e27a9d9b7c6a2466a685ebb1743b78fdb2407bc3671ae5360ce0b7ba441996857bef46ba6352ff61d99d3adb7b8c9aa7531c662511083b45cab
7
+ data.tar.gz: e4fae07b824b09f1913653f514bbc79e972afaa4479013360ae1cf7e71a5cc1c5099c30aa5f593ec5e9c3265268cba8d51d65d3fd41dd9f13ea4c7d2ea4b412e
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :gemcutter
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in exvo_auth.gemspec
4
4
  gemspec
@@ -1,4 +1,4 @@
1
- Copyright © 2011-2012 Exvo.com Development BV
1
+ Copyright © 2011-2013 Exvo.com Development BV
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -11,14 +11,14 @@ Note, that this gem was previously named "exvo-auth".
11
11
 
12
12
  ## Requirements
13
13
 
14
- * Runs on Ruby 1.8.7 & 1.9.2 (preferred version)
15
- * Rails 3.0+ (works with Rails 3.1) or Merb
14
+ * Runs on Ruby 1.8.7, 1.9.2 & 1.9.3 (preferred version)
15
+ * Rails 3.0+ (works with Rails 3.2.*) or Merb
16
16
 
17
17
 
18
18
 
19
19
  ## Installation
20
20
 
21
- Add it to Gemfile:
21
+ Add it to the Gemfile:
22
22
 
23
23
  ```ruby
24
24
  gem "exvo_auth"
@@ -42,7 +42,7 @@ ENV['SSO_COOKIE_DOMAIN'] = "example.com" # [OPTIONAL] set the domain for whic
42
42
  ENV['SSO_COOKIE_SECRET'] = "secret" # Single Sign On secret key (generate using `SecureRandom.hex(16)`)
43
43
  ```
44
44
 
45
- But you can also set things directly in the `config/application.rb` file (before the middleware declaration):
45
+ But you can also set things directly in the `config/application.rb` file:
46
46
 
47
47
  ```ruby
48
48
  Exvo::Helpers.auth_client_id = "foo"
@@ -118,7 +118,7 @@ end
118
118
  Note, that you don't have to update all user attributes. You can update only the ones you want.
119
119
 
120
120
 
121
- This is what you get (and what you can use/save for the local user) from auth (example data as of 2012-01):
121
+ This is what you get (and what you can use/save for the local user) from auth (example data as of 2013-04):
122
122
 
123
123
  ```ruby
124
124
  request.env["omniauth.auth"].to_hash.inspect
@@ -142,7 +142,7 @@ request.env["omniauth.auth"].to_hash.inspect
142
142
  "raw_info" => {
143
143
  "id" => 1,
144
144
  "nickname" => "Pawel",
145
- "country_code" => nil,
145
+ "country_code" => "PL",
146
146
  "plan" => "basic",
147
147
  "language" => "en",
148
148
  "email" => "pawel@exvo.com",
@@ -173,7 +173,6 @@ It's best to leave this method as it is (without updating any user data inside t
173
173
  ```ruby
174
174
  sign in path: "/auth/exvo"
175
175
  sign up path: "/auth/exvo?x_sign_up=true" # this is OAuth2 custom param
176
- sign in path with a return address: "/auth/exvo?state=url" # using OAuth2 state param
177
176
  ```
178
177
 
179
178
  You have a handy methods available in controllers (and views in Rails): `sign_in_path` and `sign_up_path`.
@@ -244,4 +243,4 @@ In the provider controller, which is just a fancy name for API controller, you c
244
243
 
245
244
 
246
245
 
247
- Copyright © 2011-2012 Exvo.com Development BV, released under the MIT license
246
+ Copyright © 2011-2013 Exvo.com Development BV, released under the MIT license
@@ -10,6 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.homepage = "https://github.com/Exvo/exvo_auth"
11
11
  gem.summary = "User and App authentication for Exvo"
12
12
  gem.description = "Collection of users and applications authentication methods for use when you want your users or applications authorize using the Exvo platform."
13
+ gem.license = "MIT"
13
14
 
14
15
  gem.files = `git ls-files`.split("\n")
15
16
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -32,16 +32,7 @@ module ExvoAuth::Controllers::Base
32
32
  def sign_in_and_redirect!
33
33
  set_user_session_from_oauth
34
34
  set_user_cookie
35
-
36
- url = if params[:state] == "popup"
37
- Exvo::Helpers.auth_uri + "/close_popup.html"
38
- elsif params[:state] # if not popup then an url
39
- params[:state]
40
- else
41
- session[:user_return_to] || "/"
42
- end
43
-
44
- redirect_to url
35
+ redirect_to session[:user_return_to] || "/"
45
36
  end
46
37
 
47
38
  # Redirect to sign_out_url, signs out and redirects back to "/" (by default).
@@ -1,3 +1,3 @@
1
1
  module ExvoAuth
2
- VERSION = "0.16.3"
2
+ VERSION = "0.16.4"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.3
5
- prerelease:
4
+ version: 0.16.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jacek Becela
@@ -10,28 +9,25 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-07-02 00:00:00.000000000 Z
12
+ date: 2013-04-12 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: httparty
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: activemodel
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ~>
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ~>
45
40
  - !ruby/object:Gem::Version
@@ -47,7 +42,6 @@ dependencies:
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: activesupport
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ~>
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ~>
61
54
  - !ruby/object:Gem::Version
@@ -63,7 +56,6 @@ dependencies:
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: exvo_helpers
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
60
  - - ~>
69
61
  - !ruby/object:Gem::Version
@@ -71,7 +63,6 @@ dependencies:
71
63
  type: :runtime
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
67
  - - ~>
77
68
  - !ruby/object:Gem::Version
@@ -79,145 +70,127 @@ dependencies:
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: mocha
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - '>='
85
75
  - !ruby/object:Gem::Version
86
76
  version: '0'
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - '>='
93
82
  - !ruby/object:Gem::Version
94
83
  version: '0'
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: test-unit
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - '>='
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - '>='
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: rake
113
100
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
101
  requirements:
116
- - - ! '>='
102
+ - - '>='
117
103
  - !ruby/object:Gem::Version
118
104
  version: '0'
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
108
  requirements:
124
- - - ! '>='
109
+ - - '>='
125
110
  - !ruby/object:Gem::Version
126
111
  version: '0'
127
112
  - !ruby/object:Gem::Dependency
128
113
  name: guard
129
114
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
115
  requirements:
132
- - - ! '>='
116
+ - - '>='
133
117
  - !ruby/object:Gem::Version
134
118
  version: '0'
135
119
  type: :development
136
120
  prerelease: false
137
121
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
122
  requirements:
140
- - - ! '>='
123
+ - - '>='
141
124
  - !ruby/object:Gem::Version
142
125
  version: '0'
143
126
  - !ruby/object:Gem::Dependency
144
127
  name: guard-test
145
128
  requirement: !ruby/object:Gem::Requirement
146
- none: false
147
129
  requirements:
148
- - - ! '>='
130
+ - - '>='
149
131
  - !ruby/object:Gem::Version
150
132
  version: '0'
151
133
  type: :development
152
134
  prerelease: false
153
135
  version_requirements: !ruby/object:Gem::Requirement
154
- none: false
155
136
  requirements:
156
- - - ! '>='
137
+ - - '>='
157
138
  - !ruby/object:Gem::Version
158
139
  version: '0'
159
140
  - !ruby/object:Gem::Dependency
160
141
  name: rb-fsevent
161
142
  requirement: !ruby/object:Gem::Requirement
162
- none: false
163
143
  requirements:
164
- - - ! '>='
144
+ - - '>='
165
145
  - !ruby/object:Gem::Version
166
146
  version: '0'
167
147
  type: :development
168
148
  prerelease: false
169
149
  version_requirements: !ruby/object:Gem::Requirement
170
- none: false
171
150
  requirements:
172
- - - ! '>='
151
+ - - '>='
173
152
  - !ruby/object:Gem::Version
174
153
  version: '0'
175
154
  - !ruby/object:Gem::Dependency
176
155
  name: rb-inotify
177
156
  requirement: !ruby/object:Gem::Requirement
178
- none: false
179
157
  requirements:
180
- - - ! '>='
158
+ - - '>='
181
159
  - !ruby/object:Gem::Version
182
160
  version: '0'
183
161
  type: :development
184
162
  prerelease: false
185
163
  version_requirements: !ruby/object:Gem::Requirement
186
- none: false
187
164
  requirements:
188
- - - ! '>='
165
+ - - '>='
189
166
  - !ruby/object:Gem::Version
190
167
  version: '0'
191
168
  - !ruby/object:Gem::Dependency
192
169
  name: simplecov
193
170
  requirement: !ruby/object:Gem::Requirement
194
- none: false
195
171
  requirements:
196
- - - ! '>='
172
+ - - '>='
197
173
  - !ruby/object:Gem::Version
198
174
  version: '0'
199
175
  type: :development
200
176
  prerelease: false
201
177
  version_requirements: !ruby/object:Gem::Requirement
202
- none: false
203
178
  requirements:
204
- - - ! '>='
179
+ - - '>='
205
180
  - !ruby/object:Gem::Version
206
181
  version: '0'
207
182
  - !ruby/object:Gem::Dependency
208
183
  name: simplecov-rcov
209
184
  requirement: !ruby/object:Gem::Requirement
210
- none: false
211
185
  requirements:
212
- - - ! '>='
186
+ - - '>='
213
187
  - !ruby/object:Gem::Version
214
188
  version: '0'
215
189
  type: :development
216
190
  prerelease: false
217
191
  version_requirements: !ruby/object:Gem::Requirement
218
- none: false
219
192
  requirements:
220
- - - ! '>='
193
+ - - '>='
221
194
  - !ruby/object:Gem::Version
222
195
  version: '0'
223
196
  description: Collection of users and applications authentication methods for use when
@@ -231,7 +204,7 @@ extra_rdoc_files: []
231
204
  files:
232
205
  - .gitignore
233
206
  - Gemfile
234
- - MIT-LICENSE
207
+ - LICENSE
235
208
  - README.md
236
209
  - Rakefile
237
210
  - exvo_auth.gemspec
@@ -251,28 +224,27 @@ files:
251
224
  - test/test_exvo_auth.rb
252
225
  - test/test_integration.rb
253
226
  homepage: https://github.com/Exvo/exvo_auth
254
- licenses: []
227
+ licenses:
228
+ - MIT
229
+ metadata: {}
255
230
  post_install_message:
256
231
  rdoc_options: []
257
232
  require_paths:
258
233
  - lib
259
234
  required_ruby_version: !ruby/object:Gem::Requirement
260
- none: false
261
235
  requirements:
262
- - - ! '>='
236
+ - - '>='
263
237
  - !ruby/object:Gem::Version
264
238
  version: '0'
265
239
  required_rubygems_version: !ruby/object:Gem::Requirement
266
- none: false
267
240
  requirements:
268
- - - ! '>='
241
+ - - '>='
269
242
  - !ruby/object:Gem::Version
270
243
  version: '0'
271
244
  requirements: []
272
245
  rubyforge_project:
273
- rubygems_version: 1.8.24
246
+ rubygems_version: 2.0.3
274
247
  signing_key:
275
- specification_version: 3
248
+ specification_version: 4
276
249
  summary: User and App authentication for Exvo
277
250
  test_files: []
278
- has_rdoc: