gds-sso 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/gds-sso/user.rb CHANGED
@@ -33,10 +33,10 @@ module GDS
33
33
  module ClassMethods
34
34
  def find_for_gds_oauth(auth_hash)
35
35
  if user = self.find_by_uid(auth_hash["uid"])
36
- user.update_attributes(GDS::SSO::User.user_params_from_auth_hash(auth_hash), as: :oauth)
36
+ user.update_attributes(GDS::SSO::User.user_params_from_auth_hash(auth_hash.to_hash), as: :oauth)
37
37
  user
38
38
  else # Create a new user.
39
- self.create!(GDS::SSO::User.user_params_from_auth_hash(auth_hash), as: :oauth)
39
+ self.create!(GDS::SSO::User.user_params_from_auth_hash(auth_hash.to_hash), as: :oauth)
40
40
  end
41
41
  end
42
42
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "0.7.2"
3
+ VERSION = "0.7.3"
4
4
  end
5
5
  end
@@ -2313,3 +2313,87 @@ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:13:52 +0000
2313
2313
  Processing by ExampleController#restricted as JSON
2314
2314
  Authenticating with gds_sso_api_access strategy
2315
2315
  Completed 200 OK in 1ms (Views: 0.5ms)
2316
+
2317
+
2318
+ Started GET "/" for 127.0.0.1 at 2012-06-27 11:37:27 +0000
2319
+ Processing by ExampleController#index as HTML
2320
+ Rendered text template (0.0ms)
2321
+ Completed 200 OK in 46ms (Views: 45.6ms)
2322
+
2323
+
2324
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:37:27 +0000
2325
+ Processing by ExampleController#restricted as HTML
2326
+ Authenticating with gds_sso strategy
2327
+ Completed in 57ms
2328
+
2329
+
2330
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 11:37:27 +0000
2331
+
2332
+
2333
+ Started GET "/auth/gds/callback?code=b81fc47ad3813d319cc0fa7c222bf6ec13f57fc3a605e61ac4c3922330006333" for 127.0.0.1 at 2012-06-27 11:37:28 +0000
2334
+ Processing by AuthenticationsController#callback as HTML
2335
+ Parameters: {"code"=>"b81fc47ad3813d319cc0fa7c222bf6ec13f57fc3a605e61ac4c3922330006333"}
2336
+ Authenticating with gds_sso strategy
2337
+ Redirected to http://www.example-client.com/restricted
2338
+ Completed 302 Found in 1ms
2339
+
2340
+
2341
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:37:28 +0000
2342
+ Processing by ExampleController#restricted as HTML
2343
+ Completed 200 OK in 1ms (Views: 0.5ms)
2344
+
2345
+
2346
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:37:28 +0000
2347
+ Processing by ExampleController#restricted as HTML
2348
+ Authenticating with gds_sso strategy
2349
+ Completed in 0ms
2350
+
2351
+
2352
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 11:37:28 +0000
2353
+
2354
+
2355
+ Started GET "/auth/gds/callback?code=0d638bf8915a8386675f6d186e40a88424d7f774cdb57694e460edeaacefd31a" for 127.0.0.1 at 2012-06-27 11:37:28 +0000
2356
+ Processing by AuthenticationsController#callback as HTML
2357
+ Parameters: {"code"=>"0d638bf8915a8386675f6d186e40a88424d7f774cdb57694e460edeaacefd31a"}
2358
+ Authenticating with gds_sso strategy
2359
+ Redirected to http://www.example-client.com/restricted
2360
+ Completed 302 Found in 1ms
2361
+
2362
+
2363
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:37:28 +0000
2364
+ Processing by ExampleController#restricted as HTML
2365
+ Completed 200 OK in 1ms (Views: 0.6ms)
2366
+
2367
+
2368
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:37:28 +0000
2369
+ Processing by ExampleController#restricted as HTML
2370
+ Authenticating with gds_sso strategy
2371
+ Completed in 0ms
2372
+
2373
+
2374
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-06-27 11:37:28 +0000
2375
+
2376
+
2377
+ Started GET "/auth/gds/callback?code=10ad57610e0c5fd6d6855697bfd49a1794b4e61b5a475c00fe9fff16eadeef67" for 127.0.0.1 at 2012-06-27 11:37:29 +0000
2378
+ Processing by AuthenticationsController#callback as HTML
2379
+ Parameters: {"code"=>"10ad57610e0c5fd6d6855697bfd49a1794b4e61b5a475c00fe9fff16eadeef67"}
2380
+ Authenticating with gds_sso strategy
2381
+ Redirected to http://www.example-client.com/restricted
2382
+ Completed 302 Found in 1ms
2383
+
2384
+
2385
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:37:29 +0000
2386
+ Processing by ExampleController#restricted as HTML
2387
+ Completed 200 OK in 1ms (Views: 0.3ms)
2388
+
2389
+
2390
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:37:29 +0000
2391
+ Processing by ExampleController#restricted as JSON
2392
+ Authenticating with gds_sso_api_access strategy
2393
+ Completed in 58ms
2394
+
2395
+
2396
+ Started GET "/restricted" for 127.0.0.1 at 2012-06-27 11:37:29 +0000
2397
+ Processing by ExampleController#restricted as JSON
2398
+ Authenticating with gds_sso_api_access strategy
2399
+ Completed 200 OK in 1ms (Views: 0.5ms)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gds-sso
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.2
5
+ version: 0.7.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Patterson
@@ -204,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
204
  requirements:
205
205
  - - ">="
206
206
  - !ruby/object:Gem::Version
207
- hash: 4011251508422337613
207
+ hash: 1761120350076668284
208
208
  segments:
209
209
  - 0
210
210
  version: "0"
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - ">="
215
215
  - !ruby/object:Gem::Version
216
- hash: 4011251508422337613
216
+ hash: 1761120350076668284
217
217
  segments:
218
218
  - 0
219
219
  version: "0"