gds-sso 9.2.6 → 9.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,15 +9,15 @@ class Api::UserController < ActionController::Base
9
9
  user_json = JSON.parse(request.body.read)['user']
10
10
  oauth_hash = build_gds_oauth_hash(user_json)
11
11
  GDS::SSO::Config.user_klass.find_for_gds_oauth(oauth_hash)
12
- head :ok
12
+ head :ok, content_type: 'text/plain'
13
13
  end
14
14
 
15
15
  def reauth
16
16
  user = GDS::SSO::Config.user_klass.where(:uid => params[:uid]).first
17
17
  if user.nil? || user.set_remotely_signed_out!
18
- head :ok
18
+ head :ok, content_type: 'text/plain'
19
19
  else
20
- head 500
20
+ head 500, content_type: 'text/plain'
21
21
  end
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "9.2.6"
3
+ VERSION = "9.2.7"
4
4
  end
5
5
  end
@@ -60,6 +60,7 @@ describe Api::UserController, type: :controller do
60
60
  expect(@user_to_update.email).to eq("user@domain.com")
61
61
  expect(@user_to_update.permissions).to eq(["signin", "new permission"])
62
62
  expect(@user_to_update.organisation_slug).to eq("justice-league")
63
+ expect(response.content_type).to eq('text/plain')
63
64
  end
64
65
  end
65
66
 
@@ -86,6 +87,7 @@ describe Api::UserController, type: :controller do
86
87
  post :reauth, uid: "nonexistent-user"
87
88
 
88
89
  expect(response.status).to eq(200)
90
+ expect(response.content_type).to eq('text/plain')
89
91
  end
90
92
 
91
93
  it "should set remotely_signed_out to true on the user" do
@@ -99,6 +101,7 @@ describe Api::UserController, type: :controller do
99
101
 
100
102
  @user_to_update.reload
101
103
  expect(@user_to_update.remotely_signed_out).to be_true
104
+ expect(response.content_type).to eq('text/plain')
102
105
  end
103
106
  end
104
107
  end
@@ -1,376 +1,376 @@
1
1
  Connecting to database specified by database.yml
2
-  (1.6ms) select sqlite_version(*)
3
-  (11.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255))
4
-  (8.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
-  (8.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2
+  (18.4ms) select sqlite_version(*)
3
+  (13.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255))
4
+  (8.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
+  (9.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
6
   (0.1ms) begin transaction
7
- SQL (26.9ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31105"]]
8
-  (11.3ms) commit transaction
7
+ SQL (31.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36908"]]
8
+  (34.3ms) commit transaction
9
9
   (0.1ms) begin transaction
10
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32139"]]
11
-  (13.4ms) commit transaction
10
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32371"]]
11
+  (24.5ms) commit transaction
12
12
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
13
- Processing by Api::UserController#reauth as HTML
14
- Parameters: {"uid"=>"a1s2d31105"}
15
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
16
- Completed 403 Forbidden in 35.5ms (Views: 34.8ms | ActiveRecord: 0.0ms)
17
-  (0.1ms) begin transaction
18
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31032"]]
19
-  (11.2ms) commit transaction
20
-  (0.1ms) begin transaction
21
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33736"]]
22
-  (11.1ms) commit transaction
23
- Processing by Api::UserController#reauth as HTML
24
- Parameters: {"uid"=>"nonexistent-user"}
25
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
26
- Completed 200 OK in 26.6ms (ActiveRecord: 0.2ms)
27
-  (0.1ms) begin transaction
28
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3267"]]
29
-  (14.1ms) commit transaction
13
+ Processing by Api::UserController#update as HTML
14
+ Parameters: {"uid"=>"a1s2d36908"}
15
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
16
+ Completed 403 Forbidden in 39.8ms (Views: 13.5ms | ActiveRecord: 0.0ms)
30
17
   (0.1ms) begin transaction
31
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34802"]]
32
-  (9.9ms) commit transaction
33
- Processing by Api::UserController#reauth as HTML
34
- Parameters: {"uid"=>"a1s2d3267"}
35
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3267' LIMIT 1
36
-  (0.0ms) begin transaction
37
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
38
- - signin
39
- ' WHERE "users"."id" = 5
40
-  (6.8ms) commit transaction
41
- Completed 200 OK in 10.6ms (ActiveRecord: 7.2ms)
42
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
43
-  (0.0ms) begin transaction
44
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31538"]]
45
-  (10.3ms) commit transaction
18
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38535"]]
19
+  (12.5ms) commit transaction
46
20
   (0.1ms) begin transaction
47
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38526"]]
48
-  (8.7ms) commit transaction
21
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37781"]]
22
+  (10.3ms) commit transaction
49
23
  Processing by Api::UserController#update as HTML
50
- Parameters: {"uid"=>"a1s2d31538"}
51
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31538' LIMIT 1
24
+ Parameters: {"uid"=>"a1s2d38535"}
25
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38535' LIMIT 1
52
26
   (0.0ms) begin transaction
53
-  (0.1ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
27
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
54
28
  - signin
55
29
  - new permission
56
- ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 7
57
-  (9.2ms) commit transaction
58
- Completed 200 OK in 12.5ms (ActiveRecord: 9.5ms)
59
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
30
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
31
+  (13.6ms) commit transaction
32
+ Completed 200 OK in 21.3ms (ActiveRecord: 14.0ms)
33
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
60
34
   (0.1ms) begin transaction
61
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31443"]]
62
-  (11.6ms) commit transaction
35
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37830"]]
36
+  (12.2ms) commit transaction
63
37
   (0.1ms) begin transaction
64
- SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34469"]]
65
-  (7.1ms) commit transaction
38
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32204"]]
39
+  (10.5ms) commit transaction
66
40
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
67
- Processing by Api::UserController#update as HTML
68
- Parameters: {"uid"=>"a1s2d31443"}
69
- Completed 403 Forbidden in 1.3ms (Views: 0.8ms | ActiveRecord: 0.0ms)
70
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:15 +0000
71
- Processing by ExampleController#restricted as JSON
72
- Authenticating with gds_bearer_token strategy
73
- Completed in 137.2ms
74
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:15 +0000
75
- Processing by ExampleController#restricted as JSON
76
- Authenticating with gds_bearer_token strategy
77
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
78
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
79
-  (0.0ms) begin transaction
80
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
81
-  (15.8ms) commit transaction
82
-  (0.0ms) begin transaction
83
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
84
- - signin
85
- ' WHERE "users"."id" = 11
86
-  (9.5ms) commit transaction
87
- Completed 200 OK in 380.2ms (Views: 2.9ms | ActiveRecord: 25.9ms)
88
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-06 15:54:15 +0000
89
- Processing by ExampleController#this_requires_signin_permission as JSON
90
- Authenticating with gds_bearer_token strategy
91
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
41
+ Processing by Api::UserController#reauth as HTML
42
+ Parameters: {"uid"=>"a1s2d37830"}
43
+ Completed 403 Forbidden in 1.5ms (Views: 0.9ms | ActiveRecord: 0.0ms)
44
+  (0.1ms) begin transaction
45
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31716"]]
46
+  (14.8ms) commit transaction
47
+  (0.1ms) begin transaction
48
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31621"]]
49
+  (12.3ms) commit transaction
50
+ Processing by Api::UserController#reauth as HTML
51
+ Parameters: {"uid"=>"nonexistent-user"}
52
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
53
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
92
54
   (0.0ms) begin transaction
93
-  (0.1ms) UPDATE "users" SET "permissions" = '---
94
- - signin
95
- ' WHERE "users"."id" = 11
96
-  (11.9ms) commit transaction
55
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3573"]]
56
+  (15.8ms) commit transaction
97
57
   (0.1ms) begin transaction
98
-  (0.1ms) UPDATE "users" SET "permissions" = '---
58
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35885"]]
59
+  (13.5ms) commit transaction
60
+ Processing by Api::UserController#reauth as HTML
61
+ Parameters: {"uid"=>"a1s2d3573"}
62
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3573' LIMIT 1
63
+  (0.0ms) begin transaction
64
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
99
65
  - signin
100
- ' WHERE "users"."id" = 11
101
-  (9.2ms) commit transaction
102
- Completed 200 OK in 58.5ms (Views: 0.4ms | ActiveRecord: 21.7ms)
103
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-06 15:54:16 +0000
66
+ ' WHERE "users"."id" = 9
67
+  (13.3ms) commit transaction
68
+ Completed 200 OK in 16.6ms (ActiveRecord: 13.7ms)
69
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
70
+ Started GET "/" for 127.0.0.1 at 2014-05-28 10:01:15 +0000
71
+ Processing by ExampleController#index as HTML
72
+ Completed 200 OK in 3.4ms (Views: 2.9ms | ActiveRecord: 0.0ms)
73
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:16 +0000
104
74
  Processing by ExampleController#this_requires_signin_permission as HTML
105
75
  Authenticating with gds_sso strategy
106
- Completed in 0.3ms
107
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:16 +0000
108
- Started GET "/auth/gds/callback?code=b7a8fe5651e40ea7f0f3a11a9833e6fb0d89e92e2e56ba13b58bb5493536e400&state=408da5383e84b5a141a9ec95269ac77041e7e0087e82e652" for 127.0.0.1 at 2014-05-06 15:54:16 +0000
76
+ Completed in 38.9ms
77
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:16 +0000
78
+ Started GET "/auth/gds/callback?code=faf6aab82246cb23fef1879ead32e8505144ef734fb2432626a0667d3af46c76&state=0d6136bf4b8f56ea9bca777052b46067399c6d0703a7d78a" for 127.0.0.1 at 2014-05-28 10:01:17 +0000
109
79
  Processing by AuthenticationsController#callback as HTML
110
- Parameters: {"code"=>"b7a8fe5651e40ea7f0f3a11a9833e6fb0d89e92e2e56ba13b58bb5493536e400", "state"=>"408da5383e84b5a141a9ec95269ac77041e7e0087e82e652"}
80
+ Parameters: {"code"=>"faf6aab82246cb23fef1879ead32e8505144ef734fb2432626a0667d3af46c76", "state"=>"0d6136bf4b8f56ea9bca777052b46067399c6d0703a7d78a"}
111
81
  Authenticating with gds_sso strategy
112
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
113
-  (0.0ms) begin transaction
114
-  (0.1ms) UPDATE "users" SET "permissions" = '---
115
- - signin
116
- ' WHERE "users"."id" = 11
117
-  (10.0ms) commit transaction
118
-  (0.0ms) begin transaction
119
-  (0.1ms) UPDATE "users" SET "permissions" = '---
82
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
83
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
84
+  (0.1ms) begin transaction
85
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
86
+  (21.7ms) commit transaction
87
+  (0.1ms) begin transaction
88
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
120
89
  - signin
121
90
  ' WHERE "users"."id" = 11
122
-  (6.8ms) commit transaction
91
+  (13.8ms) commit transaction
123
92
  Redirected to http://www.example-client.com/this_requires_signin_permission
124
- Completed 302 Found in 21.8ms (ActiveRecord: 17.4ms)
125
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-06 15:54:16 +0000
93
+ Completed 302 Found in 42.2ms (ActiveRecord: 36.3ms)
94
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:17 +0000
126
95
  Processing by ExampleController#this_requires_signin_permission as HTML
127
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
128
- Completed 200 OK in 2.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
129
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-06 15:54:16 +0000
96
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
97
+ Completed 200 OK in 1.8ms (Views: 0.4ms | ActiveRecord: 0.2ms)
98
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:17 +0000
130
99
  Processing by ExampleController#this_requires_signin_permission as HTML
131
100
  Authenticating with gds_sso strategy
132
- Completed in 0.1ms
133
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:16 +0000
134
- Started GET "/auth/gds/callback?code=2f9f66f75458e23525cf3636eae1d60fde7b97ad5f2b30b82e08ad01cd41ba26&state=3da43637553f8b5c012db5e905ede569da7a8b5bb1b01494" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
101
+ Completed in 0.2ms
102
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:17 +0000
103
+ Started GET "/auth/gds/callback?code=29b5e159e6fb693ebc12b812a4565419724e8690ba041aedf91176d321b70320&state=6ced3aac4b4c56591263d743d0998eae8fb01fbcdd1473c4" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
135
104
  Processing by AuthenticationsController#callback as HTML
136
- Parameters: {"code"=>"2f9f66f75458e23525cf3636eae1d60fde7b97ad5f2b30b82e08ad01cd41ba26", "state"=>"3da43637553f8b5c012db5e905ede569da7a8b5bb1b01494"}
105
+ Parameters: {"code"=>"29b5e159e6fb693ebc12b812a4565419724e8690ba041aedf91176d321b70320", "state"=>"6ced3aac4b4c56591263d743d0998eae8fb01fbcdd1473c4"}
137
106
  Authenticating with gds_sso strategy
138
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
107
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
139
108
   (0.0ms) begin transaction
140
-  (0.1ms) UPDATE "users" SET "permissions" = '---
109
+  (0.2ms) UPDATE "users" SET "permissions" = '---
141
110
  - signin
142
111
  ' WHERE "users"."id" = 11
143
-  (20.6ms) commit transaction
144
-  (0.0ms) begin transaction
145
-  (0.1ms) UPDATE "users" SET "permissions" = '---
112
+  (15.1ms) commit transaction
113
+  (0.1ms) begin transaction
114
+  (0.2ms) UPDATE "users" SET "permissions" = '---
146
115
  - signin
147
116
  ' WHERE "users"."id" = 11
148
-  (14.8ms) commit transaction
117
+  (9.8ms) commit transaction
149
118
  Redirected to http://www.example-client.com/this_requires_signin_permission
150
- Completed 302 Found in 39.3ms (ActiveRecord: 35.8ms)
151
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
119
+ Completed 302 Found in 29.9ms (ActiveRecord: 25.5ms)
120
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
152
121
  Processing by ExampleController#this_requires_signin_permission as HTML
153
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
154
- Completed 200 OK in 4.5ms (Views: 0.7ms | ActiveRecord: 0.1ms)
155
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
122
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
123
+ Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
124
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
156
125
  Processing by ExampleController#restricted as HTML
157
126
  Authenticating with gds_sso strategy
158
- Completed in 0.3ms
159
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
160
- Started GET "/auth/gds/callback?code=584f8b50aa15b27e1d58fc86b01c30140a607c9b44ccdd94e74d1f2653eca90a&state=dbc29cfccbf57751b07bb8261abfbe54e96cca1348d3385c" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
127
+ Completed in 0.6ms
128
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
129
+ Started GET "/auth/gds/callback?code=395fdc86b83c4935e168b413a3f2f4f56214dc097f7cd0e2dd20d4b87ad57316&state=05f426033c7da87aac3fd1d66714bd72bb90a0f541feedab" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
161
130
  Processing by AuthenticationsController#callback as HTML
162
- Parameters: {"code"=>"584f8b50aa15b27e1d58fc86b01c30140a607c9b44ccdd94e74d1f2653eca90a", "state"=>"dbc29cfccbf57751b07bb8261abfbe54e96cca1348d3385c"}
131
+ Parameters: {"code"=>"395fdc86b83c4935e168b413a3f2f4f56214dc097f7cd0e2dd20d4b87ad57316", "state"=>"05f426033c7da87aac3fd1d66714bd72bb90a0f541feedab"}
163
132
  Authenticating with gds_sso strategy
164
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
133
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
165
134
   (0.1ms) begin transaction
166
-  (0.1ms) UPDATE "users" SET "permissions" = '---
135
+  (0.2ms) UPDATE "users" SET "permissions" = '---
167
136
  - signin
168
137
  ' WHERE "users"."id" = 11
169
-  (17.8ms) commit transaction
170
-  (0.0ms) begin transaction
171
-  (0.1ms) UPDATE "users" SET "permissions" = '---
138
+  (13.2ms) commit transaction
139
+  (0.1ms) begin transaction
140
+  (0.2ms) UPDATE "users" SET "permissions" = '---
172
141
  - signin
173
142
  ' WHERE "users"."id" = 11
174
-  (11.0ms) commit transaction
143
+  (12.7ms) commit transaction
175
144
  Redirected to http://www.example-client.com/restricted
176
- Completed 302 Found in 33.2ms (ActiveRecord: 29.2ms)
177
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
145
+ Completed 302 Found in 32.2ms (ActiveRecord: 26.6ms)
146
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
178
147
  Processing by ExampleController#restricted as HTML
179
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
180
- Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
181
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
148
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
149
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
150
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
182
151
  Processing by ExampleController#restricted as HTML
183
152
  Authenticating with gds_sso strategy
184
- Completed in 0.2ms
185
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
186
- Started GET "/auth/gds/callback?code=84b329588260d4179f0358fbc48d7792beac80124b14be27bf9db95a42dae017&state=518680c61baa4fe72c53ebe49dff88537ff16c68a93368be" for 127.0.0.1 at 2014-05-06 15:54:17 +0000
153
+ Completed in 0.3ms
154
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
155
+ Started GET "/auth/gds/callback?code=287809a753f9fab30b73667a774f37a2cf7262312f41aecb9467052f2808769d&state=65566e10cd35a26c965c9b3260d3b111c952d6beea198613" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
187
156
  Processing by AuthenticationsController#callback as HTML
188
- Parameters: {"code"=>"84b329588260d4179f0358fbc48d7792beac80124b14be27bf9db95a42dae017", "state"=>"518680c61baa4fe72c53ebe49dff88537ff16c68a93368be"}
157
+ Parameters: {"code"=>"287809a753f9fab30b73667a774f37a2cf7262312f41aecb9467052f2808769d", "state"=>"65566e10cd35a26c965c9b3260d3b111c952d6beea198613"}
189
158
  Authenticating with gds_sso strategy
190
159
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
191
-  (0.0ms) begin transaction
192
-  (0.1ms) UPDATE "users" SET "permissions" = '---
160
+  (0.1ms) begin transaction
161
+  (0.2ms) UPDATE "users" SET "permissions" = '---
193
162
  - signin
194
163
  ' WHERE "users"."id" = 11
195
-  (10.2ms) commit transaction
196
-  (0.0ms) begin transaction
197
-  (0.1ms) UPDATE "users" SET "permissions" = '---
164
+  (11.0ms) commit transaction
165
+  (0.1ms) begin transaction
166
+  (0.2ms) UPDATE "users" SET "permissions" = '---
198
167
  - signin
199
168
  ' WHERE "users"."id" = 11
200
-  (7.4ms) commit transaction
169
+  (9.0ms) commit transaction
201
170
  Redirected to http://www.example-client.com/restricted
202
- Completed 302 Found in 22.3ms (ActiveRecord: 18.1ms)
203
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
171
+ Completed 302 Found in 26.5ms (ActiveRecord: 20.8ms)
172
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
204
173
  Processing by ExampleController#restricted as HTML
205
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
206
- Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
207
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
174
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
175
+ Completed 200 OK in 1.7ms (Views: 0.5ms | ActiveRecord: 0.2ms)
176
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
208
177
  Processing by ExampleController#restricted as HTML
209
178
  Authenticating with gds_sso strategy
210
179
  Completed in 0.2ms
211
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
212
- Started GET "/auth/gds/callback?code=944cb01ba71cf42e00a77c1bbc9133b760bf28220aadf30184612d50ce84cbaf&state=f4661d0f0e69ee6cf821e758b6b61defada574f54c6412db" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
180
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
181
+ Started GET "/auth/gds/callback?code=07998a069ae35cedf19d2ae351243b8852a5c1be8d02659290c0b411f9abd216&state=b7048d5a343fc6946e7fd6419d0b458e53890e0e1ed0fe3b" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
213
182
  Processing by AuthenticationsController#callback as HTML
214
- Parameters: {"code"=>"944cb01ba71cf42e00a77c1bbc9133b760bf28220aadf30184612d50ce84cbaf", "state"=>"f4661d0f0e69ee6cf821e758b6b61defada574f54c6412db"}
183
+ Parameters: {"code"=>"07998a069ae35cedf19d2ae351243b8852a5c1be8d02659290c0b411f9abd216", "state"=>"b7048d5a343fc6946e7fd6419d0b458e53890e0e1ed0fe3b"}
215
184
  Authenticating with gds_sso strategy
216
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
185
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
217
186
   (0.0ms) begin transaction
218
-  (0.1ms) UPDATE "users" SET "permissions" = '---
187
+  (0.2ms) UPDATE "users" SET "permissions" = '---
219
188
  - signin
220
189
  ' WHERE "users"."id" = 11
221
-  (20.9ms) commit transaction
190
+  (15.0ms) commit transaction
222
191
   (0.1ms) begin transaction
223
-  (0.1ms) UPDATE "users" SET "permissions" = '---
192
+  (0.2ms) UPDATE "users" SET "permissions" = '---
224
193
  - signin
225
194
  ' WHERE "users"."id" = 11
226
-  (8.4ms) commit transaction
195
+  (12.2ms) commit transaction
227
196
  Redirected to http://www.example-client.com/restricted
228
- Completed 302 Found in 33.8ms (ActiveRecord: 29.9ms)
229
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
197
+ Completed 302 Found in 32.3ms (ActiveRecord: 27.8ms)
198
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
230
199
  Processing by ExampleController#restricted as HTML
231
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
232
- Completed 200 OK in 1.2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
233
- Started GET "/" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
234
- Processing by ExampleController#index as HTML
235
- Completed 200 OK in 0.7ms (Views: 0.4ms | ActiveRecord: 0.0ms)
236
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
200
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
201
+ Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
202
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
237
203
  Processing by ExampleController#restricted as HTML
238
204
  Authenticating with gds_sso strategy
239
- Completed in 0.2ms
240
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
241
- Started GET "/auth/gds/callback?code=4e983f1c26ad9c7316f5b2b44b26df80faa05df243ecce739db24f6ec6e0fad8&state=fd6b5ea1fea4fcfc3de0825201272b36fbeef8b61c702c05" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
205
+ Completed in 0.4ms
206
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
207
+ Started GET "/auth/gds/callback?code=3b6e908312a657f10f1707f88805d4b7f3ca33eed1692822ab5537384849292e&state=22c2ad34c40644a633fe408a01f949947306e62bfd39938c" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
242
208
  Processing by AuthenticationsController#callback as HTML
243
- Parameters: {"code"=>"4e983f1c26ad9c7316f5b2b44b26df80faa05df243ecce739db24f6ec6e0fad8", "state"=>"fd6b5ea1fea4fcfc3de0825201272b36fbeef8b61c702c05"}
209
+ Parameters: {"code"=>"3b6e908312a657f10f1707f88805d4b7f3ca33eed1692822ab5537384849292e", "state"=>"22c2ad34c40644a633fe408a01f949947306e62bfd39938c"}
244
210
  Authenticating with gds_sso strategy
245
211
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
246
212
   (0.1ms) begin transaction
247
-  (0.1ms) UPDATE "users" SET "permissions" = '---
213
+  (0.2ms) UPDATE "users" SET "permissions" = '---
248
214
  - signin
249
215
  ' WHERE "users"."id" = 11
250
-  (9.7ms) commit transaction
251
-  (0.0ms) begin transaction
252
-  (0.1ms) UPDATE "users" SET "permissions" = '---
216
+  (11.4ms) commit transaction
217
+  (0.1ms) begin transaction
218
+  (0.2ms) UPDATE "users" SET "permissions" = '---
253
219
  - signin
254
220
  ' WHERE "users"."id" = 11
255
-  (9.3ms) commit transaction
221
+  (13.6ms) commit transaction
256
222
  Redirected to http://www.example-client.com/restricted
257
- Completed 302 Found in 23.8ms (ActiveRecord: 19.5ms)
258
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
223
+ Completed 302 Found in 31.1ms (ActiveRecord: 25.6ms)
224
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
259
225
  Processing by ExampleController#restricted as HTML
260
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
261
- Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
262
- Started GET "/restricted" for 127.0.0.1 at 2014-05-07 11:49:19 +0000
263
- Processing by ExampleController#restricted as HTML
264
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
265
- Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
266
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:19 +0000
226
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
227
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
228
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
229
+  (0.1ms) begin transaction
230
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
231
+ - signin
232
+ ' WHERE "users"."id" = 11
233
+  (16.4ms) commit transaction
234
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
267
235
  Processing by ExampleController#restricted as HTML
236
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
268
237
  Authenticating with gds_sso strategy
269
- Completed in 0.3ms
270
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:19 +0000
271
- Started GET "/auth/gds/callback?code=967dc585f16766b4455295d015da62575c2c32934ac5cbd90ed912ffa046c0f4&state=98e481aea30d972a9cd7da88bd6824d7b03a19627a5b68e4" for 127.0.0.1 at 2014-05-06 15:54:19 +0000
238
+ Completed in 1.2ms
239
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
240
+ Started GET "/auth/gds/callback?code=59f3ff77264922e41505a1d74edf5086fb9c0ab0ce7eaeda35e3eb9c5e1d73f5&state=50445985dfd8188201ecf12097a6d45fd8b2fb4a1567d8a5" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
272
241
  Processing by AuthenticationsController#callback as HTML
273
- Parameters: {"code"=>"967dc585f16766b4455295d015da62575c2c32934ac5cbd90ed912ffa046c0f4", "state"=>"98e481aea30d972a9cd7da88bd6824d7b03a19627a5b68e4"}
242
+ Parameters: {"code"=>"59f3ff77264922e41505a1d74edf5086fb9c0ab0ce7eaeda35e3eb9c5e1d73f5", "state"=>"50445985dfd8188201ecf12097a6d45fd8b2fb4a1567d8a5"}
274
243
  Authenticating with gds_sso strategy
275
244
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
276
245
   (0.0ms) begin transaction
277
-  (0.1ms) UPDATE "users" SET "permissions" = '---
246
+  (0.2ms) UPDATE "users" SET "permissions" = '---
278
247
  - signin
279
248
  ' WHERE "users"."id" = 11
280
-  (12.3ms) commit transaction
281
-  (0.0ms) begin transaction
282
-  (0.1ms) UPDATE "users" SET "permissions" = '---
249
+  (17.5ms) commit transaction
250
+  (0.1ms) begin transaction
251
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
283
252
  - signin
284
253
  ' WHERE "users"."id" = 11
285
-  (17.2ms) commit transaction
254
+  (15.5ms) commit transaction
286
255
  Redirected to http://www.example-client.com/restricted
287
- Completed 302 Found in 34.5ms (ActiveRecord: 30.1ms)
288
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:19 +0000
256
+ Completed 302 Found in 39.0ms (ActiveRecord: 33.7ms)
257
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
289
258
  Processing by ExampleController#restricted as HTML
290
259
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
291
- Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
292
- Started GET "/restricted" for 127.0.0.1 at 2014-05-07 11:59:19 +0000
260
+ Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
261
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
293
262
  Processing by ExampleController#restricted as HTML
294
263
  Authenticating with gds_sso strategy
295
264
  Completed in 0.3ms
296
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-07 11:59:19 +0000
297
- Started GET "/auth/gds/callback?code=92e8356c4b88dd847c4439415e1f0428cbec8e741982f69c87e504c01f98d445&state=766810bacdbf4a323274685105bf6796e68f16a622d8be41" for 127.0.0.1 at 2014-05-07 11:59:19 +0000
265
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
266
+ Started GET "/auth/gds/callback?code=15a391624cbed2a7b33d9678b6534883c9fa02949bb1c08fde5cbccbc4eacee5&state=9d596518fffb5957e71141544b4f3252a3bc869f5e279de7" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
298
267
  Processing by AuthenticationsController#callback as HTML
299
- Parameters: {"code"=>"92e8356c4b88dd847c4439415e1f0428cbec8e741982f69c87e504c01f98d445", "state"=>"766810bacdbf4a323274685105bf6796e68f16a622d8be41"}
268
+ Parameters: {"code"=>"15a391624cbed2a7b33d9678b6534883c9fa02949bb1c08fde5cbccbc4eacee5", "state"=>"9d596518fffb5957e71141544b4f3252a3bc869f5e279de7"}
300
269
  Authenticating with gds_sso strategy
301
270
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
302
-  (0.0ms) begin transaction
303
-  (0.1ms) UPDATE "users" SET "permissions" = '---
271
+  (0.1ms) begin transaction
272
+  (0.2ms) UPDATE "users" SET "permissions" = '---
304
273
  - signin
305
274
  ' WHERE "users"."id" = 11
306
-  (11.0ms) commit transaction
307
-  (0.0ms) begin transaction
308
-  (0.1ms) UPDATE "users" SET "permissions" = '---
275
+  (13.4ms) commit transaction
276
+  (0.1ms) begin transaction
277
+  (0.2ms) UPDATE "users" SET "permissions" = '---
309
278
  - signin
310
279
  ' WHERE "users"."id" = 11
311
-  (10.9ms) commit transaction
280
+  (16.3ms) commit transaction
312
281
  Redirected to http://www.example-client.com/restricted
313
- Completed 302 Found in 26.1ms (ActiveRecord: 22.5ms)
314
- Started GET "/restricted" for 127.0.0.1 at 2014-05-07 11:59:19 +0000
282
+ Completed 302 Found in 35.5ms (ActiveRecord: 30.3ms)
283
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
315
284
  Processing by ExampleController#restricted as HTML
316
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
317
- Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
318
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:19 +0000
285
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
286
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
287
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-29 06:06:20 +0000
319
288
  Processing by ExampleController#restricted as HTML
320
289
  Authenticating with gds_sso strategy
321
- Completed in 0.3ms
322
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:19 +0000
323
- Started GET "/auth/gds/callback?code=5ecea67f4e940da2c33a0c8a6df846604bc6b448649c2c5154a3208fdb9f8a95&state=5cfcb5f00cfb66545f931a397ffe037e89e8a4e3dd99d830" for 127.0.0.1 at 2014-05-06 15:54:19 +0000
290
+ Completed in 0.4ms
291
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-29 06:06:20 +0000
292
+ Started GET "/auth/gds/callback?code=d6c80119d54145028f227274fa51d0be7788905b5790e0e026c6d302cb055057&state=cfcca15c646ccb5a2b880827fde549c146abf61232b26b77" for 127.0.0.1 at 2014-05-29 06:06:20 +0000
324
293
  Processing by AuthenticationsController#callback as HTML
325
- Parameters: {"code"=>"5ecea67f4e940da2c33a0c8a6df846604bc6b448649c2c5154a3208fdb9f8a95", "state"=>"5cfcb5f00cfb66545f931a397ffe037e89e8a4e3dd99d830"}
294
+ Parameters: {"code"=>"d6c80119d54145028f227274fa51d0be7788905b5790e0e026c6d302cb055057", "state"=>"cfcca15c646ccb5a2b880827fde549c146abf61232b26b77"}
326
295
  Authenticating with gds_sso strategy
327
296
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
328
-  (0.0ms) begin transaction
329
-  (0.1ms) UPDATE "users" SET "permissions" = '---
297
+  (0.1ms) begin transaction
298
+  (0.2ms) UPDATE "users" SET "permissions" = '---
330
299
  - signin
331
300
  ' WHERE "users"."id" = 11
332
-  (9.5ms) commit transaction
333
-  (0.0ms) begin transaction
301
+  (10.3ms) commit transaction
302
+  (0.1ms) begin transaction
334
303
   (0.1ms) UPDATE "users" SET "permissions" = '---
335
304
  - signin
336
305
  ' WHERE "users"."id" = 11
337
-  (7.3ms) commit transaction
306
+  (12.6ms) commit transaction
338
307
  Redirected to http://www.example-client.com/restricted
339
- Completed 302 Found in 21.8ms (ActiveRecord: 17.4ms)
340
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:19 +0000
308
+ Completed 302 Found in 27.3ms (ActiveRecord: 23.5ms)
309
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-29 06:06:21 +0000
341
310
  Processing by ExampleController#restricted as HTML
342
311
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
343
- Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
344
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
345
-  (0.0ms) begin transaction
346
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
347
- - signin
348
- ' WHERE "users"."id" = 11
349
-  (8.6ms) commit transaction
350
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:20 +0000
312
+ Completed 200 OK in 1.3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
313
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
351
314
  Processing by ExampleController#restricted as HTML
352
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
353
315
  Authenticating with gds_sso strategy
354
- Completed in 0.8ms
355
- Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06 15:54:20 +0000
356
- Started GET "/auth/gds/callback?code=08fad3db2e47e948e6b9413a1030ebbea2f3e9ed88cd13a87bd90e32e5a8e40e&state=91c0097352e7b98c329a72a26b7f289609bd44f7b42a7a15" for 127.0.0.1 at 2014-05-06 15:54:20 +0000
316
+ Completed in 0.4ms
317
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
318
+ Started GET "/auth/gds/callback?code=bab47efe786ae1e03f7b8d1d151976af33314e80eb553d5fbd313d66f6d55406&state=88b33e9f9c7d2f5a6259251aea3570197a7dc407d8421f02" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
357
319
  Processing by AuthenticationsController#callback as HTML
358
- Parameters: {"code"=>"08fad3db2e47e948e6b9413a1030ebbea2f3e9ed88cd13a87bd90e32e5a8e40e", "state"=>"91c0097352e7b98c329a72a26b7f289609bd44f7b42a7a15"}
320
+ Parameters: {"code"=>"bab47efe786ae1e03f7b8d1d151976af33314e80eb553d5fbd313d66f6d55406", "state"=>"88b33e9f9c7d2f5a6259251aea3570197a7dc407d8421f02"}
359
321
  Authenticating with gds_sso strategy
360
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
322
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
323
+  (0.1ms) begin transaction
324
+  (0.2ms) UPDATE "users" SET "permissions" = '---
325
+ - signin
326
+ ' WHERE "users"."id" = 11
327
+  (12.9ms) commit transaction
361
328
   (0.0ms) begin transaction
362
329
   (0.1ms) UPDATE "users" SET "permissions" = '---
363
330
  - signin
364
331
  ' WHERE "users"."id" = 11
365
-  (8.9ms) commit transaction
366
-  (0.0ms) begin transaction
367
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
368
- - signin
369
- ' WHERE "users"."id" = 11
370
-  (12.6ms) commit transaction
332
+  (11.6ms) commit transaction
371
333
  Redirected to http://www.example-client.com/restricted
372
- Completed 302 Found in 25.9ms (ActiveRecord: 22.0ms)
373
- Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:20 +0000
334
+ Completed 302 Found in 30.4ms (ActiveRecord: 25.2ms)
335
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
336
+ Processing by ExampleController#restricted as HTML
337
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
338
+ Completed 200 OK in 1.9ms (Views: 0.5ms | ActiveRecord: 0.2ms)
339
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-29 05:56:21 +0000
374
340
  Processing by ExampleController#restricted as HTML
375
341
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
376
- Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
342
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
343
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
344
+ Processing by ExampleController#restricted as JSON
345
+ Authenticating with gds_bearer_token strategy
346
+ Completed in 8.6ms
347
+ Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
348
+ Processing by ExampleController#restricted as JSON
349
+ Authenticating with gds_bearer_token strategy
350
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
351
+  (0.1ms) begin transaction
352
+  (0.2ms) UPDATE "users" SET "permissions" = '---
353
+ - signin
354
+ ' WHERE "users"."id" = 11
355
+  (25.0ms) commit transaction
356
+  (0.1ms) begin transaction
357
+  (0.3ms) UPDATE "users" SET "permissions" = '---
358
+ - signin
359
+ ' WHERE "users"."id" = 11
360
+  (32.0ms) commit transaction
361
+ Completed 200 OK in 215.4ms (Views: 0.6ms | ActiveRecord: 58.0ms)
362
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:22 +0000
363
+ Processing by ExampleController#this_requires_signin_permission as JSON
364
+ Authenticating with gds_bearer_token strategy
365
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
366
+  (0.1ms) begin transaction
367
+  (0.2ms) UPDATE "users" SET "permissions" = '---
368
+ - signin
369
+ ' WHERE "users"."id" = 11
370
+  (20.9ms) commit transaction
371
+  (0.1ms) begin transaction
372
+  (0.2ms) UPDATE "users" SET "permissions" = '---
373
+ - signin
374
+ ' WHERE "users"."id" = 11
375
+  (11.1ms) commit transaction
376
+ Completed 200 OK in 91.1ms (Views: 0.5ms | ActiveRecord: 32.6ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.6
4
+ version: 9.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-05-06 00:00:00.000000000 Z
13
+ date: 2014-05-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -315,7 +315,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
315
315
  version: '0'
316
316
  segments:
317
317
  - 0
318
- hash: 1214135640714652604
318
+ hash: 2232045673608108883
319
319
  required_rubygems_version: !ruby/object:Gem::Requirement
320
320
  none: false
321
321
  requirements:
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  version: '0'
325
325
  segments:
326
326
  - 0
327
- hash: 1214135640714652604
327
+ hash: 2232045673608108883
328
328
  requirements: []
329
329
  rubyforge_project: gds-sso
330
330
  rubygems_version: 1.8.23