gds-sso 13.4.0 → 13.5.0

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.
@@ -1,60 +1,60 @@
1
-  (8.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
-  (4.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1
+  (6.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
2
+  (5.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
3
   (0.1ms) select sqlite_version(*)
4
-  (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:07 +0000
4
+  (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:13 +0000
6
6
  Processing by ExampleController#restricted as HTML
7
7
  Authenticating with gds_sso strategy
8
- Completed in 8ms (ActiveRecord: 0.0ms)
9
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:07 +0000
10
- Started GET "/auth/gds/callback?code=cb9de2b51662d2548bcdfed5e23899e888d2161499fa2b3ced9871baaac2b8fd&state=84b5d64754faaf9cd83ccd73389793181b3298770514eabe" for 127.0.0.1 at 2017-12-11 18:11:17 +0000
8
+ Completed in 9ms (ActiveRecord: 0.0ms)
9
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:13 +0000
10
+ Started GET "/auth/gds/callback?code=4f80a44df83c89a482a83e9cba4bcb833aadd62e80c5882c33f4f1436e3494b3&state=d1b0b0aba6f9cda66d4c3d34106b2c9ced33efc2ba5c2594" for 127.0.0.1 at 2017-12-15 16:09:23 +0000
11
11
  Processing by AuthenticationsController#callback as HTML
12
- Parameters: {"code"=>"cb9de2b51662d2548bcdfed5e23899e888d2161499fa2b3ced9871baaac2b8fd", "state"=>"84b5d64754faaf9cd83ccd73389793181b3298770514eabe"}
12
+ Parameters: {"code"=>"4f80a44df83c89a482a83e9cba4bcb833aadd62e80c5882c33f4f1436e3494b3", "state"=>"d1b0b0aba6f9cda66d4c3d34106b2c9ced33efc2ba5c2594"}
13
13
  Authenticating with gds_sso strategy
14
14
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
15
15
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
16
16
   (0.1ms) begin transaction
17
17
  SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
18
-  (7.5ms) commit transaction
18
+  (8.8ms) commit transaction
19
19
   (0.1ms) begin transaction
20
20
  SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
21
-  (5.0ms) commit transaction
21
+  (3.9ms) commit transaction
22
22
  Redirected to http://www.example-client.com/restricted
23
- Completed 302 Found in 38ms (ActiveRecord: 13.6ms)
24
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:17 +0000
23
+ Completed 302 Found in 40ms (ActiveRecord: 13.9ms)
24
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:23 +0000
25
25
  Processing by ExampleController#restricted as HTML
26
26
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
27
27
  Rendered text template (0.0ms)
28
- Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.2ms)
29
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:17 +0000
30
- Processing by ExampleController#restricted as HTML
28
+ Completed 200 OK in 15ms (Views: 11.7ms | ActiveRecord: 0.2ms)
29
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:23 +0000
30
+ Processing by ExampleController#this_requires_signin_permission as HTML
31
31
  Authenticating with gds_sso strategy
32
32
  Completed in 0ms (ActiveRecord: 0.0ms)
33
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:17 +0000
34
- Started GET "/auth/gds/callback?code=956a16cf6a205042dacdde0af8cfbc0361a2683f51c22b7a98b9701478129a9f&state=707fd7c0cee1a34dd621b3fb75c001f797cd38a1807c8a0f" for 127.0.0.1 at 2017-12-11 18:11:17 +0000
33
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:23 +0000
34
+ Started GET "/auth/gds/callback?code=b0509407a26ad64f70a3e61dcf90487d48da5077adc6b28ef328bef3e639fd62&state=a69cae8f73dfa998f2919cf542658ff12d52807b90b3f486" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
35
35
  Processing by AuthenticationsController#callback as HTML
36
- Parameters: {"code"=>"956a16cf6a205042dacdde0af8cfbc0361a2683f51c22b7a98b9701478129a9f", "state"=>"707fd7c0cee1a34dd621b3fb75c001f797cd38a1807c8a0f"}
36
+ Parameters: {"code"=>"b0509407a26ad64f70a3e61dcf90487d48da5077adc6b28ef328bef3e639fd62", "state"=>"a69cae8f73dfa998f2919cf542658ff12d52807b90b3f486"}
37
37
  Authenticating with gds_sso strategy
38
38
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
39
39
   (0.1ms) begin transaction
40
+  (0.1ms) commit transaction
41
+  (0.0ms) begin transaction
40
42
   (0.0ms) commit transaction
41
-  (0.1ms) begin transaction
42
-  (0.0ms) commit transaction
43
- Redirected to http://www.example-client.com/restricted
43
+ Redirected to http://www.example-client.com/this_requires_signin_permission
44
44
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
45
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:17 +0000
46
- Processing by ExampleController#restricted as HTML
45
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
46
+ Processing by ExampleController#this_requires_signin_permission as HTML
47
47
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
48
48
  Rendered text template (0.0ms)
49
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
50
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:17 +0000
49
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
50
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
51
51
  Processing by ExampleController#this_requires_signin_permission as HTML
52
52
  Authenticating with gds_sso strategy
53
53
  Completed in 0ms (ActiveRecord: 0.0ms)
54
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:17 +0000
55
- Started GET "/auth/gds/callback?code=4a5bd3d175141594811ef726f05905c93910f03ab7f57dfb66a2d59be22bea2e&state=ef621c5e69dfbdb935785c36d39dd72c71fcd82c7be2f0ad" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
54
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
55
+ Started GET "/auth/gds/callback?code=9c135c62171ce1eb65cb5a48fdc02da83105cf9f430e5187906cb27c2bf0247b&state=0e4c5282ff70a47dd538df9b452cfde6dc9431a30de2176d" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
56
56
  Processing by AuthenticationsController#callback as HTML
57
- Parameters: {"code"=>"4a5bd3d175141594811ef726f05905c93910f03ab7f57dfb66a2d59be22bea2e", "state"=>"ef621c5e69dfbdb935785c36d39dd72c71fcd82c7be2f0ad"}
57
+ Parameters: {"code"=>"9c135c62171ce1eb65cb5a48fdc02da83105cf9f430e5187906cb27c2bf0247b", "state"=>"0e4c5282ff70a47dd538df9b452cfde6dc9431a30de2176d"}
58
58
  Authenticating with gds_sso strategy
59
59
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
60
60
   (0.1ms) begin transaction
@@ -63,65 +63,65 @@ Authenticating with gds_sso strategy
63
63
   (0.0ms) commit transaction
64
64
  Redirected to http://www.example-client.com/this_requires_signin_permission
65
65
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
66
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
66
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
67
67
  Processing by ExampleController#this_requires_signin_permission as HTML
68
68
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
69
69
  Rendered text template (0.0ms)
70
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
71
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
72
- Processing by ExampleController#this_requires_signin_permission as HTML
70
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
71
+ Started GET "/" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
72
+ Processing by ExampleController#index as HTML
73
+ Rendered text template (0.0ms)
74
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
75
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
76
+ Processing by ExampleController#restricted as HTML
73
77
  Authenticating with gds_sso strategy
74
78
  Completed in 0ms (ActiveRecord: 0.0ms)
75
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
76
- Started GET "/auth/gds/callback?code=9cc9fbe29e53e26f82a2097c7bdaa453ede906178441eb04b872fc642686e1b9&state=cb7241bf67c5648e7c40332a2d61c17ef057d983176ea39c" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
79
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
80
+ Started GET "/auth/gds/callback?code=40e739c25a0c5e193653b8462bac9ba71d586e151295f8715b2add8816c83f28&state=a50ce994966e7fd7e526dceb23ea1fa72bd8a5913f02962f" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
77
81
  Processing by AuthenticationsController#callback as HTML
78
- Parameters: {"code"=>"9cc9fbe29e53e26f82a2097c7bdaa453ede906178441eb04b872fc642686e1b9", "state"=>"cb7241bf67c5648e7c40332a2d61c17ef057d983176ea39c"}
82
+ Parameters: {"code"=>"40e739c25a0c5e193653b8462bac9ba71d586e151295f8715b2add8816c83f28", "state"=>"a50ce994966e7fd7e526dceb23ea1fa72bd8a5913f02962f"}
79
83
  Authenticating with gds_sso strategy
80
84
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
81
85
   (0.1ms) begin transaction
82
86
   (0.0ms) commit transaction
83
87
   (0.0ms) begin transaction
84
88
   (0.0ms) commit transaction
85
- Redirected to http://www.example-client.com/this_requires_signin_permission
89
+ Redirected to http://www.example-client.com/restricted
86
90
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
87
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
88
- Processing by ExampleController#this_requires_signin_permission as HTML
91
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
92
+ Processing by ExampleController#restricted as HTML
89
93
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
90
94
  Rendered text template (0.0ms)
91
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
92
- Started GET "/" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
93
- Processing by ExampleController#index as HTML
94
- Rendered text template (0.0ms)
95
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
96
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
95
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
96
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
97
97
  Processing by ExampleController#restricted as HTML
98
98
  Authenticating with gds_sso strategy
99
99
  Completed in 0ms (ActiveRecord: 0.0ms)
100
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
101
- Started GET "/auth/gds/callback?code=98933978b918f4d259bc50c5122a23ee7a19caf329c6316d6d11add79707e486&state=8a400a04ec897d73b5be48980587e793a678a566a276c7db" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
100
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
101
+ Started GET "/auth/gds/callback?code=da612655e977b4122fd016f4d9314624cb49426b7fa8116ec8a19cc33a2b453e&state=707e035bae4fa9477196a01beb49e1e639a26fadd6d34ccb" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
102
102
  Processing by AuthenticationsController#callback as HTML
103
- Parameters: {"code"=>"98933978b918f4d259bc50c5122a23ee7a19caf329c6316d6d11add79707e486", "state"=>"8a400a04ec897d73b5be48980587e793a678a566a276c7db"}
103
+ Parameters: {"code"=>"da612655e977b4122fd016f4d9314624cb49426b7fa8116ec8a19cc33a2b453e", "state"=>"707e035bae4fa9477196a01beb49e1e639a26fadd6d34ccb"}
104
104
  Authenticating with gds_sso strategy
105
105
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
106
106
   (0.1ms) begin transaction
107
107
   (0.0ms) commit transaction
108
108
   (0.0ms) begin transaction
109
-  (0.0ms) commit transaction
109
+  (0.2ms) commit transaction
110
110
  Redirected to http://www.example-client.com/restricted
111
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
112
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
111
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
112
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
113
113
  Processing by ExampleController#restricted as HTML
114
114
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
115
115
  Rendered text template (0.0ms)
116
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
117
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
116
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
117
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
118
118
  Processing by ExampleController#restricted as HTML
119
119
  Authenticating with gds_sso strategy
120
120
  Completed in 0ms (ActiveRecord: 0.0ms)
121
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
122
- Started GET "/auth/gds/callback?code=9333eb36cda5b4c064e89cfbe9517bb0c84bb94a51175f516b0fd8a5d7944dda&state=bb8ef775f0904f7ceddc82f63f145dbc1a776b613accda23" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
121
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
122
+ Started GET "/auth/gds/callback?code=1b627ca32fb093220c1c939b2ae90ff813bf70387aab0739b7880cbd4a9ddb72&state=d7027a3731e9aac599eb07dc0dcf02b490f877802f0a27ac" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
123
123
  Processing by AuthenticationsController#callback as HTML
124
- Parameters: {"code"=>"9333eb36cda5b4c064e89cfbe9517bb0c84bb94a51175f516b0fd8a5d7944dda", "state"=>"bb8ef775f0904f7ceddc82f63f145dbc1a776b613accda23"}
124
+ Parameters: {"code"=>"1b627ca32fb093220c1c939b2ae90ff813bf70387aab0739b7880cbd4a9ddb72", "state"=>"d7027a3731e9aac599eb07dc0dcf02b490f877802f0a27ac"}
125
125
  Authenticating with gds_sso strategy
126
126
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
127
127
   (0.1ms) begin transaction
@@ -130,24 +130,46 @@ Authenticating with gds_sso strategy
130
130
   (0.0ms) commit transaction
131
131
  Redirected to http://www.example-client.com/restricted
132
132
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
133
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
133
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:24 +0000
134
134
  Processing by ExampleController#restricted as HTML
135
135
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
136
136
  Rendered text template (0.0ms)
137
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
138
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:18 +0000
137
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
138
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
139
+  (0.1ms) begin transaction
140
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
141
+  (8.3ms) commit transaction
142
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
139
143
  Processing by ExampleController#restricted as HTML
144
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
140
145
  Authenticating with gds_sso strategy
141
- Completed in 1ms (ActiveRecord: 0.0ms)
142
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-12 14:16:18 +0000
143
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
146
+ Completed in 1ms (ActiveRecord: 0.1ms)
147
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
148
+ Started GET "/auth/gds/callback?code=b66e93b75a97360554a76a679589ffe48ac9e9720050071eb1ccd514308e902c&state=969dfbcb65a6e1ec6750e8d4d15e61a670d531173b21737a" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
149
+ Processing by AuthenticationsController#callback as HTML
150
+ Parameters: {"code"=>"b66e93b75a97360554a76a679589ffe48ac9e9720050071eb1ccd514308e902c", "state"=>"969dfbcb65a6e1ec6750e8d4d15e61a670d531173b21737a"}
151
+ Authenticating with gds_sso strategy
152
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
153
+  (0.1ms) begin transaction
154
+  (0.0ms) commit transaction
155
+  (0.0ms) begin transaction
156
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
157
+  (5.7ms) commit transaction
158
+ Redirected to http://www.example-client.com/restricted
159
+ Completed 302 Found in 10ms (ActiveRecord: 6.0ms)
160
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
161
+ Processing by ExampleController#restricted as HTML
162
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
163
+ Rendered text template (0.0ms)
164
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
165
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
144
166
  Processing by ExampleController#restricted as HTML
145
167
  Authenticating with gds_sso strategy
146
- Completed in 0ms (ActiveRecord: 0.0ms)
147
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:18 +0000
148
- Started GET "/auth/gds/callback?code=94eb9c2bc9e351e9148932f1d8252acde7d89261b9d93c034753cab2c749f935&state=1341d863625dc14bb051a0abd8475e3e3c069c61f7bc4e0f" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
168
+ Completed in 1ms (ActiveRecord: 0.0ms)
169
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
170
+ Started GET "/auth/gds/callback?code=5dde5c8fcb16ff81ec4cc3913d96a334d0e162aa84568229b7e1313104202f68&state=18722ba5a78074e2054b0d0faa468498f780ec8b6cb8ccac" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
149
171
  Processing by AuthenticationsController#callback as HTML
150
- Parameters: {"code"=>"94eb9c2bc9e351e9148932f1d8252acde7d89261b9d93c034753cab2c749f935", "state"=>"1341d863625dc14bb051a0abd8475e3e3c069c61f7bc4e0f"}
172
+ Parameters: {"code"=>"5dde5c8fcb16ff81ec4cc3913d96a334d0e162aa84568229b7e1313104202f68", "state"=>"18722ba5a78074e2054b0d0faa468498f780ec8b6cb8ccac"}
151
173
  Authenticating with gds_sso strategy
152
174
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
153
175
   (0.1ms) begin transaction
@@ -156,24 +178,24 @@ Authenticating with gds_sso strategy
156
178
   (0.0ms) commit transaction
157
179
  Redirected to http://www.example-client.com/restricted
158
180
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
159
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
181
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
160
182
  Processing by ExampleController#restricted as HTML
161
183
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
162
184
  Rendered text template (0.0ms)
163
185
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
164
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:06:19 +0000
186
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:04:25 +0000
165
187
  Processing by ExampleController#restricted as HTML
166
188
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
167
189
  Rendered text template (0.0ms)
168
190
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
169
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
191
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
170
192
  Processing by ExampleController#restricted as HTML
171
193
  Authenticating with gds_sso strategy
172
194
  Completed in 0ms (ActiveRecord: 0.0ms)
173
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
174
- Started GET "/auth/gds/callback?code=cbc0af25f5614c13b339bd158d7739160c436eb098f517da3da0dced875ac8df&state=79f4d622f5820519b9d1d1cbbcc6c0200521870aef31d76b" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
195
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
196
+ Started GET "/auth/gds/callback?code=5928eff4d98753c5ba322595613a83d5d292148a1e4f702d6b2d00ac1b265062&state=65d3296897aa0fa478c407f4369f6c01cea3b45cd9306b7c" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
175
197
  Processing by AuthenticationsController#callback as HTML
176
- Parameters: {"code"=>"cbc0af25f5614c13b339bd158d7739160c436eb098f517da3da0dced875ac8df", "state"=>"79f4d622f5820519b9d1d1cbbcc6c0200521870aef31d76b"}
198
+ Parameters: {"code"=>"5928eff4d98753c5ba322595613a83d5d292148a1e4f702d6b2d00ac1b265062", "state"=>"65d3296897aa0fa478c407f4369f6c01cea3b45cd9306b7c"}
177
199
  Authenticating with gds_sso strategy
178
200
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
179
201
   (0.1ms) begin transaction
@@ -182,19 +204,24 @@ Authenticating with gds_sso strategy
182
204
   (0.0ms) commit transaction
183
205
  Redirected to http://www.example-client.com/restricted
184
206
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
185
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
207
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
186
208
  Processing by ExampleController#restricted as HTML
187
209
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
188
210
  Rendered text template (0.0ms)
189
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
190
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:19 +0000
211
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
212
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:25 +0000
213
+ Processing by ExampleController#restricted as HTML
214
+ Authenticating with gds_sso strategy
215
+ Completed in 0ms (ActiveRecord: 0.0ms)
216
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:25 +0000
217
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
191
218
  Processing by ExampleController#restricted as HTML
192
219
  Authenticating with gds_sso strategy
193
220
  Completed in 0ms (ActiveRecord: 0.0ms)
194
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-12 14:16:19 +0000
195
- Started GET "/auth/gds/callback?code=e305ad6667dbb7cc98eadb1acacd8b2eba11a098d6ec7c8b0c487cec5641f260&state=437717250f38381a5389caeab288158cbc86a59198cba4d3" for 127.0.0.1 at 2017-12-12 14:16:19 +0000
221
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:25 +0000
222
+ Started GET "/auth/gds/callback?code=dc9a7ac922d857a23dc9f20f1ea51363071c8fe03f10faae7cc3ca2480f26684&state=cd3abf2585b6d43f71d4e23d129cfbc8f46d6951f9004ba7" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
196
223
  Processing by AuthenticationsController#callback as HTML
197
- Parameters: {"code"=>"e305ad6667dbb7cc98eadb1acacd8b2eba11a098d6ec7c8b0c487cec5641f260", "state"=>"437717250f38381a5389caeab288158cbc86a59198cba4d3"}
224
+ Parameters: {"code"=>"dc9a7ac922d857a23dc9f20f1ea51363071c8fe03f10faae7cc3ca2480f26684", "state"=>"cd3abf2585b6d43f71d4e23d129cfbc8f46d6951f9004ba7"}
198
225
  Authenticating with gds_sso strategy
199
226
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
200
227
   (0.1ms) begin transaction
@@ -203,181 +230,160 @@ Authenticating with gds_sso strategy
203
230
   (0.1ms) commit transaction
204
231
  Redirected to http://www.example-client.com/restricted
205
232
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
206
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:19 +0000
233
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
207
234
  Processing by ExampleController#restricted as HTML
208
235
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
209
236
  Rendered text template (0.0ms)
210
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
211
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
237
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
238
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:26 +0000
212
239
  Processing by ExampleController#restricted as HTML
213
240
  Authenticating with gds_sso strategy
214
241
  Completed in 0ms (ActiveRecord: 0.0ms)
215
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
216
- Started GET "/auth/gds/callback?code=031a03cddf3ac36ad0a36c159a263f073cd49e07d31037d6abb934b70443b068&state=22329f061cc3c4281f9f532bdfe854fe10e88af0cc3c6f4b" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
242
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:26 +0000
243
+ Started GET "/auth/gds/callback?code=06f87d45dc882e892c68f01ab085ab9d2d6a770e7c2b29b3771f28bac7fe5731&state=32e6673192ef85b7947ea5bcfa2fa70e666582fb5b864cfa" for 127.0.0.1 at 2017-12-16 12:14:26 +0000
217
244
  Processing by AuthenticationsController#callback as HTML
218
- Parameters: {"code"=>"031a03cddf3ac36ad0a36c159a263f073cd49e07d31037d6abb934b70443b068", "state"=>"22329f061cc3c4281f9f532bdfe854fe10e88af0cc3c6f4b"}
245
+ Parameters: {"code"=>"06f87d45dc882e892c68f01ab085ab9d2d6a770e7c2b29b3771f28bac7fe5731", "state"=>"32e6673192ef85b7947ea5bcfa2fa70e666582fb5b864cfa"}
219
246
  Authenticating with gds_sso strategy
220
247
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
221
248
   (0.1ms) begin transaction
222
-  (0.0ms) commit transaction
249
+  (0.1ms) commit transaction
223
250
   (0.0ms) begin transaction
224
-  (0.0ms) commit transaction
251
+  (0.1ms) commit transaction
225
252
  Redirected to http://www.example-client.com/restricted
226
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
227
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
253
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
254
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:26 +0000
228
255
  Processing by ExampleController#restricted as HTML
229
256
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
230
257
  Rendered text template (0.0ms)
231
258
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
232
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
233
-  (0.0ms) begin transaction
234
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
235
-  (6.4ms) commit transaction
236
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
237
- Processing by ExampleController#restricted as HTML
238
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
239
- Authenticating with gds_sso strategy
240
- Completed in 1ms (ActiveRecord: 0.1ms)
241
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
242
- Started GET "/auth/gds/callback?code=01375adb3b43310907776cf6d0cd702cd0511a36749fe82516d310770aa170c4&state=e52ee1c756b07e3b1d19ed9e9facfa55fbe696e3b3c9f9ca" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
243
- Processing by AuthenticationsController#callback as HTML
244
- Parameters: {"code"=>"01375adb3b43310907776cf6d0cd702cd0511a36749fe82516d310770aa170c4", "state"=>"e52ee1c756b07e3b1d19ed9e9facfa55fbe696e3b3c9f9ca"}
245
- Authenticating with gds_sso strategy
246
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
247
-  (0.1ms) begin transaction
248
-  (0.0ms) commit transaction
249
-  (0.0ms) begin transaction
250
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
251
-  (5.9ms) commit transaction
252
- Redirected to http://www.example-client.com/restricted
253
- Completed 302 Found in 10ms (ActiveRecord: 6.4ms)
254
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
255
- Processing by ExampleController#restricted as HTML
256
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
257
- Rendered text template (0.0ms)
258
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
259
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:19 +0000
259
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
260
+ Processing by ExampleController#restricted as JSON
261
+ Completed in 27ms (ActiveRecord: 0.0ms)
262
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
263
+ Processing by ExampleController#restricted as JSON
264
+ Completed in 13ms (ActiveRecord: 0.0ms)
265
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
260
266
  Processing by ExampleController#this_requires_signin_permission as JSON
261
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
267
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
262
268
   (0.1ms) begin transaction
263
269
  SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
264
-  (5.5ms) commit transaction
270
+  (6.1ms) commit transaction
265
271
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
266
272
   (0.1ms) begin transaction
267
273
   (0.0ms) commit transaction
268
274
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
269
275
   (0.1ms) begin transaction
270
-  (0.0ms) commit transaction
276
+  (0.1ms) commit transaction
271
277
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
272
278
   (0.1ms) begin transaction
273
-  (0.1ms) commit transaction
279
+  (0.0ms) commit transaction
274
280
   (0.0ms) begin transaction
275
281
   (0.0ms) commit transaction
276
282
  Rendered text template (0.0ms)
277
- Completed 200 OK in 75ms (Views: 0.3ms | ActiveRecord: 6.4ms)
278
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:20 +0000
279
- Processing by ExampleController#restricted as JSON
280
- Completed in 12ms (ActiveRecord: 0.0ms)
281
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:20 +0000
282
- Processing by ExampleController#restricted as JSON
283
- Completed in 22ms (ActiveRecord: 0.0ms)
284
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:20 +0000
283
+ Completed 200 OK in 78ms (Views: 0.4ms | ActiveRecord: 7.1ms)
284
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
285
285
  Processing by ExampleController#restricted as JSON
286
286
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
287
287
   (0.1ms) begin transaction
288
-  (0.3ms) commit transaction
288
+  (0.1ms) commit transaction
289
289
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
290
-  (0.0ms) begin transaction
291
-  (0.0ms) commit transaction
290
+  (0.1ms) begin transaction
291
+  (0.1ms) commit transaction
292
292
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
293
-  (0.0ms) begin transaction
294
-  (0.0ms) commit transaction
293
+  (0.1ms) begin transaction
294
+  (0.1ms) commit transaction
295
295
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
296
296
   (0.1ms) begin transaction
297
-  (0.0ms) commit transaction
297
+  (0.1ms) commit transaction
298
298
   (0.0ms) begin transaction
299
-  (0.0ms) commit transaction
299
+  (0.1ms) commit transaction
300
300
  Rendered text template (0.0ms)
301
- Completed 200 OK in 59ms (Views: 0.3ms | ActiveRecord: 0.8ms)
301
+ Completed 200 OK in 67ms (Views: 0.3ms | ActiveRecord: 0.8ms)
302
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:26 +0000
303
+ Processing by ExampleController#restricted as HTML
304
+ Authenticating with gds_sso strategy
305
+ Completed in 0ms (ActiveRecord: 0.0ms)
302
306
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
303
307
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
304
308
   (0.1ms) begin transaction
305
309
  SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
306
-  (4.0ms) commit transaction
310
+  (8.8ms) commit transaction
307
311
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
308
-  (0.0ms) begin transaction
309
-  (0.0ms) commit transaction
310
312
   (0.1ms) begin transaction
311
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39973"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
312
-  (5.0ms) commit transaction
313
-  (0.0ms) begin transaction
314
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37788"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
315
-  (4.3ms) commit transaction
313
+  (0.1ms) commit transaction
314
+  (0.1ms) begin transaction
315
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35816"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
316
+  (5.5ms) commit transaction
317
+  (0.1ms) begin transaction
318
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33753"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
319
+  (5.0ms) commit transaction
316
320
  Processing by Api::UserController#reauth as HTML
317
- Parameters: {"uid"=>"a1s2d39973"}
318
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
319
- Completed 403 Forbidden in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
321
+ Parameters: {"uid"=>"a1s2d35816"}
322
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35816"]]
323
+  (0.1ms) begin transaction
324
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
325
+  (4.3ms) commit transaction
326
+ Completed 200 OK in 7ms (ActiveRecord: 4.6ms)
327
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
328
+  (0.1ms) begin transaction
329
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34978"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
330
+  (4.1ms) commit transaction
320
331
   (0.1ms) begin transaction
321
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33251"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
322
-  (7.1ms) commit transaction
323
-  (0.0ms) begin transaction
324
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34696"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
325
-  (6.0ms) commit transaction
332
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3583"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
333
+  (4.8ms) commit transaction
326
334
  Processing by Api::UserController#reauth as HTML
327
335
  Parameters: {"uid"=>"nonexistent-user"}
328
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
336
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
329
337
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
330
-  (0.1ms) begin transaction
331
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36386"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
332
-  (3.8ms) commit transaction
333
-  (0.0ms) begin transaction
334
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34506"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
335
-  (4.7ms) commit transaction
336
- Processing by Api::UserController#reauth as HTML
337
- Parameters: {"uid"=>"a1s2d36386"}
338
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d36386"]]
339
-  (0.0ms) begin transaction
340
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 7]]
341
-  (4.9ms) commit transaction
342
- Completed 200 OK in 7ms (ActiveRecord: 5.1ms)
343
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
344
338
   (0.1ms) begin transaction
345
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32583"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
346
-  (4.7ms) commit transaction
339
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38013"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
340
+  (4.3ms) commit transaction
347
341
   (0.0ms) begin transaction
348
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33082"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
349
-  (3.8ms) commit transaction
342
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35921"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
343
+  (8.6ms) commit transaction
344
+ Processing by Api::UserController#reauth as HTML
345
+ Parameters: {"uid"=>"a1s2d38013"}
346
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
347
+ Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
348
+  (0.1ms) begin transaction
349
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31949"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
350
+  (5.5ms) commit transaction
351
+  (0.1ms) begin transaction
352
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35382"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
353
+  (4.3ms) commit transaction
350
354
  Processing by Api::UserController#update as HTML
351
- Parameters: {"uid"=>"a1s2d32583"}
352
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d32583"]]
355
+ Parameters: {"uid"=>"a1s2d31949"}
356
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d31949"]]
353
357
   (0.1ms) begin transaction
354
358
  SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
355
-  (4.0ms) commit transaction
356
- Completed 200 OK in 7ms (ActiveRecord: 4.4ms)
359
+  (6.1ms) commit transaction
360
+ Completed 200 OK in 10ms (ActiveRecord: 6.4ms)
357
361
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
358
-  (0.0ms) begin transaction
359
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38564"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
360
-  (5.0ms) commit transaction
362
+  (0.1ms) begin transaction
363
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31937"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
364
+  (4.4ms) commit transaction
361
365
   (0.1ms) begin transaction
362
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3245"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
363
-  (5.4ms) commit transaction
366
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33052"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
367
+  (5.6ms) commit transaction
364
368
  Processing by Api::UserController#update as HTML
365
- Parameters: {"uid"=>"a1s2d38564"}
366
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
367
- Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
368
-  (4.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
369
+ Parameters: {"uid"=>"a1s2d31937"}
370
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
371
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
372
+  (0.1ms) DROP TABLE IF EXISTS "users"
373
+  (2.1ms) SELECT sqlite_version(*)
374
+  (6.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
369
375
   (5.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
370
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
371
-  (0.1ms) begin transaction
372
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-12-11 18:11:27 UTC], ["updated_at", 2017-12-11 18:11:27 UTC]]
373
-  (4.3ms) commit transaction
374
-  (5.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
375
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
376
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
376
377
   (0.1ms) begin transaction
378
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2017-12-15 16:09:34.636447"], ["updated_at", "2017-12-15 16:09:34.636447"]]
379
+  (6.9ms) commit transaction
380
+  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
381
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
382
+  (0.0ms) begin transaction
377
383
   (0.1ms) commit transaction
378
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:27 +0000
379
- Processing by ExampleController#this_requires_signin_permission as JSON
380
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
384
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
385
+ Processing by ExampleController#restricted as JSON
386
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
381
387
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
382
388
   (0.1ms) begin transaction
383
389
  SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
@@ -385,374 +391,370 @@ Processing by ExampleController#this_requires_signin_permission as JSON
385
391
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
386
392
   (0.1ms) begin transaction
387
393
   (0.0ms) commit transaction
388
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
389
-  (0.0ms) begin transaction
394
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
395
+  (0.1ms) begin transaction
390
396
   (0.0ms) commit transaction
391
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
397
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
392
398
   (0.1ms) begin transaction
393
-  (0.1ms) commit transaction
399
+  (0.0ms) commit transaction
394
400
   (0.0ms) begin transaction
395
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
396
-  (4.1ms) commit transaction
401
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
402
+  (5.3ms) commit transaction
397
403
  Rendering text template
398
404
  Rendered text template (0.0ms)
399
- Completed 200 OK in 118ms (Views: 5.5ms | ActiveRecord: 12.7ms)
400
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
401
- Processing by ExampleController#restricted as JSON
402
- Completed in 12ms (ActiveRecord: 0.0ms)
403
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
405
+ Completed 200 OK in 113ms (Views: 4.9ms | ActiveRecord: 14.0ms)
406
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
404
407
  Processing by ExampleController#restricted as JSON
405
- Completed in 26ms (ActiveRecord: 0.0ms)
406
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
407
- Processing by ExampleController#restricted as JSON
408
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
408
+ Completed in 24ms (ActiveRecord: 0.0ms)
409
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
410
+ Processing by ExampleController#this_requires_signin_permission as JSON
411
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
409
412
   (0.1ms) begin transaction
410
413
   (0.0ms) commit transaction
411
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
414
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
412
415
   (0.1ms) begin transaction
413
416
   (0.0ms) commit transaction
414
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
417
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
415
418
   (0.1ms) begin transaction
416
419
   (0.0ms) commit transaction
417
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
420
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
418
421
   (0.1ms) begin transaction
419
422
   (0.0ms) commit transaction
420
423
  Rendering text template
421
424
  Rendered text template (0.0ms)
422
- Completed 200 OK in 64ms (Views: 0.3ms | ActiveRecord: 0.7ms)
423
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
424
- Processing by ExampleController#restricted as HTML
425
- Authenticating with gds_sso strategy
426
- Completed in 0ms (ActiveRecord: 0.0ms)
427
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
428
- Started GET "/auth/gds/callback?code=e2263a1c3d4c9a0a53cbcc2c3e09f5fa71afed2014dbfa1fc2a514b81d065cee&state=5fe627979619259d77d027bee8ce3ffad76f2f905fbdf1f6" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
429
- Processing by AuthenticationsController#callback as HTML
430
- Parameters: {"code"=>"e2263a1c3d4c9a0a53cbcc2c3e09f5fa71afed2014dbfa1fc2a514b81d065cee", "state"=>"5fe627979619259d77d027bee8ce3ffad76f2f905fbdf1f6"}
431
- Authenticating with gds_sso strategy
432
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
433
-  (0.1ms) begin transaction
434
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", false], ["id", 1]]
435
-  (5.1ms) commit transaction
436
- Redirected to http://www.example-client.com/restricted
437
- Completed 302 Found in 9ms (ActiveRecord: 5.6ms)
438
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
439
- Processing by ExampleController#restricted as HTML
440
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
441
- Rendering text template
442
- Rendered text template (0.0ms)
443
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
444
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
425
+ Completed 200 OK in 66ms (Views: 0.3ms | ActiveRecord: 0.7ms)
426
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
427
+ Processing by ExampleController#restricted as JSON
428
+ Completed in 13ms (ActiveRecord: 0.0ms)
429
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
445
430
  Processing by ExampleController#restricted as HTML
446
431
  Authenticating with gds_sso strategy
447
432
  Completed in 0ms (ActiveRecord: 0.0ms)
448
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
449
- Started GET "/auth/gds/callback?code=af8a0951e6944ed5a7c3810eeb289dfd04ccf5b37b4b96b049afde1d72fd9050&state=057fd43a725d5c084c9befca8ad9c131474ccba386bdc8d5" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
433
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
434
+ Started GET "/auth/gds/callback?code=1ba38071ddacbdff259c5fd1bb2977edf6a64af3fbd4c6717401120fd4562eca&state=39247b0788e47d8c1787a5b738fc2048a3b12758cbc0fe16" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
450
435
  Processing by AuthenticationsController#callback as HTML
451
- Parameters: {"code"=>"af8a0951e6944ed5a7c3810eeb289dfd04ccf5b37b4b96b049afde1d72fd9050", "state"=>"057fd43a725d5c084c9befca8ad9c131474ccba386bdc8d5"}
436
+ Parameters: {"code"=>"1ba38071ddacbdff259c5fd1bb2977edf6a64af3fbd4c6717401120fd4562eca", "state"=>"39247b0788e47d8c1787a5b738fc2048a3b12758cbc0fe16"}
452
437
  Authenticating with gds_sso strategy
453
438
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
454
439
   (0.0ms) begin transaction
455
-  (0.0ms) commit transaction
440
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 1]]
441
+  (11.0ms) commit transaction
456
442
  Redirected to http://www.example-client.com/restricted
457
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
458
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
443
+ Completed 302 Found in 15ms (ActiveRecord: 11.5ms)
444
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
459
445
  Processing by ExampleController#restricted as HTML
460
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
461
- Rendering text template
462
- Rendered text template (0.0ms)
463
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
464
- Started GET "/" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
465
- Processing by ExampleController#index as HTML
446
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
466
447
  Rendering text template
467
448
  Rendered text template (0.0ms)
468
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
469
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
449
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
450
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
470
451
  Processing by ExampleController#this_requires_signin_permission as HTML
471
452
  Authenticating with gds_sso strategy
472
453
  Completed in 0ms (ActiveRecord: 0.0ms)
473
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
474
- Started GET "/auth/gds/callback?code=3e71e71fecb5e846cd9ca44ae8e362485e8678654aa61948a19670bdb101f67e&state=4a68ab4e46dbc69a7fd2b683dcd5960fea34c25f2a430ebe" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
454
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
455
+ Started GET "/auth/gds/callback?code=ccaea01fa977631f0bfb82c925d9abb718383aac1468180ac0e9d59a611650c7&state=67c3e9ff0a01575e3ef1b863f48f462bc7f28bf265a79750" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
475
456
  Processing by AuthenticationsController#callback as HTML
476
- Parameters: {"code"=>"3e71e71fecb5e846cd9ca44ae8e362485e8678654aa61948a19670bdb101f67e", "state"=>"4a68ab4e46dbc69a7fd2b683dcd5960fea34c25f2a430ebe"}
457
+ Parameters: {"code"=>"ccaea01fa977631f0bfb82c925d9abb718383aac1468180ac0e9d59a611650c7", "state"=>"67c3e9ff0a01575e3ef1b863f48f462bc7f28bf265a79750"}
477
458
  Authenticating with gds_sso strategy
478
459
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
479
460
   (0.1ms) begin transaction
480
461
   (0.0ms) commit transaction
481
462
  Redirected to http://www.example-client.com/this_requires_signin_permission
482
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
483
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
463
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
464
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
484
465
  Processing by ExampleController#this_requires_signin_permission as HTML
485
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
466
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
486
467
  Rendering text template
487
468
  Rendered text template (0.0ms)
488
469
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
489
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
470
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
490
471
  Processing by ExampleController#this_requires_signin_permission as HTML
491
472
  Authenticating with gds_sso strategy
492
473
  Completed in 0ms (ActiveRecord: 0.0ms)
493
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:28 +0000
494
- Started GET "/auth/gds/callback?code=78df2d74e4885df506232339e13ec8fc02d9dff13c022b2f30af555714700d65&state=32518b74e345e698a284b395eb120ea3cf29e83836cad384" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
474
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:35 +0000
475
+ Started GET "/auth/gds/callback?code=bef57638b02fb5233c89804d8656e9a6beaedd230d4ac9349e69b485e4bfaf43&state=b64214ec4d148694013b1216624979d53401a6f9505ec065" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
495
476
  Processing by AuthenticationsController#callback as HTML
496
- Parameters: {"code"=>"78df2d74e4885df506232339e13ec8fc02d9dff13c022b2f30af555714700d65", "state"=>"32518b74e345e698a284b395eb120ea3cf29e83836cad384"}
477
+ Parameters: {"code"=>"bef57638b02fb5233c89804d8656e9a6beaedd230d4ac9349e69b485e4bfaf43", "state"=>"b64214ec4d148694013b1216624979d53401a6f9505ec065"}
497
478
  Authenticating with gds_sso strategy
498
- User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
479
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
499
480
   (0.1ms) begin transaction
500
481
   (0.0ms) commit transaction
501
482
  Redirected to http://www.example-client.com/this_requires_signin_permission
502
- Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
503
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
483
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
484
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
504
485
  Processing by ExampleController#this_requires_signin_permission as HTML
505
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
486
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
506
487
  Rendering text template
507
488
  Rendered text template (0.0ms)
508
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
509
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
489
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
490
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
510
491
  Processing by ExampleController#restricted as HTML
511
492
  Authenticating with gds_sso strategy
512
- Completed in 1ms (ActiveRecord: 0.0ms)
513
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
514
- Started GET "/auth/gds/callback?code=47ef77939d3bf0b9fe1eaa0c14b09957f78179b15e8ab38cde79d97fcc5bda4c&state=61959228d413b5e80f0a96218ae8344ee825ea91a2499823" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
493
+ Completed in 0ms (ActiveRecord: 0.0ms)
494
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
495
+ Started GET "/auth/gds/callback?code=43e57b005e25581ba8b5b77fbe305148e69a5be89adba8a356e662bd2bfb0f04&state=339c072e72a4c1f96ce29b65555b1060c37a35b801fa675d" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
515
496
  Processing by AuthenticationsController#callback as HTML
516
- Parameters: {"code"=>"47ef77939d3bf0b9fe1eaa0c14b09957f78179b15e8ab38cde79d97fcc5bda4c", "state"=>"61959228d413b5e80f0a96218ae8344ee825ea91a2499823"}
497
+ Parameters: {"code"=>"43e57b005e25581ba8b5b77fbe305148e69a5be89adba8a356e662bd2bfb0f04", "state"=>"339c072e72a4c1f96ce29b65555b1060c37a35b801fa675d"}
517
498
  Authenticating with gds_sso strategy
518
499
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
519
-  (0.0ms) begin transaction
520
-  (0.0ms) commit transaction
500
+  (0.1ms) begin transaction
501
+  (0.1ms) commit transaction
521
502
  Redirected to http://www.example-client.com/restricted
522
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
523
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
503
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
504
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
524
505
  Processing by ExampleController#restricted as HTML
525
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
506
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
526
507
  Rendering text template
527
508
  Rendered text template (0.0ms)
528
509
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
529
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
510
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
530
511
  Processing by ExampleController#restricted as HTML
531
512
  Authenticating with gds_sso strategy
532
513
  Completed in 0ms (ActiveRecord: 0.0ms)
533
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
534
- Started GET "/auth/gds/callback?code=4a409006f27206485130656e4f3223707bc5d60bca75190f7b94ed6ef9c9a6ff&state=b091630f919936306b841de6ee23e81ca2355fd0cf11f7af" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
514
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
515
+ Started GET "/auth/gds/callback?code=c36da73b802e7a03f1e59958036024e418782af0bfebce3ba8da83e4064bb479&state=e58c4de8c2e1a4f755efb5f0bcf96c4938c987c2307ba993" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
535
516
  Processing by AuthenticationsController#callback as HTML
536
- Parameters: {"code"=>"4a409006f27206485130656e4f3223707bc5d60bca75190f7b94ed6ef9c9a6ff", "state"=>"b091630f919936306b841de6ee23e81ca2355fd0cf11f7af"}
517
+ Parameters: {"code"=>"c36da73b802e7a03f1e59958036024e418782af0bfebce3ba8da83e4064bb479", "state"=>"e58c4de8c2e1a4f755efb5f0bcf96c4938c987c2307ba993"}
537
518
  Authenticating with gds_sso strategy
538
519
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
539
520
   (0.1ms) begin transaction
540
521
   (0.1ms) commit transaction
541
522
  Redirected to http://www.example-client.com/restricted
542
523
  Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
543
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
524
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
544
525
  Processing by ExampleController#restricted as HTML
545
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
526
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
546
527
  Rendering text template
547
528
  Rendered text template (0.0ms)
548
529
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
549
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:06:29 +0000
550
- Processing by ExampleController#restricted as HTML
551
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
530
+ Started GET "/" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
531
+ Processing by ExampleController#index as HTML
552
532
  Rendering text template
553
533
  Rendered text template (0.0ms)
554
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
555
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
534
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
535
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
556
536
  Processing by ExampleController#restricted as HTML
557
537
  Authenticating with gds_sso strategy
558
538
  Completed in 0ms (ActiveRecord: 0.0ms)
559
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
560
- Started GET "/auth/gds/callback?code=76c0a974c7c410c7abf4ae41dd80be60a0ab2396254fa5191aa25868a9051638&state=f60ec8c7ca7855bb0e6ed06b199ffed4694036a26d5b5d39" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
539
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
540
+ Started GET "/auth/gds/callback?code=096a30aa0b89bf9b736679b124ec9aecdb8e1a1f39a0da483bf78c75c3543bba&state=30403080f30b937d633a85acb57d584ef470ea2cee9b0e09" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
561
541
  Processing by AuthenticationsController#callback as HTML
562
- Parameters: {"code"=>"76c0a974c7c410c7abf4ae41dd80be60a0ab2396254fa5191aa25868a9051638", "state"=>"f60ec8c7ca7855bb0e6ed06b199ffed4694036a26d5b5d39"}
542
+ Parameters: {"code"=>"096a30aa0b89bf9b736679b124ec9aecdb8e1a1f39a0da483bf78c75c3543bba", "state"=>"30403080f30b937d633a85acb57d584ef470ea2cee9b0e09"}
563
543
  Authenticating with gds_sso strategy
564
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
544
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
565
545
   (0.1ms) begin transaction
566
546
   (0.0ms) commit transaction
567
547
  Redirected to http://www.example-client.com/restricted
568
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
569
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
548
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
549
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
570
550
  Processing by ExampleController#restricted as HTML
571
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
551
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
572
552
  Rendering text template
573
553
  Rendered text template (0.0ms)
574
554
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
575
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:29 +0000
576
- Processing by ExampleController#restricted as HTML
577
- Authenticating with gds_sso strategy
578
- Completed in 1ms (ActiveRecord: 0.0ms)
579
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-12 14:16:29 +0000
580
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
555
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
556
+  (0.1ms) begin transaction
557
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
558
+  (4.8ms) commit transaction
559
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
581
560
  Processing by ExampleController#restricted as HTML
561
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
582
562
  Authenticating with gds_sso strategy
583
- Completed in 1ms (ActiveRecord: 0.0ms)
584
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:29 +0000
585
- Started GET "/auth/gds/callback?code=1be7e5b7dc393be3be11a2fb87a69033855998b9eb20fcc387d670206175bfe6&state=8ea770ed8967047e1ed2cc7ada420461538848380a244b2e" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
563
+ Completed in 1ms (ActiveRecord: 0.2ms)
564
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:36 +0000
565
+ Started GET "/auth/gds/callback?code=8edc36d687b4940f3689ce49179a331b48ee586989a3831d3ee7929b34c8a412&state=0fae0ce9aec6e5816ac3957c57ec0d8f547d8dc32ee486a5" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
586
566
  Processing by AuthenticationsController#callback as HTML
587
- Parameters: {"code"=>"1be7e5b7dc393be3be11a2fb87a69033855998b9eb20fcc387d670206175bfe6", "state"=>"8ea770ed8967047e1ed2cc7ada420461538848380a244b2e"}
567
+ Parameters: {"code"=>"8edc36d687b4940f3689ce49179a331b48ee586989a3831d3ee7929b34c8a412", "state"=>"0fae0ce9aec6e5816ac3957c57ec0d8f547d8dc32ee486a5"}
588
568
  Authenticating with gds_sso strategy
589
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
569
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
590
570
   (0.1ms) begin transaction
591
571
   (0.0ms) commit transaction
572
+  (0.0ms) begin transaction
573
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
574
+  (6.0ms) commit transaction
592
575
  Redirected to http://www.example-client.com/restricted
593
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
594
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
576
+ Completed 302 Found in 11ms (ActiveRecord: 6.7ms)
577
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
595
578
  Processing by ExampleController#restricted as HTML
596
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
579
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
597
580
  Rendering text template
598
581
  Rendered text template (0.0ms)
599
582
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
600
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:30 +0000
583
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
601
584
  Processing by ExampleController#restricted as HTML
602
585
  Authenticating with gds_sso strategy
603
- Completed in 1ms (ActiveRecord: 0.0ms)
604
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-12 14:16:30 +0000
605
- Started GET "/auth/gds/callback?code=25297a4f8a347662e20bdff2c0e1a7adbb7014b59173d23f192070925a304336&state=d51a1d3283395a0584daf88efc171791993b3f0a1ec3ef1b" for 127.0.0.1 at 2017-12-12 14:16:30 +0000
586
+ Completed in 0ms (ActiveRecord: 0.0ms)
587
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
588
+ Started GET "/auth/gds/callback?code=6ba4e5600dcac666b60e0c9de5fbc443202f11e62f8c7de69f25c931f9c3318f&state=b40dddcd19cffbcb1947c22e13f49dea44ae7ce71067baf5" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
606
589
  Processing by AuthenticationsController#callback as HTML
607
- Parameters: {"code"=>"25297a4f8a347662e20bdff2c0e1a7adbb7014b59173d23f192070925a304336", "state"=>"d51a1d3283395a0584daf88efc171791993b3f0a1ec3ef1b"}
590
+ Parameters: {"code"=>"6ba4e5600dcac666b60e0c9de5fbc443202f11e62f8c7de69f25c931f9c3318f", "state"=>"b40dddcd19cffbcb1947c22e13f49dea44ae7ce71067baf5"}
608
591
  Authenticating with gds_sso strategy
609
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
592
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
610
593
   (0.1ms) begin transaction
611
594
   (0.1ms) commit transaction
612
595
  Redirected to http://www.example-client.com/restricted
613
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
614
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:30 +0000
596
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
597
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
615
598
  Processing by ExampleController#restricted as HTML
616
- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
599
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
617
600
  Rendering text template
618
601
  Rendered text template (0.0ms)
619
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.6ms)
620
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
602
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
603
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
621
604
  Processing by ExampleController#restricted as HTML
622
605
  Authenticating with gds_sso strategy
623
- Completed in 1ms (ActiveRecord: 0.0ms)
624
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
625
- Started GET "/auth/gds/callback?code=6d13e3646de7b542ec832fc3a7e450ac32836da33789afe2d6b04fa34b15b5e3&state=45bfe88d4f448806e55b4808f2ea76a0317e1cef6cc637d9" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
606
+ Completed in 0ms (ActiveRecord: 0.0ms)
607
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
608
+ Started GET "/auth/gds/callback?code=21b59850ee990845595f47d69e9a4672e23604a023adcc161b49fa74b011ac95&state=5ae04938795f7a2901515203465b900778ee2dfc5292a5ba" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
626
609
  Processing by AuthenticationsController#callback as HTML
627
- Parameters: {"code"=>"6d13e3646de7b542ec832fc3a7e450ac32836da33789afe2d6b04fa34b15b5e3", "state"=>"45bfe88d4f448806e55b4808f2ea76a0317e1cef6cc637d9"}
610
+ Parameters: {"code"=>"21b59850ee990845595f47d69e9a4672e23604a023adcc161b49fa74b011ac95", "state"=>"5ae04938795f7a2901515203465b900778ee2dfc5292a5ba"}
628
611
  Authenticating with gds_sso strategy
629
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
612
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
630
613
   (0.1ms) begin transaction
631
-  (0.0ms) commit transaction
614
+  (0.1ms) commit transaction
632
615
  Redirected to http://www.example-client.com/restricted
633
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
634
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
616
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
617
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
635
618
  Processing by ExampleController#restricted as HTML
636
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
619
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
637
620
  Rendering text template
638
621
  Rendered text template (0.0ms)
639
622
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
640
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
641
-  (0.0ms) begin transaction
642
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 1]]
643
-  (6.5ms) commit transaction
644
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
623
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
645
624
  Processing by ExampleController#restricted as HTML
646
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
647
625
  Authenticating with gds_sso strategy
648
- Completed in 1ms (ActiveRecord: 0.2ms)
649
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
650
- Started GET "/auth/gds/callback?code=9ed10ffa6ea6e3900b0effccac4b332b8e97faff501c52f6e03e226f91a0464d&state=dacf76bccf38089ca065f0b57753ab7451dad2a1e2d6782c" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
626
+ Completed in 0ms (ActiveRecord: 0.0ms)
627
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
628
+ Started GET "/auth/gds/callback?code=5904026c8b2858a6dfe0567d917189af96b7401eed3c3efe5b2e2d522d5b20ac&state=6fa899e2e5cc68307115dc5015bdf8ee0c2b15313d0ee4aa" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
651
629
  Processing by AuthenticationsController#callback as HTML
652
- Parameters: {"code"=>"9ed10ffa6ea6e3900b0effccac4b332b8e97faff501c52f6e03e226f91a0464d", "state"=>"dacf76bccf38089ca065f0b57753ab7451dad2a1e2d6782c"}
630
+ Parameters: {"code"=>"5904026c8b2858a6dfe0567d917189af96b7401eed3c3efe5b2e2d522d5b20ac", "state"=>"6fa899e2e5cc68307115dc5015bdf8ee0c2b15313d0ee4aa"}
653
631
  Authenticating with gds_sso strategy
654
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
655
-  (0.1ms) begin transaction
656
-  (0.0ms) commit transaction
632
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
657
633
   (0.0ms) begin transaction
658
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
659
-  (4.5ms) commit transaction
634
+  (0.2ms) commit transaction
660
635
  Redirected to http://www.example-client.com/restricted
661
- Completed 302 Found in 9ms (ActiveRecord: 5.1ms)
662
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:30 +0000
636
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
637
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
663
638
  Processing by ExampleController#restricted as HTML
664
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
639
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
665
640
  Rendering text template
666
641
  Rendered text template (0.0ms)
667
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
668
-  (0.0ms) begin transaction
669
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39270"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
670
-  (4.8ms) commit transaction
671
-  (0.0ms) begin transaction
672
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33863"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
673
-  (3.7ms) commit transaction
674
- Processing by Api::UserController#update as HTML
675
- Parameters: {"uid"=>"a1s2d39270"}
676
- Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
677
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
678
- Completed 403 Forbidden in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)
642
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
643
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
644
+ Processing by ExampleController#restricted as HTML
645
+ Authenticating with gds_sso strategy
646
+ Completed in 1ms (ActiveRecord: 0.0ms)
647
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:37 +0000
648
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
649
+ Processing by ExampleController#restricted as HTML
650
+ Authenticating with gds_sso strategy
651
+ Completed in 0ms (ActiveRecord: 0.0ms)
652
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
653
+ Started GET "/auth/gds/callback?code=d1e1de175198c79a78ebe88d5defd1a55ebe7a701b27d25c6f50c84b9ba67233&state=6aa589bd4ed51790803be77e60ee88b913073b9c9e007582" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
654
+ Processing by AuthenticationsController#callback as HTML
655
+ Parameters: {"code"=>"d1e1de175198c79a78ebe88d5defd1a55ebe7a701b27d25c6f50c84b9ba67233", "state"=>"6aa589bd4ed51790803be77e60ee88b913073b9c9e007582"}
656
+ Authenticating with gds_sso strategy
657
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
679
658
   (0.1ms) begin transaction
680
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33833"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
681
-  (4.7ms) commit transaction
659
+  (0.0ms) commit transaction
660
+ Redirected to http://www.example-client.com/restricted
661
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
662
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
663
+ Processing by ExampleController#restricted as HTML
664
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
665
+ Rendering text template
666
+ Rendered text template (0.0ms)
667
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
668
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:04:37 +0000
669
+ Processing by ExampleController#restricted as HTML
670
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
671
+ Rendering text template
672
+ Rendered text template (0.0ms)
673
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
674
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:37 +0000
675
+ Processing by ExampleController#restricted as HTML
676
+ Authenticating with gds_sso strategy
677
+ Completed in 0ms (ActiveRecord: 0.0ms)
678
+  (0.1ms) begin transaction
679
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31567"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
680
+  (6.7ms) commit transaction
682
681
   (0.0ms) begin transaction
683
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3274"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
682
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31266"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
684
683
   (4.8ms) commit transaction
685
- Processing by Api::UserController#update as HTML
686
- Parameters: {"uid"=>"a1s2d33833"}
687
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33833"], ["LIMIT", 1]]
684
+ Processing by Api::UserController#reauth as HTML
685
+ Parameters: {"uid"=>"nonexistent-user"}
686
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
687
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
688
688
   (0.1ms) begin transaction
689
- SQL (0.1ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 4]]
690
-  (5.5ms) commit transaction
691
- Completed 200 OK in 9ms (ActiveRecord: 5.9ms)
692
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
689
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d317"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
690
+  (4.3ms) commit transaction
693
691
   (0.0ms) begin transaction
694
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33026"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
695
-  (4.2ms) commit transaction
692
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31414"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
693
+  (5.0ms) commit transaction
694
+ Processing by Api::UserController#reauth as HTML
695
+ Parameters: {"uid"=>"a1s2d317"}
696
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
697
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
698
+ Completed 403 Forbidden in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
699
+  (0.1ms) begin transaction
700
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35677"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
701
+  (7.5ms) commit transaction
696
702
   (0.0ms) begin transaction
697
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37373"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
698
-  (4.2ms) commit transaction
703
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32622"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
704
+  (4.5ms) commit transaction
699
705
  Processing by Api::UserController#reauth as HTML
700
- Parameters: {"uid"=>"a1s2d33026"}
701
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33026"], ["LIMIT", 1]]
706
+ Parameters: {"uid"=>"a1s2d35677"}
707
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35677"], ["LIMIT", 1]]
702
708
   (0.0ms) begin transaction
703
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 6]]
709
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 6]]
710
+  (4.5ms) commit transaction
711
+ Completed 200 OK in 7ms (ActiveRecord: 4.8ms)
712
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
713
+  (0.1ms) begin transaction
714
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32600"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
704
715
   (3.9ms) commit transaction
705
- Completed 200 OK in 6ms (ActiveRecord: 4.1ms)
706
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
707
-  (0.0ms) begin transaction
708
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35591"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
709
-  (4.7ms) commit transaction
710
716
   (0.0ms) begin transaction
711
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37588"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
712
-  (3.6ms) commit transaction
713
- Processing by Api::UserController#reauth as HTML
714
- Parameters: {"uid"=>"a1s2d35591"}
717
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32756"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
718
+  (3.8ms) commit transaction
719
+ Processing by Api::UserController#update as HTML
720
+ Parameters: {"uid"=>"a1s2d32600"}
715
721
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
716
722
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
717
- Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
723
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
718
724
   (0.1ms) begin transaction
719
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31431"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
720
-  (3.8ms) commit transaction
725
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38405"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
726
+  (5.1ms) commit transaction
721
727
   (0.0ms) begin transaction
722
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38687"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
723
-  (4.6ms) commit transaction
724
- Processing by Api::UserController#reauth as HTML
725
- Parameters: {"uid"=>"nonexistent-user"}
726
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
727
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
728
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3545"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
729
+  (4.1ms) commit transaction
730
+ Processing by Api::UserController#update as HTML
731
+ Parameters: {"uid"=>"a1s2d38405"}
732
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d38405"], ["LIMIT", 1]]
733
+  (0.0ms) begin transaction
734
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 10]]
735
+  (4.4ms) commit transaction
736
+ Completed 200 OK in 7ms (ActiveRecord: 4.7ms)
737
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
728
738
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
729
739
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
730
740
   (0.0ms) begin transaction
731
741
  SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
732
-  (3.9ms) commit transaction
742
+  (8.3ms) commit transaction
733
743
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
734
-  (0.0ms) begin transaction
744
+  (0.1ms) begin transaction
735
745
   (0.0ms) commit transaction
736
-  (4.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
737
-  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
746
+  (5.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
747
+  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
738
748
   (0.1ms) select sqlite_version(*)
739
-  (4.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
740
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
741
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
742
-  (0.1ms) begin transaction
743
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
744
-  (5.2ms) commit transaction
745
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
746
-  (0.0ms) begin transaction
747
-  (0.1ms) commit transaction
748
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
749
+  (8.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
750
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
749
751
  Processing by ExampleController#restricted as HTML
750
752
  Authenticating with gds_sso strategy
751
- Completed in 7ms (ActiveRecord: 0.0ms)
752
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
753
- Started GET "/auth/gds/callback?code=60b5656748db3dcb692d3ed9c802ecc3c01c933b07700d976d86f071e1083a73&state=1d304ef9bd870bb71c1ef4028517f7c9ccd9f630844cb5d7" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
753
+ Completed in 9ms (ActiveRecord: 0.0ms)
754
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
755
+ Started GET "/auth/gds/callback?code=314a7afc535b27c14b581fa2e556f17d0aeacc9618fdafb53831ca9c19446d96&state=8f25865ec1fc2f2c34e2bdd3cafd9050b2c8af6b3ea5abfe" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
754
756
  Processing by AuthenticationsController#callback as HTML
755
- Parameters: {"code"=>"60b5656748db3dcb692d3ed9c802ecc3c01c933b07700d976d86f071e1083a73", "state"=>"1d304ef9bd870bb71c1ef4028517f7c9ccd9f630844cb5d7"}
757
+ Parameters: {"code"=>"314a7afc535b27c14b581fa2e556f17d0aeacc9618fdafb53831ca9c19446d96", "state"=>"8f25865ec1fc2f2c34e2bdd3cafd9050b2c8af6b3ea5abfe"}
756
758
  Authenticating with gds_sso strategy
757
759
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
758
760
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
@@ -760,23 +762,23 @@ Authenticating with gds_sso strategy
760
762
  SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]
761
763
   (4.9ms) commit transaction
762
764
   (0.0ms) begin transaction
763
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
764
-  (4.8ms) commit transaction
765
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
766
+  (4.0ms) commit transaction
765
767
  Redirected to http://www.example-client.com/restricted
766
- Completed 302 Found in 16ms (ActiveRecord: 10.4ms)
767
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
768
+ Completed 302 Found in 36ms (ActiveRecord: 10.0ms)
769
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
768
770
  Processing by ExampleController#restricted as HTML
769
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
771
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
770
772
  Rendered text template (0.0ms)
771
- Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.2ms)
772
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
773
+ Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.1ms)
774
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
773
775
  Processing by ExampleController#restricted as HTML
774
776
  Authenticating with gds_sso strategy
775
777
  Completed in 0ms (ActiveRecord: 0.0ms)
776
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
777
- Started GET "/auth/gds/callback?code=e0ebb27a1259247c43594e468651f30623620a7092413828c399ad8dde8788c9&state=6f2d00cf1b9da291767ad946d87f0e0a83559078ee9395d6" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
778
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
779
+ Started GET "/auth/gds/callback?code=f7d827163bfc683f21e4b914013d9afb11538bd236218206b2174df826211c7e&state=215e265d6f90d6985a3ece21e99943bf6ec7137b95b4534d" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
778
780
  Processing by AuthenticationsController#callback as HTML
779
- Parameters: {"code"=>"e0ebb27a1259247c43594e468651f30623620a7092413828c399ad8dde8788c9", "state"=>"6f2d00cf1b9da291767ad946d87f0e0a83559078ee9395d6"}
781
+ Parameters: {"code"=>"f7d827163bfc683f21e4b914013d9afb11538bd236218206b2174df826211c7e", "state"=>"215e265d6f90d6985a3ece21e99943bf6ec7137b95b4534d"}
780
782
  Authenticating with gds_sso strategy
781
783
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
782
784
   (0.1ms) begin transaction
@@ -785,19 +787,23 @@ Authenticating with gds_sso strategy
785
787
   (0.0ms) commit transaction
786
788
  Redirected to http://www.example-client.com/restricted
787
789
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
788
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
790
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
789
791
  Processing by ExampleController#restricted as HTML
790
792
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
791
793
  Rendered text template (0.0ms)
792
794
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
793
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
795
+ Started GET "/" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
796
+ Processing by ExampleController#index as HTML
797
+ Rendered text template (0.0ms)
798
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
799
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
794
800
  Processing by ExampleController#restricted as HTML
795
801
  Authenticating with gds_sso strategy
796
802
  Completed in 0ms (ActiveRecord: 0.0ms)
797
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
798
- Started GET "/auth/gds/callback?code=34774d2eeea6949b33f2257e53649546f6171b8b571e5589b08a08bf8d5ecde1&state=844b396ed49f21047497e61210b7e3900bbedbe776e87972" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
803
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
804
+ Started GET "/auth/gds/callback?code=a9df46a8e9032d2ce98fa642c6d4eecaf6d257e63fd9e94460f97dce3d68b51b&state=ce4d0f9f4a4c043b827ef8e17fb72ef23fc4119de764cc21" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
799
805
  Processing by AuthenticationsController#callback as HTML
800
- Parameters: {"code"=>"34774d2eeea6949b33f2257e53649546f6171b8b571e5589b08a08bf8d5ecde1", "state"=>"844b396ed49f21047497e61210b7e3900bbedbe776e87972"}
806
+ Parameters: {"code"=>"a9df46a8e9032d2ce98fa642c6d4eecaf6d257e63fd9e94460f97dce3d68b51b", "state"=>"ce4d0f9f4a4c043b827ef8e17fb72ef23fc4119de764cc21"}
801
807
  Authenticating with gds_sso strategy
802
808
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
803
809
   (0.1ms) begin transaction
@@ -805,24 +811,20 @@ Authenticating with gds_sso strategy
805
811
   (0.0ms) begin transaction
806
812
   (0.0ms) commit transaction
807
813
  Redirected to http://www.example-client.com/restricted
808
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
809
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
814
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
815
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
810
816
  Processing by ExampleController#restricted as HTML
811
817
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
812
818
  Rendered text template (0.0ms)
813
819
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
814
- Started GET "/" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
815
- Processing by ExampleController#index as HTML
816
- Rendered text template (0.0ms)
817
- Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
818
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
820
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
819
821
  Processing by ExampleController#this_requires_signin_permission as HTML
820
822
  Authenticating with gds_sso strategy
821
823
  Completed in 0ms (ActiveRecord: 0.0ms)
822
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:37 +0000
823
- Started GET "/auth/gds/callback?code=5c8a8bf66bddb0d96e550df3b43633fb54d7b505b49a158cc5210abfd7faa8e9&state=9804abb5acbd37d0b5c026d9891155f1a69d9c199aa143b3" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
824
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
825
+ Started GET "/auth/gds/callback?code=bbfbf6f992e10dc4e8fcfc8260483cf3e518592aed6b2a86ca6f0aab302251a3&state=5b1490b2c12e2256d5641916db6c868cf5e16fb855757210" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
824
826
  Processing by AuthenticationsController#callback as HTML
825
- Parameters: {"code"=>"5c8a8bf66bddb0d96e550df3b43633fb54d7b505b49a158cc5210abfd7faa8e9", "state"=>"9804abb5acbd37d0b5c026d9891155f1a69d9c199aa143b3"}
827
+ Parameters: {"code"=>"bbfbf6f992e10dc4e8fcfc8260483cf3e518592aed6b2a86ca6f0aab302251a3", "state"=>"5b1490b2c12e2256d5641916db6c868cf5e16fb855757210"}
826
828
  Authenticating with gds_sso strategy
827
829
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
828
830
   (0.1ms) begin transaction
@@ -831,109 +833,87 @@ Authenticating with gds_sso strategy
831
833
   (0.0ms) commit transaction
832
834
  Redirected to http://www.example-client.com/this_requires_signin_permission
833
835
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
834
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
836
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
835
837
  Processing by ExampleController#this_requires_signin_permission as HTML
836
838
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
837
839
  Rendered text template (0.0ms)
838
- Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.1ms)
839
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
840
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
841
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
840
842
  Processing by ExampleController#this_requires_signin_permission as HTML
841
843
  Authenticating with gds_sso strategy
842
844
  Completed in 0ms (ActiveRecord: 0.0ms)
843
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
844
- Started GET "/auth/gds/callback?code=f9000d054004a20ac3b01a05876832d1940874c92f66abaadecd9fd663893e2a&state=243af183cf99dab68f00868ace1852de933914ba33757109" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
845
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:46 +0000
846
+ Started GET "/auth/gds/callback?code=8f42a16ddcb1c1b952bdfc7a288e1643b0900b8b83830a160d9edf31666fed2a&state=96dcc68ee399724a6d2e0e2fa29d355772b8d4e322654295" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
845
847
  Processing by AuthenticationsController#callback as HTML
846
- Parameters: {"code"=>"f9000d054004a20ac3b01a05876832d1940874c92f66abaadecd9fd663893e2a", "state"=>"243af183cf99dab68f00868ace1852de933914ba33757109"}
848
+ Parameters: {"code"=>"8f42a16ddcb1c1b952bdfc7a288e1643b0900b8b83830a160d9edf31666fed2a", "state"=>"96dcc68ee399724a6d2e0e2fa29d355772b8d4e322654295"}
847
849
  Authenticating with gds_sso strategy
848
850
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
849
851
   (0.1ms) begin transaction
850
852
   (0.0ms) commit transaction
851
-  (0.0ms) begin transaction
853
+  (0.1ms) begin transaction
852
854
   (0.0ms) commit transaction
853
855
  Redirected to http://www.example-client.com/this_requires_signin_permission
854
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
855
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
856
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
857
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
856
858
  Processing by ExampleController#this_requires_signin_permission as HTML
857
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
859
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
858
860
  Rendered text template (0.0ms)
859
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
860
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
861
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
862
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
861
863
  Processing by ExampleController#restricted as HTML
862
864
  Authenticating with gds_sso strategy
863
865
  Completed in 0ms (ActiveRecord: 0.0ms)
864
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
865
- Started GET "/auth/gds/callback?code=406a166d13efbb6251b10e1fe4f636d5b9338cf4c0f244a13a1f0bd93611bea0&state=603b44d083c3a7dcd7c2f3e2ad415e6299b68173ee50e779" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
866
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
867
+ Started GET "/auth/gds/callback?code=d2f73fcb4c577182e6ded2069bc29eb48bff0f0c9e0def1a4279403901f5d0e1&state=2ea5afbb8592f24a867a331da563a5b2c03ab839b74f7976" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
866
868
  Processing by AuthenticationsController#callback as HTML
867
- Parameters: {"code"=>"406a166d13efbb6251b10e1fe4f636d5b9338cf4c0f244a13a1f0bd93611bea0", "state"=>"603b44d083c3a7dcd7c2f3e2ad415e6299b68173ee50e779"}
869
+ Parameters: {"code"=>"d2f73fcb4c577182e6ded2069bc29eb48bff0f0c9e0def1a4279403901f5d0e1", "state"=>"2ea5afbb8592f24a867a331da563a5b2c03ab839b74f7976"}
868
870
  Authenticating with gds_sso strategy
869
871
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
870
872
   (0.1ms) begin transaction
871
873
   (0.0ms) commit transaction
872
-  (0.0ms) begin transaction
874
+  (0.1ms) begin transaction
873
875
   (0.0ms) commit transaction
874
876
  Redirected to http://www.example-client.com/restricted
875
877
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
876
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
878
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
877
879
  Processing by ExampleController#restricted as HTML
878
880
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
879
881
  Rendered text template (0.0ms)
880
882
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
881
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
882
-  (0.1ms) begin transaction
883
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 2]]
884
-  (5.2ms) commit transaction
885
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
883
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
886
884
  Processing by ExampleController#restricted as HTML
887
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
888
- Authenticating with gds_sso strategy
889
- Completed in 1ms (ActiveRecord: 0.1ms)
890
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
891
- Started GET "/auth/gds/callback?code=cd90eecebbb439fffc3cea6f1a4cc17ce154476316b892049eb9ca2c9fe16db5&state=9788565e3575320c42c6e631b54b1058de15512759ddf344" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
892
- Processing by AuthenticationsController#callback as HTML
893
- Parameters: {"code"=>"cd90eecebbb439fffc3cea6f1a4cc17ce154476316b892049eb9ca2c9fe16db5", "state"=>"9788565e3575320c42c6e631b54b1058de15512759ddf344"}
894
885
  Authenticating with gds_sso strategy
895
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
896
-  (0.1ms) begin transaction
897
-  (0.0ms) commit transaction
898
-  (0.0ms) begin transaction
899
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 2]]
900
-  (4.7ms) commit transaction
901
- Redirected to http://www.example-client.com/restricted
902
- Completed 302 Found in 9ms (ActiveRecord: 5.1ms)
903
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
904
- Processing by ExampleController#restricted as HTML
905
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
906
- Rendered text template (0.0ms)
907
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
908
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
886
+ Completed in 0ms (ActiveRecord: 0.0ms)
887
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
888
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
909
889
  Processing by ExampleController#restricted as HTML
910
890
  Authenticating with gds_sso strategy
911
891
  Completed in 0ms (ActiveRecord: 0.0ms)
912
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:38 +0000
913
- Started GET "/auth/gds/callback?code=f2821acfc7b53d43f94f18b74ae93051c19513acc6efa00243fafd358181efcb&state=a6ae48eec129a91f7c13a5e35846c931293a128f59aa1ef7" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
892
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
893
+ Started GET "/auth/gds/callback?code=9645020da3d903b61bf9bb38954ca2569261f6e1fa22dcec1df95770c498ddde&state=fcf92a28d77a258572166828132a64776f92f8994eced34d" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
914
894
  Processing by AuthenticationsController#callback as HTML
915
- Parameters: {"code"=>"f2821acfc7b53d43f94f18b74ae93051c19513acc6efa00243fafd358181efcb", "state"=>"a6ae48eec129a91f7c13a5e35846c931293a128f59aa1ef7"}
895
+ Parameters: {"code"=>"9645020da3d903b61bf9bb38954ca2569261f6e1fa22dcec1df95770c498ddde", "state"=>"fcf92a28d77a258572166828132a64776f92f8994eced34d"}
916
896
  Authenticating with gds_sso strategy
917
897
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
918
898
   (0.1ms) begin transaction
919
-  (0.0ms) commit transaction
899
+  (0.1ms) commit transaction
920
900
   (0.1ms) begin transaction
921
901
   (0.0ms) commit transaction
922
902
  Redirected to http://www.example-client.com/restricted
923
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
924
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
903
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
904
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
925
905
  Processing by ExampleController#restricted as HTML
926
906
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
927
907
  Rendered text template (0.0ms)
928
908
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
929
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:39 +0000
909
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
930
910
  Processing by ExampleController#restricted as HTML
931
911
  Authenticating with gds_sso strategy
932
912
  Completed in 0ms (ActiveRecord: 0.0ms)
933
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-12 14:16:39 +0000
934
- Started GET "/auth/gds/callback?code=9d990746ae117a2e618604db43c8d1c62fcbc061499ce8aa40e09cbfc46f90aa&state=85888a436383900d70bd1c25c2e84440114dff7ec4ca83e7" for 127.0.0.1 at 2017-12-12 14:16:39 +0000
913
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
914
+ Started GET "/auth/gds/callback?code=1ac88e3b7f8c401d21175e278f0ea618f206c0c4f3d16dbc2b6c2919c6db5a57&state=142a3ea2a3f6e66cf5fbee5682453a9fa167cf9d748e628d" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
935
915
  Processing by AuthenticationsController#callback as HTML
936
- Parameters: {"code"=>"9d990746ae117a2e618604db43c8d1c62fcbc061499ce8aa40e09cbfc46f90aa", "state"=>"85888a436383900d70bd1c25c2e84440114dff7ec4ca83e7"}
916
+ Parameters: {"code"=>"1ac88e3b7f8c401d21175e278f0ea618f206c0c4f3d16dbc2b6c2919c6db5a57", "state"=>"142a3ea2a3f6e66cf5fbee5682453a9fa167cf9d748e628d"}
937
917
  Authenticating with gds_sso strategy
938
918
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
939
919
   (0.1ms) begin transaction
@@ -942,529 +922,1314 @@ Authenticating with gds_sso strategy
942
922
   (0.1ms) commit transaction
943
923
  Redirected to http://www.example-client.com/restricted
944
924
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
945
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:39 +0000
925
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:47 +0000
946
926
  Processing by ExampleController#restricted as HTML
947
927
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
948
928
  Rendered text template (0.0ms)
949
929
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
950
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
930
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
951
931
  Processing by ExampleController#restricted as HTML
952
932
  Authenticating with gds_sso strategy
953
933
  Completed in 0ms (ActiveRecord: 0.0ms)
954
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
955
- Started GET "/auth/gds/callback?code=a4f9db4a37967cbf8561bb81ac4d18abb622dca5d08bf652cc99744dae04d6d3&state=28678d68fc6a25af5e40b7051f44f9e6698832b147310cd0" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
934
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:47 +0000
935
+ Started GET "/auth/gds/callback?code=f1c6df8c7649d51f367e1fefd61a1e48aaa9766c8b82448e176d0a66e3c90d23&state=baadac03ef49b019f257a4fdb43046b20852e71636d301e5" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
956
936
  Processing by AuthenticationsController#callback as HTML
957
- Parameters: {"code"=>"a4f9db4a37967cbf8561bb81ac4d18abb622dca5d08bf652cc99744dae04d6d3", "state"=>"28678d68fc6a25af5e40b7051f44f9e6698832b147310cd0"}
937
+ Parameters: {"code"=>"f1c6df8c7649d51f367e1fefd61a1e48aaa9766c8b82448e176d0a66e3c90d23", "state"=>"baadac03ef49b019f257a4fdb43046b20852e71636d301e5"}
958
938
  Authenticating with gds_sso strategy
959
939
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
960
940
   (0.1ms) begin transaction
961
-  (0.1ms) commit transaction
941
+  (0.0ms) commit transaction
962
942
   (0.0ms) begin transaction
963
943
   (0.0ms) commit transaction
964
944
  Redirected to http://www.example-client.com/restricted
965
945
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
966
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
946
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
967
947
  Processing by ExampleController#restricted as HTML
968
948
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
969
949
  Rendered text template (0.0ms)
970
950
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
971
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:06:39 +0000
951
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:04:48 +0000
972
952
  Processing by ExampleController#restricted as HTML
973
953
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
974
954
  Rendered text template (0.0ms)
975
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
976
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
955
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
956
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
977
957
  Processing by ExampleController#restricted as HTML
978
958
  Authenticating with gds_sso strategy
979
959
  Completed in 0ms (ActiveRecord: 0.0ms)
980
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
981
- Started GET "/auth/gds/callback?code=8d1db51b13d3f235a70765f95488ab10820645da8ed6781958a57ba5d847c5cc&state=5b023d4a0024df77bea6d002bb82d252367911d1ca4e5935" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
960
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
961
+ Started GET "/auth/gds/callback?code=2d983773bd794b39d29961081bae454fe12a4fbdadd33d94fd23e8c09231b4b3&state=09b5ea495948a1b7f0a5299568ccc579897acded362267b2" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
982
962
  Processing by AuthenticationsController#callback as HTML
983
- Parameters: {"code"=>"8d1db51b13d3f235a70765f95488ab10820645da8ed6781958a57ba5d847c5cc", "state"=>"5b023d4a0024df77bea6d002bb82d252367911d1ca4e5935"}
963
+ Parameters: {"code"=>"2d983773bd794b39d29961081bae454fe12a4fbdadd33d94fd23e8c09231b4b3", "state"=>"09b5ea495948a1b7f0a5299568ccc579897acded362267b2"}
984
964
  Authenticating with gds_sso strategy
985
965
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
986
966
   (0.1ms) begin transaction
987
-  (0.2ms) commit transaction
967
+  (0.0ms) commit transaction
988
968
   (0.0ms) begin transaction
989
969
   (0.0ms) commit transaction
990
970
  Redirected to http://www.example-client.com/restricted
991
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
992
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
971
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
972
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
993
973
  Processing by ExampleController#restricted as HTML
994
974
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
995
975
  Rendered text template (0.0ms)
996
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
997
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:39 +0000
976
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
977
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
978
+  (0.0ms) begin transaction
979
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]
980
+  (4.8ms) commit transaction
981
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
998
982
  Processing by ExampleController#restricted as HTML
983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
999
984
  Authenticating with gds_sso strategy
1000
- Completed in 1ms (ActiveRecord: 0.0ms)
1001
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-12 14:16:39 +0000
1002
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
1003
- Processing by ExampleController#restricted as JSON
985
+ Completed in 1ms (ActiveRecord: 0.1ms)
986
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
987
+ Started GET "/auth/gds/callback?code=69bceb62f6a0f10fd68f549f7788a45af39ca2c6461ffb16d49c3c909e69b588&state=4ca79c9ac79123e4d59cffa49c57e5f7515f3820c160d323" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
988
+ Processing by AuthenticationsController#callback as HTML
989
+ Parameters: {"code"=>"69bceb62f6a0f10fd68f549f7788a45af39ca2c6461ffb16d49c3c909e69b588", "state"=>"4ca79c9ac79123e4d59cffa49c57e5f7515f3820c160d323"}
990
+ Authenticating with gds_sso strategy
991
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
992
+  (0.1ms) begin transaction
993
+  (0.1ms) commit transaction
994
+  (0.0ms) begin transaction
995
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
996
+  (9.7ms) commit transaction
997
+ Redirected to http://www.example-client.com/restricted
998
+ Completed 302 Found in 15ms (ActiveRecord: 10.1ms)
999
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1000
+ Processing by ExampleController#restricted as HTML
1001
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1002
+ Rendered text template (0.0ms)
1003
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1004
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1005
+ Processing by ExampleController#restricted as HTML
1006
+ Authenticating with gds_sso strategy
1007
+ Completed in 0ms (ActiveRecord: 0.0ms)
1008
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1009
+ Processing by ExampleController#this_requires_signin_permission as JSON
1004
1010
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1005
1011
   (0.1ms) begin transaction
1006
- SQL (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 2]]
1007
-  (5.2ms) commit transaction
1012
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
1013
+  (6.1ms) commit transaction
1008
1014
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1009
-  (0.0ms) begin transaction
1015
+  (0.1ms) begin transaction
1010
1016
   (0.0ms) commit transaction
1011
1017
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1012
1018
   (0.1ms) begin transaction
1013
-  (0.0ms) commit transaction
1019
+  (0.1ms) commit transaction
1014
1020
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1015
-  (0.0ms) begin transaction
1021
+  (0.1ms) begin transaction
1016
1022
   (0.0ms) commit transaction
1017
1023
   (0.0ms) begin transaction
1018
1024
   (0.0ms) commit transaction
1019
1025
  Rendered text template (0.0ms)
1020
- Completed 200 OK in 73ms (Views: 0.3ms | ActiveRecord: 6.2ms)
1021
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
1026
+ Completed 200 OK in 78ms (Views: 0.5ms | ActiveRecord: 6.9ms)
1027
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1028
+ Processing by ExampleController#restricted as JSON
1029
+ Completed in 24ms (ActiveRecord: 0.0ms)
1030
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1022
1031
  Processing by ExampleController#restricted as JSON
1023
1032
  Completed in 12ms (ActiveRecord: 0.0ms)
1024
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
1025
- Processing by ExampleController#this_requires_signin_permission as JSON
1033
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:48 +0000
1034
+ Processing by ExampleController#restricted as JSON
1026
1035
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1027
1036
   (0.1ms) begin transaction
1028
1037
   (0.0ms) commit transaction
1029
1038
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1030
-  (0.0ms) begin transaction
1039
+  (0.1ms) begin transaction
1031
1040
   (0.0ms) commit transaction
1032
1041
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1033
-  (0.0ms) begin transaction
1034
-  (0.0ms) commit transaction
1042
+  (0.1ms) begin transaction
1043
+  (0.1ms) commit transaction
1035
1044
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1036
1045
   (0.0ms) begin transaction
1037
1046
   (0.0ms) commit transaction
1038
1047
   (0.0ms) begin transaction
1039
-  (0.0ms) commit transaction
1048
+  (0.1ms) commit transaction
1040
1049
  Rendered text template (0.0ms)
1041
- Completed 200 OK in 63ms (Views: 0.3ms | ActiveRecord: 0.6ms)
1042
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:39 +0000
1043
- Processing by ExampleController#restricted as JSON
1044
- Completed in 22ms (ActiveRecord: 0.0ms)
1050
+ Completed 200 OK in 65ms (Views: 0.3ms | ActiveRecord: 0.7ms)
1045
1051
   (0.1ms) begin transaction
1046
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39515"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1047
-  (4.4ms) commit transaction
1052
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39331"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1053
+  (5.1ms) commit transaction
1048
1054
   (0.1ms) begin transaction
1049
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39732"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1050
-  (5.2ms) commit transaction
1051
- Processing by Api::UserController#reauth as HTML
1052
- Parameters: {"uid"=>"a1s2d39515"}
1053
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39515"]]
1054
-  (0.0ms) begin transaction
1055
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
1056
-  (5.3ms) commit transaction
1057
- Completed 200 OK in 8ms (ActiveRecord: 5.5ms)
1058
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1055
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38112"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1056
+  (4.1ms) commit transaction
1057
+ Processing by Api::UserController#update as HTML
1058
+ Parameters: {"uid"=>"a1s2d39331"}
1059
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39331"]]
1060
+  (0.1ms) begin transaction
1061
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 2]]
1062
+  (3.8ms) commit transaction
1063
+ Completed 200 OK in 8ms (ActiveRecord: 4.1ms)
1064
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
1065
+  (0.1ms) begin transaction
1066
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33498"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1067
+  (3.7ms) commit transaction
1068
+  (0.1ms) begin transaction
1069
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32155"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1070
+  (4.7ms) commit transaction
1071
+ Processing by Api::UserController#update as HTML
1072
+ Parameters: {"uid"=>"a1s2d33498"}
1073
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1074
+ Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
1059
1075
   (0.1ms) begin transaction
1060
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3385"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1061
-  (5.3ms) commit transaction
1076
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38345"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1077
+  (4.1ms) commit transaction
1062
1078
   (0.0ms) begin transaction
1063
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37194"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1064
-  (5.1ms) commit transaction
1079
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31273"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1080
+  (5.0ms) commit transaction
1065
1081
  Processing by Api::UserController#reauth as HTML
1066
1082
  Parameters: {"uid"=>"nonexistent-user"}
1067
1083
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1068
1084
  Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1069
-  (0.0ms) begin transaction
1070
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38153"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1071
-  (4.0ms) commit transaction
1085
+  (0.1ms) begin transaction
1086
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33190"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1087
+  (8.2ms) commit transaction
1072
1088
   (0.0ms) begin transaction
1073
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33490"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1074
-  (5.0ms) commit transaction
1089
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36901"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1090
+  (5.6ms) commit transaction
1075
1091
  Processing by Api::UserController#reauth as HTML
1076
- Parameters: {"uid"=>"a1s2d38153"}
1077
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1078
- Completed 403 Forbidden in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
1079
-  (0.0ms) begin transaction
1080
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32399"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1081
-  (5.0ms) commit transaction
1092
+ Parameters: {"uid"=>"a1s2d33190"}
1093
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33190"]]
1082
1094
   (0.0ms) begin transaction
1083
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32495"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1084
-  (4.0ms) commit transaction
1085
- Processing by Api::UserController#update as HTML
1086
- Parameters: {"uid"=>"a1s2d32399"}
1087
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d32399"]]
1095
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
1096
+  (5.1ms) commit transaction
1097
+ Completed 200 OK in 7ms (ActiveRecord: 5.4ms)
1098
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
1088
1099
   (0.1ms) begin transaction
1089
- SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
1090
-  (4.2ms) commit transaction
1091
- Completed 200 OK in 8ms (ActiveRecord: 4.5ms)
1092
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
1100
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31579"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1101
+  (5.1ms) commit transaction
1102
+  (0.1ms) begin transaction
1103
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3111"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1104
+  (6.7ms) commit transaction
1105
+ Processing by Api::UserController#reauth as HTML
1106
+ Parameters: {"uid"=>"a1s2d31579"}
1107
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1108
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1109
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1110
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1093
1111
   (0.1ms) begin transaction
1094
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33956"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1095
-  (4.0ms) commit transaction
1096
-  (0.0ms) begin transaction
1097
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31873"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1098
-  (5.1ms) commit transaction
1099
- Processing by Api::UserController#update as HTML
1100
- Parameters: {"uid"=>"a1s2d33956"}
1101
- Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1102
- Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1103
-  (5.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1104
-  (4.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1105
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1112
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1113
+  (8.2ms) commit transaction
1114
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1115
+  (0.1ms) begin transaction
1116
+  (0.0ms) commit transaction
1117
+  (0.1ms) DROP TABLE IF EXISTS "users"
1118
+  (1.4ms) SELECT sqlite_version(*)
1119
+  (5.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1120
+  (4.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1121
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1106
1122
   (0.1ms) begin transaction
1107
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-12-11 18:11:45 UTC], ["updated_at", 2017-12-11 18:11:45 UTC]]
1108
-  (5.1ms) commit transaction
1109
-  (5.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1110
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1123
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2017-12-15 16:09:54.955670"], ["updated_at", "2017-12-15 16:09:54.955670"]]
1124
+  (5.3ms) commit transaction
1125
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1126
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1127
+  (0.1ms) begin transaction
1128
+  (0.0ms) commit transaction
1129
+  (0.1ms) begin transaction
1130
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34767"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1131
+  (6.2ms) commit transaction
1111
1132
   (0.0ms) begin transaction
1112
-  (0.1ms) commit transaction
1133
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31259"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1134
+  (4.9ms) commit transaction
1135
+ Processing by Api::UserController#reauth as HTML
1136
+ Parameters: {"uid"=>"nonexistent-user"}
1137
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1138
+ Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
1113
1139
   (0.1ms) begin transaction
1114
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34859"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1115
-  (11.4ms) commit transaction
1140
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34232"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1141
+  (4.2ms) commit transaction
1116
1142
   (0.0ms) begin transaction
1117
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35109"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1118
-  (8.4ms) commit transaction
1119
- Processing by Api::UserController#update as HTML
1120
- Parameters: {"uid"=>"a1s2d34859"}
1143
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37612"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1144
+  (4.9ms) commit transaction
1145
+ Processing by Api::UserController#reauth as HTML
1146
+ Parameters: {"uid"=>"a1s2d34232"}
1121
1147
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1122
1148
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1123
- Completed 403 Forbidden in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
1149
+ Completed 403 Forbidden in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)
1124
1150
   (0.1ms) begin transaction
1125
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33226"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1126
-  (3.8ms) commit transaction
1127
-  (0.0ms) begin transaction
1128
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39694"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1129
-  (3.7ms) commit transaction
1130
- Processing by Api::UserController#update as HTML
1131
- Parameters: {"uid"=>"a1s2d33226"}
1132
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33226"], ["LIMIT", 1]]
1133
-  (0.0ms) begin transaction
1134
- SQL (0.1ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 3]]
1135
-  (4.7ms) commit transaction
1136
- Completed 200 OK in 9ms (ActiveRecord: 5.0ms)
1137
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1138
-  (0.0ms) begin transaction
1139
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3551"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1140
-  (3.7ms) commit transaction
1151
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33597"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1152
+  (4.1ms) commit transaction
1141
1153
   (0.0ms) begin transaction
1142
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32467"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1143
-  (4.7ms) commit transaction
1154
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36085"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1155
+  (4.9ms) commit transaction
1144
1156
  Processing by Api::UserController#reauth as HTML
1145
- Parameters: {"uid"=>"a1s2d3551"}
1146
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d3551"], ["LIMIT", 1]]
1157
+ Parameters: {"uid"=>"a1s2d33597"}
1158
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33597"], ["LIMIT", 1]]
1147
1159
   (0.0ms) begin transaction
1148
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 5]]
1149
-  (4.7ms) commit transaction
1150
- Completed 200 OK in 7ms (ActiveRecord: 5.0ms)
1160
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1161
+  (5.2ms) commit transaction
1162
+ Completed 200 OK in 8ms (ActiveRecord: 5.5ms)
1151
1163
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1152
-  (0.0ms) begin transaction
1153
- SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34477"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1154
-  (3.9ms) commit transaction
1155
-  (0.0ms) begin transaction
1156
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36517"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1157
-  (4.5ms) commit transaction
1158
- Processing by Api::UserController#reauth as HTML
1159
- Parameters: {"uid"=>"nonexistent-user"}
1160
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1161
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1162
1164
   (0.1ms) begin transaction
1163
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36242"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1165
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31642"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1164
1166
   (4.1ms) commit transaction
1165
-  (0.1ms) begin transaction
1166
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31608"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1167
-  (6.8ms) commit transaction
1168
- Processing by Api::UserController#reauth as HTML
1169
- Parameters: {"uid"=>"a1s2d36242"}
1167
+  (0.0ms) begin transaction
1168
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3471"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1169
+  (3.9ms) commit transaction
1170
+ Processing by Api::UserController#update as HTML
1171
+ Parameters: {"uid"=>"a1s2d31642"}
1170
1172
  Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1171
1173
  Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1172
- Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1173
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1174
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1174
+ Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1175
1175
   (0.1ms) begin transaction
1176
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1177
-  (5.7ms) commit transaction
1178
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1176
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36387"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1177
+  (5.9ms) commit transaction
1179
1178
   (0.0ms) begin transaction
1180
-  (0.1ms) commit transaction
1181
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:45 +0000
1179
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33675"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1180
+  (4.1ms) commit transaction
1181
+ Processing by Api::UserController#update as HTML
1182
+ Parameters: {"uid"=>"a1s2d36387"}
1183
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36387"], ["LIMIT", 1]]
1184
+  (0.1ms) begin transaction
1185
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 9]]
1186
+  (4.0ms) commit transaction
1187
+ Completed 200 OK in 8ms (ActiveRecord: 4.3ms)
1188
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
1189
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1190
+ Processing by ExampleController#restricted as HTML
1191
+ Authenticating with gds_sso strategy
1192
+ Completed in 6ms (ActiveRecord: 0.0ms)
1193
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1182
1194
  Processing by ExampleController#restricted as JSON
1183
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1195
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1184
1196
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1185
1197
   (0.0ms) begin transaction
1186
1198
  SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
1187
-  (5.4ms) commit transaction
1199
+  (4.7ms) commit transaction
1188
1200
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1189
1201
   (0.0ms) begin transaction
1190
-  (0.0ms) commit transaction
1191
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1192
-  (0.0ms) begin transaction
1193
-  (0.0ms) commit transaction
1194
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1195
-  (0.0ms) begin transaction
1196
-  (0.0ms) commit transaction
1197
-  (0.0ms) begin transaction
1198
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
1199
-  (5.0ms) commit transaction
1202
+  (0.1ms) commit transaction
1203
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1204
+  (0.1ms) begin transaction
1205
+  (0.1ms) commit transaction
1206
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1207
+  (0.1ms) begin transaction
1208
+  (0.1ms) commit transaction
1209
+  (0.1ms) begin transaction
1210
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1211
+  (6.0ms) commit transaction
1200
1212
  Rendering text template
1201
1213
  Rendered text template (0.0ms)
1202
- Completed 200 OK in 88ms (Views: 1.5ms | ActiveRecord: 11.5ms)
1203
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:45 +0000
1214
+ Completed 200 OK in 94ms (Views: 1.8ms | ActiveRecord: 12.5ms)
1215
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1204
1216
  Processing by ExampleController#this_requires_signin_permission as JSON
1205
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1206
-  (0.0ms) begin transaction
1207
-  (0.0ms) commit transaction
1208
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1209
-  (0.0ms) begin transaction
1210
-  (0.0ms) commit transaction
1211
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1217
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1212
1218
   (0.1ms) begin transaction
1213
-  (0.0ms) commit transaction
1214
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1219
+  (0.1ms) commit transaction
1220
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1221
+  (0.1ms) begin transaction
1222
+  (0.1ms) commit transaction
1223
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1215
1224
   (0.1ms) begin transaction
1225
+  (0.1ms) commit transaction
1226
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1227
+  (0.0ms) begin transaction
1216
1228
   (0.0ms) commit transaction
1217
1229
  Rendering text template
1218
1230
  Rendered text template (0.0ms)
1219
- Completed 200 OK in 61ms (Views: 0.3ms | ActiveRecord: 0.6ms)
1220
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1231
+ Completed 200 OK in 75ms (Views: 0.3ms | ActiveRecord: 0.9ms)
1232
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1221
1233
  Processing by ExampleController#restricted as JSON
1222
1234
  Completed in 14ms (ActiveRecord: 0.0ms)
1223
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1235
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1224
1236
  Processing by ExampleController#restricted as JSON
1225
- Completed in 21ms (ActiveRecord: 0.0ms)
1226
- Started GET "/" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1237
+ Completed in 24ms (ActiveRecord: 0.0ms)
1238
+ Started GET "/" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1227
1239
  Processing by ExampleController#index as HTML
1228
1240
  Rendering text template
1229
1241
  Rendered text template (0.0ms)
1230
1242
  Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1231
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1232
- Processing by ExampleController#this_requires_signin_permission as HTML
1243
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1244
+ Processing by ExampleController#restricted as HTML
1233
1245
  Authenticating with gds_sso strategy
1234
1246
  Completed in 0ms (ActiveRecord: 0.0ms)
1235
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1236
- Started GET "/auth/gds/callback?code=4dca828cc8497e2d264720d41d20e447d7c0eaeadaa96c6ca4cb128dba66c84f&state=f19954903ebcfc8afe57a2af145d9f5c4104c06ff8ab3c2f" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1247
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:55 +0000
1248
+ Started GET "/auth/gds/callback?code=e1cdfa604177d3fcb7f077f51282402a2db61bdd6470be4090cfa6118283a7d0&state=b3d616f41216c71b899beaee46ff7ad35db0a2e306324591" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1237
1249
  Processing by AuthenticationsController#callback as HTML
1238
- Parameters: {"code"=>"4dca828cc8497e2d264720d41d20e447d7c0eaeadaa96c6ca4cb128dba66c84f", "state"=>"f19954903ebcfc8afe57a2af145d9f5c4104c06ff8ab3c2f"}
1250
+ Parameters: {"code"=>"e1cdfa604177d3fcb7f077f51282402a2db61bdd6470be4090cfa6118283a7d0", "state"=>"b3d616f41216c71b899beaee46ff7ad35db0a2e306324591"}
1239
1251
  Authenticating with gds_sso strategy
1240
1252
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1241
1253
   (0.0ms) begin transaction
1242
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", false], ["id", 12]]
1243
-  (4.4ms) commit transaction
1244
- Redirected to http://www.example-client.com/this_requires_signin_permission
1245
- Completed 302 Found in 8ms (ActiveRecord: 4.8ms)
1246
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1247
- Processing by ExampleController#this_requires_signin_permission as HTML
1248
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1254
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 11]]
1255
+  (5.9ms) commit transaction
1256
+ Redirected to http://www.example-client.com/restricted
1257
+ Completed 302 Found in 10ms (ActiveRecord: 6.4ms)
1258
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1259
+ Processing by ExampleController#restricted as HTML
1260
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1249
1261
  Rendering text template
1250
1262
  Rendered text template (0.0ms)
1251
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1252
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1263
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1264
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1253
1265
  Processing by ExampleController#this_requires_signin_permission as HTML
1254
1266
  Authenticating with gds_sso strategy
1255
1267
  Completed in 0ms (ActiveRecord: 0.0ms)
1256
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1257
- Started GET "/auth/gds/callback?code=fee9d4da803dea1818a4cba172ad59888e23c643e6e73325ece459b38889be3d&state=a81312773655f0c6bc4c07fe7c996ac0d393cef049efef0b" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1268
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1269
+ Started GET "/auth/gds/callback?code=041103629545ef7440b45d727329faee6ba7487695482e86eb146fe1d9feb8f0&state=deede6e2c1df81cf19f817b4574e8d1591c11db0f62137b5" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1258
1270
  Processing by AuthenticationsController#callback as HTML
1259
- Parameters: {"code"=>"fee9d4da803dea1818a4cba172ad59888e23c643e6e73325ece459b38889be3d", "state"=>"a81312773655f0c6bc4c07fe7c996ac0d393cef049efef0b"}
1271
+ Parameters: {"code"=>"041103629545ef7440b45d727329faee6ba7487695482e86eb146fe1d9feb8f0", "state"=>"deede6e2c1df81cf19f817b4574e8d1591c11db0f62137b5"}
1260
1272
  Authenticating with gds_sso strategy
1261
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1273
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1262
1274
   (0.0ms) begin transaction
1263
-  (0.0ms) commit transaction
1275
+  (0.1ms) commit transaction
1264
1276
  Redirected to http://www.example-client.com/this_requires_signin_permission
1265
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1266
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1277
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1278
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1267
1279
  Processing by ExampleController#this_requires_signin_permission as HTML
1268
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1280
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1269
1281
  Rendering text template
1270
1282
  Rendered text template (0.0ms)
1271
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1272
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1273
- Processing by ExampleController#restricted as HTML
1283
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1284
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1285
+ Processing by ExampleController#this_requires_signin_permission as HTML
1274
1286
  Authenticating with gds_sso strategy
1275
1287
  Completed in 0ms (ActiveRecord: 0.0ms)
1276
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1277
- Started GET "/auth/gds/callback?code=5face0d186b6d158ba605e7f768962aadb4284d01368a0c08631e9c5e64bdb52&state=a64a21a6bf9b6c62bff33711337ebc51ab1237b905900682" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1288
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1289
+ Started GET "/auth/gds/callback?code=e40bd744a1307d4fc723db1ffd433c763ea292d47ba7bac679420a4e48a839d6&state=ac1f0c3193efb8f3ed7c3ce66a680082a39c1649b422c012" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1278
1290
  Processing by AuthenticationsController#callback as HTML
1279
- Parameters: {"code"=>"5face0d186b6d158ba605e7f768962aadb4284d01368a0c08631e9c5e64bdb52", "state"=>"a64a21a6bf9b6c62bff33711337ebc51ab1237b905900682"}
1291
+ Parameters: {"code"=>"e40bd744a1307d4fc723db1ffd433c763ea292d47ba7bac679420a4e48a839d6", "state"=>"ac1f0c3193efb8f3ed7c3ce66a680082a39c1649b422c012"}
1280
1292
  Authenticating with gds_sso strategy
1281
1293
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1282
-  (0.0ms) begin transaction
1294
+  (0.1ms) begin transaction
1283
1295
   (0.1ms) commit transaction
1284
- Redirected to http://www.example-client.com/restricted
1285
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1286
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1287
- Processing by ExampleController#restricted as HTML
1288
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1296
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1297
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1298
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1299
+ Processing by ExampleController#this_requires_signin_permission as HTML
1300
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1289
1301
  Rendering text template
1290
- Rendered text template (0.2ms)
1291
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1292
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1302
+ Rendered text template (0.0ms)
1303
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1304
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1293
1305
  Processing by ExampleController#restricted as HTML
1294
1306
  Authenticating with gds_sso strategy
1295
1307
  Completed in 0ms (ActiveRecord: 0.0ms)
1296
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1297
- Started GET "/auth/gds/callback?code=0704edee38b33462fb9f2fb4b8a23bf23559d1d62e85fc348022a8ea4f9e3074&state=fd40e5641e3fa51da2f98a19a1063f116a86bb13ebc46ec7" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1308
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1309
+ Started GET "/auth/gds/callback?code=50ac4a78e6ffce0789b79a57005b68400979e0db661278d58f216d2a701ede11&state=c8fbb7cd120cf2c350c4367e709b999ec0db79a1f3371ea6" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1298
1310
  Processing by AuthenticationsController#callback as HTML
1299
- Parameters: {"code"=>"0704edee38b33462fb9f2fb4b8a23bf23559d1d62e85fc348022a8ea4f9e3074", "state"=>"fd40e5641e3fa51da2f98a19a1063f116a86bb13ebc46ec7"}
1311
+ Parameters: {"code"=>"50ac4a78e6ffce0789b79a57005b68400979e0db661278d58f216d2a701ede11", "state"=>"c8fbb7cd120cf2c350c4367e709b999ec0db79a1f3371ea6"}
1300
1312
  Authenticating with gds_sso strategy
1301
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1302
-  (0.0ms) begin transaction
1303
-  (0.0ms) commit transaction
1313
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1314
+  (0.1ms) begin transaction
1315
+  (0.1ms) commit transaction
1304
1316
  Redirected to http://www.example-client.com/restricted
1305
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1306
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1317
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
1318
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1307
1319
  Processing by ExampleController#restricted as HTML
1308
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1320
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1309
1321
  Rendering text template
1310
- Rendered text template (0.1ms)
1311
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1312
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1322
+ Rendered text template (0.0ms)
1323
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1324
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1313
1325
  Processing by ExampleController#restricted as HTML
1314
1326
  Authenticating with gds_sso strategy
1315
1327
  Completed in 0ms (ActiveRecord: 0.0ms)
1316
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:46 +0000
1317
- Started GET "/auth/gds/callback?code=f1d50a1344511cd3480ebd6b094750fb81bea076cb3c1d3c8d30899a2506819e&state=e2ac30d920c8b0cb776d0ba3187811a220f250afe4d5a6ca" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1328
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1329
+ Started GET "/auth/gds/callback?code=190005b367b1b115275a62351af9ddc91acc2839c6631387bbe5467dde353321&state=b59fc849f7d54dcdddfa6be199ee510726a23b5973acab4f" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1318
1330
  Processing by AuthenticationsController#callback as HTML
1319
- Parameters: {"code"=>"f1d50a1344511cd3480ebd6b094750fb81bea076cb3c1d3c8d30899a2506819e", "state"=>"e2ac30d920c8b0cb776d0ba3187811a220f250afe4d5a6ca"}
1331
+ Parameters: {"code"=>"190005b367b1b115275a62351af9ddc91acc2839c6631387bbe5467dde353321", "state"=>"b59fc849f7d54dcdddfa6be199ee510726a23b5973acab4f"}
1320
1332
  Authenticating with gds_sso strategy
1321
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1333
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1322
1334
   (0.1ms) begin transaction
1323
1335
   (0.1ms) commit transaction
1324
1336
  Redirected to http://www.example-client.com/restricted
1325
- Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1326
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1337
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1338
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1327
1339
  Processing by ExampleController#restricted as HTML
1328
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1340
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1329
1341
  Rendering text template
1330
1342
  Rendered text template (0.0ms)
1331
1343
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1332
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1344
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1333
1345
  Processing by ExampleController#restricted as HTML
1334
1346
  Authenticating with gds_sso strategy
1335
1347
  Completed in 0ms (ActiveRecord: 0.0ms)
1336
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1337
- Started GET "/auth/gds/callback?code=cc1a662f6e8fa952c5255bf3f2f3b5ac682fe4018b8786eaaadd954a0d70cdbb&state=eb40effa597b1613045fe33220543ba4925de0b3878d69a5" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1348
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:56 +0000
1349
+ Started GET "/auth/gds/callback?code=bfab66fd6f1c24ab3df406d0a831292dbe9d41665c35788c33b88222209fd659&state=a06fd740720ed0745fe9aa9913d9f1ed059cb59ee8165d30" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1338
1350
  Processing by AuthenticationsController#callback as HTML
1339
- Parameters: {"code"=>"cc1a662f6e8fa952c5255bf3f2f3b5ac682fe4018b8786eaaadd954a0d70cdbb", "state"=>"eb40effa597b1613045fe33220543ba4925de0b3878d69a5"}
1351
+ Parameters: {"code"=>"bfab66fd6f1c24ab3df406d0a831292dbe9d41665c35788c33b88222209fd659", "state"=>"a06fd740720ed0745fe9aa9913d9f1ed059cb59ee8165d30"}
1340
1352
  Authenticating with gds_sso strategy
1341
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1353
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1342
1354
   (0.1ms) begin transaction
1343
1355
   (0.0ms) commit transaction
1344
1356
  Redirected to http://www.example-client.com/restricted
1345
- Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1346
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1357
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1358
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1347
1359
  Processing by ExampleController#restricted as HTML
1348
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1360
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1349
1361
  Rendering text template
1350
1362
  Rendered text template (0.0ms)
1351
1363
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1352
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:06:47 +0000
1364
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1365
+  (0.1ms) begin transaction
1366
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
1367
+  (6.9ms) commit transaction
1368
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1369
+ Processing by ExampleController#restricted as HTML
1370
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1371
+ Authenticating with gds_sso strategy
1372
+ Completed in 2ms (ActiveRecord: 0.3ms)
1373
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1374
+ Started GET "/auth/gds/callback?code=3a5888b74d6b6d60f8b6b931c7debee812adcf56ccac13d9c1d8bb99d2859a2e&state=952acf10d994e0f6b2975dd619bb6d6139456c554268de63" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1375
+ Processing by AuthenticationsController#callback as HTML
1376
+ Parameters: {"code"=>"3a5888b74d6b6d60f8b6b931c7debee812adcf56ccac13d9c1d8bb99d2859a2e", "state"=>"952acf10d994e0f6b2975dd619bb6d6139456c554268de63"}
1377
+ Authenticating with gds_sso strategy
1378
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1379
+  (0.1ms) begin transaction
1380
+  (0.1ms) commit transaction
1381
+  (0.1ms) begin transaction
1382
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1383
+  (7.7ms) commit transaction
1384
+ Redirected to http://www.example-client.com/restricted
1385
+ Completed 302 Found in 13ms (ActiveRecord: 8.4ms)
1386
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1353
1387
  Processing by ExampleController#restricted as HTML
1354
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1388
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1355
1389
  Rendering text template
1356
1390
  Rendered text template (0.0ms)
1357
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1358
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1391
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1392
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1359
1393
  Processing by ExampleController#restricted as HTML
1360
1394
  Authenticating with gds_sso strategy
1361
1395
  Completed in 0ms (ActiveRecord: 0.0ms)
1362
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1363
- Started GET "/auth/gds/callback?code=3cc841f99bd9671ac4c438e180fc75d673d03ec4ec2cc8530a57dc0808a85636&state=73e1d6169f3c0306576790af575565e609ec82ed21b29afb" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1396
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1397
+ Started GET "/auth/gds/callback?code=c1bda7e7bf0e9503e7ba4715d39b7ea28b51a86d480baa049c0c226afd7de71f&state=69894aa823a9c6ed2c53935eb079fdd8256294078fa04555" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1364
1398
  Processing by AuthenticationsController#callback as HTML
1365
- Parameters: {"code"=>"3cc841f99bd9671ac4c438e180fc75d673d03ec4ec2cc8530a57dc0808a85636", "state"=>"73e1d6169f3c0306576790af575565e609ec82ed21b29afb"}
1399
+ Parameters: {"code"=>"c1bda7e7bf0e9503e7ba4715d39b7ea28b51a86d480baa049c0c226afd7de71f", "state"=>"69894aa823a9c6ed2c53935eb079fdd8256294078fa04555"}
1366
1400
  Authenticating with gds_sso strategy
1367
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1401
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1368
1402
   (0.1ms) begin transaction
1369
-  (0.0ms) commit transaction
1403
+  (0.1ms) commit transaction
1370
1404
  Redirected to http://www.example-client.com/restricted
1371
1405
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1372
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1406
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1373
1407
  Processing by ExampleController#restricted as HTML
1374
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1408
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1375
1409
  Rendering text template
1376
1410
  Rendered text template (0.0ms)
1377
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1378
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:47 +0000
1411
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1412
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1379
1413
  Processing by ExampleController#restricted as HTML
1380
1414
  Authenticating with gds_sso strategy
1381
1415
  Completed in 0ms (ActiveRecord: 0.0ms)
1382
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-12 14:16:47 +0000
1383
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1416
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1417
+ Started GET "/auth/gds/callback?code=f405ca673f4e3d265d6e136a1cf94d0e2e66e4befb4c8bd9da1ce1921fdbcca1&state=bf5701cbec4c4b9a5b2c9d004a2e5d7e797c368fb376dcea" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1418
+ Processing by AuthenticationsController#callback as HTML
1419
+ Parameters: {"code"=>"f405ca673f4e3d265d6e136a1cf94d0e2e66e4befb4c8bd9da1ce1921fdbcca1", "state"=>"bf5701cbec4c4b9a5b2c9d004a2e5d7e797c368fb376dcea"}
1420
+ Authenticating with gds_sso strategy
1421
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1422
+  (0.1ms) begin transaction
1423
+  (0.1ms) commit transaction
1424
+ Redirected to http://www.example-client.com/restricted
1425
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1426
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1427
+ Processing by ExampleController#restricted as HTML
1428
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1429
+ Rendering text template
1430
+ Rendered text template (0.0ms)
1431
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1432
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1384
1433
  Processing by ExampleController#restricted as HTML
1385
1434
  Authenticating with gds_sso strategy
1386
1435
  Completed in 0ms (ActiveRecord: 0.0ms)
1387
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1388
- Started GET "/auth/gds/callback?code=1709a44002caba24e98cefb94073ac312d1e9b463fe95da71dbe4c321fb09775&state=94bbe288e7277ffc065829a9d43c29fac33d58274556d9e3" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1436
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1437
+ Started GET "/auth/gds/callback?code=0aa142a0825535df30bac2591c9de135ad34c425c90ae2bfb3f54440e577bf79&state=3520ea677b734b1c1565b09499acdeef74e93ea38fdcec58" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1389
1438
  Processing by AuthenticationsController#callback as HTML
1390
- Parameters: {"code"=>"1709a44002caba24e98cefb94073ac312d1e9b463fe95da71dbe4c321fb09775", "state"=>"94bbe288e7277ffc065829a9d43c29fac33d58274556d9e3"}
1439
+ Parameters: {"code"=>"0aa142a0825535df30bac2591c9de135ad34c425c90ae2bfb3f54440e577bf79", "state"=>"3520ea677b734b1c1565b09499acdeef74e93ea38fdcec58"}
1391
1440
  Authenticating with gds_sso strategy
1392
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1441
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1393
1442
   (0.1ms) begin transaction
1394
-  (0.0ms) commit transaction
1443
+  (0.2ms) commit transaction
1395
1444
  Redirected to http://www.example-client.com/restricted
1396
- Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1397
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:47 +0000
1445
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1446
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:57 +0000
1398
1447
  Processing by ExampleController#restricted as HTML
1399
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1448
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1400
1449
  Rendering text template
1401
1450
  Rendered text template (0.0ms)
1402
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1403
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:47 +0000
1451
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1452
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1453
+ Processing by ExampleController#restricted as HTML
1454
+ Authenticating with gds_sso strategy
1455
+ Completed in 1ms (ActiveRecord: 0.0ms)
1456
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:14:57 +0000
1457
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:58 +0000
1404
1458
  Processing by ExampleController#restricted as HTML
1405
1459
  Authenticating with gds_sso strategy
1406
1460
  Completed in 0ms (ActiveRecord: 0.0ms)
1407
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-12 14:16:47 +0000
1408
- Started GET "/auth/gds/callback?code=0d06776b6f2e79773057046e66d6cbe4c283f3b0bfe3554f100b9c8a396265bd&state=911257c9e8dfddbc886f074faf5bcb3619c1f8dbb90cacd5" for 127.0.0.1 at 2017-12-12 14:16:48 +0000
1461
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:09:58 +0000
1462
+ Started GET "/auth/gds/callback?code=2aa0611d63b27dbea5219240e61012298df8cf22429d52c43ba071e1a9387d27&state=4924575b260dd947a80bd8c97aac61268cab2393369d78ef" for 127.0.0.1 at 2017-12-15 16:09:58 +0000
1409
1463
  Processing by AuthenticationsController#callback as HTML
1410
- Parameters: {"code"=>"0d06776b6f2e79773057046e66d6cbe4c283f3b0bfe3554f100b9c8a396265bd", "state"=>"911257c9e8dfddbc886f074faf5bcb3619c1f8dbb90cacd5"}
1464
+ Parameters: {"code"=>"2aa0611d63b27dbea5219240e61012298df8cf22429d52c43ba071e1a9387d27", "state"=>"4924575b260dd947a80bd8c97aac61268cab2393369d78ef"}
1411
1465
  Authenticating with gds_sso strategy
1412
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1466
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1413
1467
   (0.1ms) begin transaction
1414
-  (0.1ms) commit transaction
1468
+  (0.0ms) commit transaction
1415
1469
  Redirected to http://www.example-client.com/restricted
1416
1470
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1417
- Started GET "/restricted" for 127.0.0.1 at 2017-12-12 14:16:48 +0000
1471
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:09:58 +0000
1472
+ Processing by ExampleController#restricted as HTML
1473
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1474
+ Rendering text template
1475
+ Rendered text template (0.0ms)
1476
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1477
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:04:58 +0000
1418
1478
  Processing by ExampleController#restricted as HTML
1419
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1479
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
1420
1480
  Rendering text template
1421
1481
  Rendered text template (0.0ms)
1422
1482
  Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1423
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:48 +0000
1483
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1484
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1485
+  (0.0ms) begin transaction
1486
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1487
+  (8.7ms) commit transaction
1488
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1489
+  (0.1ms) begin transaction
1490
+  (0.0ms) commit transaction
1491
+  (12.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f') 
1492
+  (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1493
+  (0.1ms) select sqlite_version(*)
1494
+  (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1495
+  (0.1ms) begin transaction
1496
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39124"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1497
+  (5.0ms) commit transaction
1498
+  (0.0ms) begin transaction
1499
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31728"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1500
+  (3.9ms) commit transaction
1501
+ Processing by Api::UserController#update as HTML
1502
+ Parameters: {"uid"=>"a1s2d39124"}
1503
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1504
+ Completed 403 Forbidden in 15ms (Views: 15.0ms | ActiveRecord: 0.0ms)
1505
+  (0.1ms) begin transaction
1506
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35819"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1507
+  (10.7ms) commit transaction
1508
+  (0.1ms) begin transaction
1509
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34231"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1510
+  (6.0ms) commit transaction
1511
+ Processing by Api::UserController#update as HTML
1512
+ Parameters: {"uid"=>"a1s2d35819"}
1513
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35819"]]
1514
+  (0.1ms) begin transaction
1515
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 3]]
1516
+  (4.7ms) commit transaction
1517
+ Completed 200 OK in 15ms (ActiveRecord: 5.2ms)
1518
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1519
+  (0.0ms) begin transaction
1520
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39552"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1521
+  (5.3ms) commit transaction
1522
+  (0.0ms) begin transaction
1523
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33231"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1524
+  (6.6ms) commit transaction
1525
+ Processing by Api::UserController#reauth as HTML
1526
+ Parameters: {"uid"=>"a1s2d39552"}
1527
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39552"]]
1528
+  (0.1ms) begin transaction
1529
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1530
+  (4.8ms) commit transaction
1531
+ Completed 200 OK in 7ms (ActiveRecord: 5.1ms)
1532
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1533
+  (0.0ms) begin transaction
1534
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34526"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1535
+  (5.8ms) commit transaction
1536
+  (0.1ms) begin transaction
1537
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34701"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1538
+  (4.7ms) commit transaction
1539
+ Processing by Api::UserController#reauth as HTML
1540
+ Parameters: {"uid"=>"a1s2d34526"}
1541
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1542
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
1543
+  (0.1ms) begin transaction
1544
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33985"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
1545
+  (4.5ms) commit transaction
1546
+  (0.0ms) begin transaction
1547
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33085"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1548
+  (3.7ms) commit transaction
1549
+ Processing by Api::UserController#reauth as HTML
1550
+ Parameters: {"uid"=>"nonexistent-user"}
1551
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
1552
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1553
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:05 +0000
1424
1554
  Processing by ExampleController#restricted as HTML
1425
1555
  Authenticating with gds_sso strategy
1556
+ Completed in 8ms (ActiveRecord: 0.0ms)
1557
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:05 +0000
1558
+ Processing by ExampleController#restricted as JSON
1559
+ Completed in 29ms (ActiveRecord: 0.0ms)
1560
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:05 +0000
1561
+ Processing by ExampleController#restricted as JSON
1562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1563
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1564
+  (0.1ms) begin transaction
1565
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
1566
+  (4.4ms) commit transaction
1567
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1568
+  (0.1ms) begin transaction
1569
+  (0.0ms) commit transaction
1570
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1571
+  (0.1ms) begin transaction
1572
+  (0.0ms) commit transaction
1573
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1574
+  (0.0ms) begin transaction
1575
+  (0.1ms) commit transaction
1576
+  (0.0ms) begin transaction
1577
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1578
+  (10.4ms) commit transaction
1579
+ Rendered text template (0.0ms)
1580
+ Completed 200 OK in 105ms (Views: 9.6ms | ActiveRecord: 16.0ms)
1581
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1582
+ Processing by ExampleController#this_requires_signin_permission as JSON
1583
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1584
+  (0.1ms) begin transaction
1585
+  (0.0ms) commit transaction
1586
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1587
+  (0.1ms) begin transaction
1588
+  (0.0ms) commit transaction
1589
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1590
+  (0.1ms) begin transaction
1591
+  (0.0ms) commit transaction
1592
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1593
+  (0.1ms) begin transaction
1594
+  (0.0ms) commit transaction
1595
+  (0.0ms) begin transaction
1596
+  (0.0ms) commit transaction
1597
+ Rendered text template (0.0ms)
1598
+ Completed 200 OK in 71ms (Views: 0.3ms | ActiveRecord: 0.7ms)
1599
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1600
+ Processing by ExampleController#restricted as JSON
1601
+ Completed in 12ms (ActiveRecord: 0.0ms)
1602
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1603
+ Processing by ExampleController#this_requires_signin_permission as HTML
1604
+ Authenticating with gds_sso strategy
1426
1605
  Completed in 0ms (ActiveRecord: 0.0ms)
1427
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:48 +0000
1428
- Started GET "/auth/gds/callback?code=73b8b1d09e2cacf554292f82e4cd29ca4a82ddfc88963ed02a83816af38e5f51&state=53ef06cd013ccf779d19cab42c99e15631703d6c3e40e74d" for 127.0.0.1 at 2017-12-11 18:11:48 +0000
1606
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1607
+ Started GET "/auth/gds/callback?code=54a2a37a8d993f5e20c6ccdc15cc4b605e2b53eb0b90c8bf3469ae8e22c0a688&state=011831a31bf3553db15e5bc9f6ca9ae577bc77730f6e9abb" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1429
1608
  Processing by AuthenticationsController#callback as HTML
1430
- Parameters: {"code"=>"73b8b1d09e2cacf554292f82e4cd29ca4a82ddfc88963ed02a83816af38e5f51", "state"=>"53ef06cd013ccf779d19cab42c99e15631703d6c3e40e74d"}
1609
+ Parameters: {"code"=>"54a2a37a8d993f5e20c6ccdc15cc4b605e2b53eb0b90c8bf3469ae8e22c0a688", "state"=>"011831a31bf3553db15e5bc9f6ca9ae577bc77730f6e9abb"}
1431
1610
  Authenticating with gds_sso strategy
1432
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1433
-  (0.0ms) begin transaction
1434
-  (0.1ms) commit transaction
1611
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1612
+  (0.1ms) begin transaction
1613
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 11]]
1614
+  (4.9ms) commit transaction
1615
+  (0.0ms) begin transaction
1616
+  (0.1ms) commit transaction
1617
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1618
+ Completed 302 Found in 9ms (ActiveRecord: 5.3ms)
1619
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1620
+ Processing by ExampleController#this_requires_signin_permission as HTML
1621
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1622
+ Rendered text template (0.0ms)
1623
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1624
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1625
+ Processing by ExampleController#this_requires_signin_permission as HTML
1626
+ Authenticating with gds_sso strategy
1627
+ Completed in 0ms (ActiveRecord: 0.0ms)
1628
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1629
+ Started GET "/auth/gds/callback?code=b1015927d1ad7ff4508a6cc783ee12df3be3ee9306acc40bc47d79fec5e34aff&state=9e12447884783b9b3ba381800d5b7a4b57c739899a745390" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1630
+ Processing by AuthenticationsController#callback as HTML
1631
+ Parameters: {"code"=>"b1015927d1ad7ff4508a6cc783ee12df3be3ee9306acc40bc47d79fec5e34aff", "state"=>"9e12447884783b9b3ba381800d5b7a4b57c739899a745390"}
1632
+ Authenticating with gds_sso strategy
1633
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1634
+  (0.1ms) begin transaction
1635
+  (0.1ms) commit transaction
1636
+  (0.0ms) begin transaction
1637
+  (0.0ms) commit transaction
1638
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1639
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1640
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1641
+ Processing by ExampleController#this_requires_signin_permission as HTML
1642
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1643
+ Rendered text template (0.0ms)
1644
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1645
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1646
+ Processing by ExampleController#restricted as HTML
1647
+ Authenticating with gds_sso strategy
1648
+ Completed in 0ms (ActiveRecord: 0.0ms)
1649
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1650
+ Started GET "/auth/gds/callback?code=0eccec06081d7924c253cdc60eaf88f5bf151bd57cbfb2abc4eef9471f403fdb&state=8cfbd0191d1eb66e26add649554468cf5b5ebd4d070e810b" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1651
+ Processing by AuthenticationsController#callback as HTML
1652
+ Parameters: {"code"=>"0eccec06081d7924c253cdc60eaf88f5bf151bd57cbfb2abc4eef9471f403fdb", "state"=>"8cfbd0191d1eb66e26add649554468cf5b5ebd4d070e810b"}
1653
+ Authenticating with gds_sso strategy
1654
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1655
+  (0.1ms) begin transaction
1656
+  (0.1ms) commit transaction
1657
+  (0.0ms) begin transaction
1658
+  (0.0ms) commit transaction
1435
1659
  Redirected to http://www.example-client.com/restricted
1436
1660
  Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1437
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:48 +0000
1661
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1438
1662
  Processing by ExampleController#restricted as HTML
1439
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1440
- Rendering text template
1663
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1441
1664
  Rendered text template (0.0ms)
1442
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1443
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1444
-  (0.0ms) begin transaction
1445
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 12]]
1446
-  (5.6ms) commit transaction
1447
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:48 +0000
1665
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1666
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1448
1667
  Processing by ExampleController#restricted as HTML
1449
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1450
1668
  Authenticating with gds_sso strategy
1451
- Completed in 1ms (ActiveRecord: 0.1ms)
1452
- Started GET "/auth/gds" for 127.0.0.1 at 2017-12-11 18:11:48 +0000
1453
- Started GET "/auth/gds/callback?code=42c26fd0aef0bf0ade1e701e9fdd5bbb31f98b8f05e86abba8279d6dfc5cc243&state=b568d95a82bfe8323baf2ac2320a6296a4983cc2b2e3b8d1" for 127.0.0.1 at 2017-12-11 18:11:48 +0000
1669
+ Completed in 0ms (ActiveRecord: 0.0ms)
1670
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:06 +0000
1671
+ Started GET "/auth/gds/callback?code=d55c23b8ea66c10f211d9f56c6853ac896f26fb83bc8437d406a39e5cdf09409&state=6a0c14caf9575a1d7bb955e36ac2fcb4d29d4e2a39df7041" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1454
1672
  Processing by AuthenticationsController#callback as HTML
1455
- Parameters: {"code"=>"42c26fd0aef0bf0ade1e701e9fdd5bbb31f98b8f05e86abba8279d6dfc5cc243", "state"=>"b568d95a82bfe8323baf2ac2320a6296a4983cc2b2e3b8d1"}
1673
+ Parameters: {"code"=>"d55c23b8ea66c10f211d9f56c6853ac896f26fb83bc8437d406a39e5cdf09409", "state"=>"6a0c14caf9575a1d7bb955e36ac2fcb4d29d4e2a39df7041"}
1456
1674
  Authenticating with gds_sso strategy
1457
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1458
-  (0.1ms) begin transaction
1459
-  (0.0ms) commit transaction
1460
-  (0.1ms) begin transaction
1461
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
1462
-  (5.2ms) commit transaction
1675
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1676
+  (0.1ms) begin transaction
1677
+  (0.0ms) commit transaction
1678
+  (0.0ms) begin transaction
1679
+  (0.1ms) commit transaction
1463
1680
  Redirected to http://www.example-client.com/restricted
1464
- Completed 302 Found in 10ms (ActiveRecord: 5.7ms)
1465
- Started GET "/restricted" for 127.0.0.1 at 2017-12-11 18:11:48 +0000
1681
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1682
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1466
1683
  Processing by ExampleController#restricted as HTML
1467
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", false], ["LIMIT", 1]]
1468
- Rendering text template
1684
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1469
1685
  Rendered text template (0.0ms)
1470
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1686
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1687
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1688
+ Processing by ExampleController#restricted as HTML
1689
+ Authenticating with gds_sso strategy
1690
+ Completed in 0ms (ActiveRecord: 0.0ms)
1691
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1692
+ Started GET "/auth/gds/callback?code=ea8160563e46d9f0f88ae2668dcfffe50024e58e04dfdfa3244907689c5a225f&state=7909b721d2c97d3b204033e499fd3794cfd2f4b91cf69075" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1693
+ Processing by AuthenticationsController#callback as HTML
1694
+ Parameters: {"code"=>"ea8160563e46d9f0f88ae2668dcfffe50024e58e04dfdfa3244907689c5a225f", "state"=>"7909b721d2c97d3b204033e499fd3794cfd2f4b91cf69075"}
1695
+ Authenticating with gds_sso strategy
1696
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1697
+  (0.1ms) begin transaction
1698
+  (0.0ms) commit transaction
1699
+  (0.0ms) begin transaction
1700
+  (0.0ms) commit transaction
1701
+ Redirected to http://www.example-client.com/restricted
1702
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1703
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1704
+ Processing by ExampleController#restricted as HTML
1705
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1706
+ Rendered text template (0.0ms)
1707
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1708
+ Started GET "/" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1709
+ Processing by ExampleController#index as HTML
1710
+ Rendered text template (0.0ms)
1711
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1712
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1713
+ Processing by ExampleController#restricted as HTML
1714
+ Authenticating with gds_sso strategy
1715
+ Completed in 0ms (ActiveRecord: 0.0ms)
1716
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1717
+ Started GET "/auth/gds/callback?code=7e8a58faa123cdd79e6e7c48baa86ac44d86efd876452681d29dfd3faa62b7af&state=7460db97e12d696b1ce646e05bdcc0e56beeeda8484a5f2e" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1718
+ Processing by AuthenticationsController#callback as HTML
1719
+ Parameters: {"code"=>"7e8a58faa123cdd79e6e7c48baa86ac44d86efd876452681d29dfd3faa62b7af", "state"=>"7460db97e12d696b1ce646e05bdcc0e56beeeda8484a5f2e"}
1720
+ Authenticating with gds_sso strategy
1721
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1722
+  (0.1ms) begin transaction
1723
+  (0.0ms) commit transaction
1724
+  (0.0ms) begin transaction
1725
+  (0.0ms) commit transaction
1726
+ Redirected to http://www.example-client.com/restricted
1727
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1728
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1729
+ Processing by ExampleController#restricted as HTML
1730
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1731
+ Rendered text template (0.0ms)
1732
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1733
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1734
+  (0.1ms) begin transaction
1735
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]
1736
+  (4.4ms) commit transaction
1737
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1738
+ Processing by ExampleController#restricted as HTML
1739
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1740
+ Authenticating with gds_sso strategy
1741
+ Completed in 1ms (ActiveRecord: 0.1ms)
1742
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1743
+ Started GET "/auth/gds/callback?code=43d9ec3fe981731e37f25e0d25163d102674a138086b682538079459076b28ec&state=eb97ca93c648895c31eb4f32dc6248af74fb24269901c970" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1744
+ Processing by AuthenticationsController#callback as HTML
1745
+ Parameters: {"code"=>"43d9ec3fe981731e37f25e0d25163d102674a138086b682538079459076b28ec", "state"=>"eb97ca93c648895c31eb4f32dc6248af74fb24269901c970"}
1746
+ Authenticating with gds_sso strategy
1747
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1748
+  (0.1ms) begin transaction
1749
+  (0.0ms) commit transaction
1750
+  (0.0ms) begin transaction
1751
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]
1752
+  (7.1ms) commit transaction
1753
+ Redirected to http://www.example-client.com/restricted
1754
+ Completed 302 Found in 11ms (ActiveRecord: 7.5ms)
1755
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1756
+ Processing by ExampleController#restricted as HTML
1757
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1758
+ Rendered text template (0.0ms)
1759
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1760
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1761
+ Processing by ExampleController#restricted as HTML
1762
+ Authenticating with gds_sso strategy
1763
+ Completed in 0ms (ActiveRecord: 0.0ms)
1764
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1765
+ Started GET "/auth/gds/callback?code=2321b9208d545bd4b9063b4838dadd9afb39d1b2371fb9604639406328a6f0c7&state=051e2d81d0653ec95d9bfa3a47cedf99e43643a9c7c0e051" for 127.0.0.1 at 2017-12-15 16:10:07 +0000
1766
+ Processing by AuthenticationsController#callback as HTML
1767
+ Parameters: {"code"=>"2321b9208d545bd4b9063b4838dadd9afb39d1b2371fb9604639406328a6f0c7", "state"=>"051e2d81d0653ec95d9bfa3a47cedf99e43643a9c7c0e051"}
1768
+ Authenticating with gds_sso strategy
1769
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1770
+  (0.1ms) begin transaction
1771
+  (0.0ms) commit transaction
1772
+  (0.0ms) begin transaction
1773
+  (0.0ms) commit transaction
1774
+ Redirected to http://www.example-client.com/restricted
1775
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1776
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1777
+ Processing by ExampleController#restricted as HTML
1778
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1779
+ Rendered text template (0.0ms)
1780
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1781
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1782
+ Processing by ExampleController#restricted as HTML
1783
+ Authenticating with gds_sso strategy
1784
+ Completed in 0ms (ActiveRecord: 0.0ms)
1785
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1786
+ Started GET "/auth/gds/callback?code=77596a542651594ffa0d074fda272e975649b9db786f0f18d95b114ad4ba2302&state=60eea84e1fb47a0dea30a419dcd0c73b9d8382f05085271b" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1787
+ Processing by AuthenticationsController#callback as HTML
1788
+ Parameters: {"code"=>"77596a542651594ffa0d074fda272e975649b9db786f0f18d95b114ad4ba2302", "state"=>"60eea84e1fb47a0dea30a419dcd0c73b9d8382f05085271b"}
1789
+ Authenticating with gds_sso strategy
1790
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1791
+  (0.1ms) begin transaction
1792
+  (0.0ms) commit transaction
1793
+  (0.1ms) begin transaction
1794
+  (0.1ms) commit transaction
1795
+ Redirected to http://www.example-client.com/restricted
1796
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1797
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1798
+ Processing by ExampleController#restricted as HTML
1799
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1800
+ Rendered text template (0.0ms)
1801
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1802
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1803
+ Processing by ExampleController#restricted as HTML
1804
+ Authenticating with gds_sso strategy
1805
+ Completed in 0ms (ActiveRecord: 0.0ms)
1806
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1807
+ Started GET "/auth/gds/callback?code=0b3df9acb34916760c34d3e5f27cbb6c18c605bc0b2d9b3aed7eeef87f78b7c8&state=68865ca4bdab4e127def223513e02254d3fbf971c16242af" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1808
+ Processing by AuthenticationsController#callback as HTML
1809
+ Parameters: {"code"=>"0b3df9acb34916760c34d3e5f27cbb6c18c605bc0b2d9b3aed7eeef87f78b7c8", "state"=>"68865ca4bdab4e127def223513e02254d3fbf971c16242af"}
1810
+ Authenticating with gds_sso strategy
1811
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1812
+  (0.1ms) begin transaction
1813
+  (0.0ms) commit transaction
1814
+  (0.0ms) begin transaction
1815
+  (0.0ms) commit transaction
1816
+ Redirected to http://www.example-client.com/restricted
1817
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1818
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1819
+ Processing by ExampleController#restricted as HTML
1820
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1821
+ Rendered text template (0.0ms)
1822
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1823
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:05:08 +0000
1824
+ Processing by ExampleController#restricted as HTML
1825
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1826
+ Rendered text template (0.0ms)
1827
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1828
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1829
+ Processing by ExampleController#restricted as HTML
1830
+ Authenticating with gds_sso strategy
1831
+ Completed in 0ms (ActiveRecord: 0.0ms)
1832
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1833
+ Started GET "/auth/gds/callback?code=6cec5190400a02b797de1152634b34e5f135f400495ca09d9d7e696757b47901&state=2b2f937b1c9badb8728367f454f11118f1ee1f958da28b6d" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1834
+ Processing by AuthenticationsController#callback as HTML
1835
+ Parameters: {"code"=>"6cec5190400a02b797de1152634b34e5f135f400495ca09d9d7e696757b47901", "state"=>"2b2f937b1c9badb8728367f454f11118f1ee1f958da28b6d"}
1836
+ Authenticating with gds_sso strategy
1837
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1838
+  (0.1ms) begin transaction
1839
+  (0.0ms) commit transaction
1840
+  (0.0ms) begin transaction
1841
+  (0.0ms) commit transaction
1842
+ Redirected to http://www.example-client.com/restricted
1843
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1844
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:08 +0000
1845
+ Processing by ExampleController#restricted as HTML
1846
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"], ["remotely_signed_out", "f"]]
1847
+ Rendered text template (0.0ms)
1848
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1849
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1850
+ Processing by ExampleController#restricted as HTML
1851
+ Authenticating with gds_sso strategy
1852
+ Completed in 0ms (ActiveRecord: 0.0ms)
1853
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:15:08 +0000
1854
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1855
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
1856
+  (0.1ms) begin transaction
1857
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["uid", "asd"], ["email", "user@example.com"], ["name", "A Name"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1858
+  (6.3ms) commit transaction
1859
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
1860
+  (0.0ms) begin transaction
1861
+  (0.0ms) commit transaction
1862
+  (0.1ms) DROP TABLE IF EXISTS "users"
1863
+  (1.4ms) SELECT sqlite_version(*)
1864
+  (8.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "email" varchar NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar, "organisation_content_id" varchar, "disabled" boolean DEFAULT 'f')
1865
+  (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1866
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1867
+  (0.1ms) begin transaction
1868
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2017-12-15 16:10:14.354442"], ["updated_at", "2017-12-15 16:10:14.354442"]]
1869
+  (5.0ms) commit transaction
1870
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1871
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1872
+  (0.1ms) begin transaction
1873
+  (0.0ms) commit transaction
1874
+  (0.1ms) begin transaction
1875
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36112"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1876
+  (7.0ms) commit transaction
1877
+  (0.1ms) begin transaction
1878
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37517"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1879
+  (6.5ms) commit transaction
1880
+ Processing by Api::UserController#update as HTML
1881
+ Parameters: {"uid"=>"a1s2d36112"}
1882
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36112"], ["LIMIT", 1]]
1883
+  (0.1ms) begin transaction
1884
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 1]]
1885
+  (4.5ms) commit transaction
1886
+ Completed 200 OK in 10ms (ActiveRecord: 5.0ms)
1887
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1888
+  (0.1ms) begin transaction
1889
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d39339"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1890
+  (5.4ms) commit transaction
1891
+  (0.1ms) begin transaction
1892
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d39904"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1893
+  (9.3ms) commit transaction
1894
+ Processing by Api::UserController#update as HTML
1895
+ Parameters: {"uid"=>"a1s2d39339"}
1896
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1897
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1898
+ Completed 403 Forbidden in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms)
1899
+  (0.1ms) begin transaction
1900
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34286"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1901
+  (4.7ms) commit transaction
1902
+  (0.1ms) begin transaction
1903
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38224"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1904
+  (7.5ms) commit transaction
1905
+ Processing by Api::UserController#reauth as HTML
1906
+ Parameters: {"uid"=>"a1s2d34286"}
1907
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34286"], ["LIMIT", 1]]
1908
+  (0.1ms) begin transaction
1909
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
1910
+  (4.9ms) commit transaction
1911
+ Completed 200 OK in 8ms (ActiveRecord: 5.3ms)
1912
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1913
+  (0.1ms) begin transaction
1914
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d3831"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1915
+  (4.9ms) commit transaction
1916
+  (0.0ms) begin transaction
1917
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37902"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1918
+  (3.9ms) commit transaction
1919
+ Processing by Api::UserController#reauth as HTML
1920
+ Parameters: {"uid"=>"nonexistent-user"}
1921
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1922
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1923
+  (0.1ms) begin transaction
1924
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36644"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1925
+  (3.8ms) commit transaction
1926
+  (0.0ms) begin transaction
1927
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d321"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1928
+  (4.9ms) commit transaction
1929
+ Processing by Api::UserController#reauth as HTML
1930
+ Parameters: {"uid"=>"a1s2d36644"}
1931
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1932
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1933
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1934
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1935
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1936
+  (0.1ms) begin transaction
1937
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "organisation_slug", "organisation_content_id", "disabled") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "A Name"], ["uid", "asd"], ["email", "user@example.com"], ["permissions", "---\n- signin\n"], ["organisation_slug", "hmrc"], ["organisation_content_id", "67a2b78d-eee3-45b3-80e2-792e7f71cecc"], ["disabled", nil]]
1938
+  (4.6ms) commit transaction
1939
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1940
+  (0.1ms) begin transaction
1941
+  (0.1ms) commit transaction
1942
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:14 +0000
1943
+ Processing by ExampleController#restricted as JSON
1944
+ Completed in 25ms (ActiveRecord: 0.0ms)
1945
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1946
+ Processing by ExampleController#restricted as JSON
1947
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1948
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1949
+  (0.0ms) begin transaction
1950
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions", "disabled") VALUES (?, ?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"], ["disabled", nil]]
1951
+  (4.6ms) commit transaction
1952
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1953
+  (0.0ms) begin transaction
1954
+  (0.0ms) commit transaction
1955
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1956
+  (0.1ms) begin transaction
1957
+  (0.0ms) commit transaction
1958
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1959
+  (0.1ms) begin transaction
1960
+  (0.0ms) commit transaction
1961
+  (0.0ms) begin transaction
1962
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1963
+  (5.2ms) commit transaction
1964
+ Rendering text template
1965
+ Rendered text template (0.0ms)
1966
+ Completed 200 OK in 118ms (Views: 1.3ms | ActiveRecord: 11.3ms)
1967
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1968
+ Processing by ExampleController#restricted as JSON
1969
+ Completed in 38ms (ActiveRecord: 0.0ms)
1970
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1971
+ Processing by ExampleController#this_requires_signin_permission as JSON
1972
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1973
+  (0.1ms) begin transaction
1974
+  (0.0ms) commit transaction
1975
+ CACHE User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1976
+  (0.1ms) begin transaction
1977
+  (0.1ms) commit transaction
1978
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1979
+  (0.1ms) begin transaction
1980
+  (0.0ms) commit transaction
1981
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1982
+  (0.1ms) begin transaction
1983
+  (0.0ms) commit transaction
1984
+ Rendering text template
1985
+ Rendered text template (0.0ms)
1986
+ Completed 200 OK in 72ms (Views: 0.3ms | ActiveRecord: 0.9ms)
1987
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1988
+ Processing by ExampleController#restricted as HTML
1989
+ Authenticating with gds_sso strategy
1990
+ Completed in 0ms (ActiveRecord: 0.0ms)
1991
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1992
+ Processing by ExampleController#restricted as HTML
1993
+ Authenticating with gds_sso strategy
1994
+ Completed in 0ms (ActiveRecord: 0.0ms)
1995
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1996
+ Started GET "/auth/gds/callback?code=f5ded92b93b4f071fc088ae57afcf1138dcedb5c3976979bcae3d722f10ae687&state=b9df4a261d6cb6e4ecee2aacaf7259b64da062bb9af4b7e1" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
1997
+ Processing by AuthenticationsController#callback as HTML
1998
+ Parameters: {"code"=>"f5ded92b93b4f071fc088ae57afcf1138dcedb5c3976979bcae3d722f10ae687", "state"=>"b9df4a261d6cb6e4ecee2aacaf7259b64da062bb9af4b7e1"}
1999
+ Authenticating with gds_sso strategy
2000
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2001
+  (0.0ms) begin transaction
2002
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
2003
+  (4.9ms) commit transaction
2004
+ Redirected to http://www.example-client.com/restricted
2005
+ Completed 302 Found in 9ms (ActiveRecord: 5.4ms)
2006
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2007
+ Processing by ExampleController#restricted as HTML
2008
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2009
+ Rendering text template
2010
+ Rendered text template (0.0ms)
2011
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2012
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2013
+ Processing by ExampleController#restricted as HTML
2014
+ Authenticating with gds_sso strategy
2015
+ Completed in 0ms (ActiveRecord: 0.0ms)
2016
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2017
+ Started GET "/auth/gds/callback?code=a8d048d6270e95208404f1a8a3ae299d00930ff3a4b343c28de3486d4e9965da&state=850b44eedf87925a6d812574c69c75ad94c362c527c8eca8" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2018
+ Processing by AuthenticationsController#callback as HTML
2019
+ Parameters: {"code"=>"a8d048d6270e95208404f1a8a3ae299d00930ff3a4b343c28de3486d4e9965da", "state"=>"850b44eedf87925a6d812574c69c75ad94c362c527c8eca8"}
2020
+ Authenticating with gds_sso strategy
2021
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2022
+  (0.1ms) begin transaction
2023
+  (0.0ms) commit transaction
2024
+ Redirected to http://www.example-client.com/restricted
2025
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2026
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2027
+ Processing by ExampleController#restricted as HTML
2028
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2029
+ Rendering text template
2030
+ Rendered text template (0.0ms)
2031
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2032
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2033
+ Processing by ExampleController#this_requires_signin_permission as HTML
2034
+ Authenticating with gds_sso strategy
2035
+ Completed in 0ms (ActiveRecord: 0.0ms)
2036
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2037
+ Started GET "/auth/gds/callback?code=befaee4db347b846583ca1454cb9faa062914fd6eff3b94ba77f4de056f72269&state=8901546407ca2f8be3b53cbcbcfb33b16100a42bf3a7973d" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2038
+ Processing by AuthenticationsController#callback as HTML
2039
+ Parameters: {"code"=>"befaee4db347b846583ca1454cb9faa062914fd6eff3b94ba77f4de056f72269", "state"=>"8901546407ca2f8be3b53cbcbcfb33b16100a42bf3a7973d"}
2040
+ Authenticating with gds_sso strategy
2041
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2042
+  (0.1ms) begin transaction
2043
+  (0.1ms) commit transaction
2044
+ Redirected to http://www.example-client.com/this_requires_signin_permission
2045
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
2046
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2047
+ Processing by ExampleController#this_requires_signin_permission as HTML
2048
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2049
+ Rendering text template
2050
+ Rendered text template (0.0ms)
2051
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2052
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2053
+ Processing by ExampleController#this_requires_signin_permission as HTML
2054
+ Authenticating with gds_sso strategy
2055
+ Completed in 0ms (ActiveRecord: 0.0ms)
2056
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:15 +0000
2057
+ Started GET "/auth/gds/callback?code=cbac07f5dd801174400136e10ea6fc9712f6d227dffca8b0c809fad93a824c11&state=5aa98dd1424b062d3feccf2f696ea94b91f4ce19dff38bac" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2058
+ Processing by AuthenticationsController#callback as HTML
2059
+ Parameters: {"code"=>"cbac07f5dd801174400136e10ea6fc9712f6d227dffca8b0c809fad93a824c11", "state"=>"5aa98dd1424b062d3feccf2f696ea94b91f4ce19dff38bac"}
2060
+ Authenticating with gds_sso strategy
2061
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2062
+  (0.0ms) begin transaction
2063
+  (0.1ms) commit transaction
2064
+ Redirected to http://www.example-client.com/this_requires_signin_permission
2065
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2066
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2067
+ Processing by ExampleController#this_requires_signin_permission as HTML
2068
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2069
+ Rendering text template
2070
+ Rendered text template (0.0ms)
2071
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2072
+ Started GET "/" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2073
+ Processing by ExampleController#index as HTML
2074
+ Rendering text template
2075
+ Rendered text template (0.0ms)
2076
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2077
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2078
+ Processing by ExampleController#restricted as HTML
2079
+ Authenticating with gds_sso strategy
2080
+ Completed in 0ms (ActiveRecord: 0.0ms)
2081
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2082
+ Started GET "/auth/gds/callback?code=7d50fd451e9e4e045b7c86242048c2181978773ca7cac66c0f6a7257cd1e9de1&state=f1b6900e741172fff6045bfa88e21b48f8789370024ad112" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2083
+ Processing by AuthenticationsController#callback as HTML
2084
+ Parameters: {"code"=>"7d50fd451e9e4e045b7c86242048c2181978773ca7cac66c0f6a7257cd1e9de1", "state"=>"f1b6900e741172fff6045bfa88e21b48f8789370024ad112"}
2085
+ Authenticating with gds_sso strategy
2086
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2087
+  (0.1ms) begin transaction
2088
+  (0.0ms) commit transaction
2089
+ Redirected to http://www.example-client.com/restricted
2090
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2091
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2092
+ Processing by ExampleController#restricted as HTML
2093
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2094
+ Rendering text template
2095
+ Rendered text template (0.0ms)
2096
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
2097
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2098
+ Processing by ExampleController#restricted as HTML
2099
+ Authenticating with gds_sso strategy
2100
+ Completed in 0ms (ActiveRecord: 0.0ms)
2101
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2102
+ Started GET "/auth/gds/callback?code=d8fcfe55fe5094fbd45230eee74e80413f438b0671296c4d8222677fc6300532&state=e9d54a09cb42dba43c509882b54fc82f47fb0f145711ad9f" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2103
+ Processing by AuthenticationsController#callback as HTML
2104
+ Parameters: {"code"=>"d8fcfe55fe5094fbd45230eee74e80413f438b0671296c4d8222677fc6300532", "state"=>"e9d54a09cb42dba43c509882b54fc82f47fb0f145711ad9f"}
2105
+ Authenticating with gds_sso strategy
2106
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2107
+  (0.1ms) begin transaction
2108
+  (0.0ms) commit transaction
2109
+ Redirected to http://www.example-client.com/restricted
2110
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2111
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2112
+ Processing by ExampleController#restricted as HTML
2113
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2114
+ Rendering text template
2115
+ Rendered text template (0.0ms)
2116
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2117
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
2118
+  (0.1ms) begin transaction
2119
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
2120
+  (12.5ms) commit transaction
2121
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2122
+ Processing by ExampleController#restricted as HTML
2123
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2124
+ Authenticating with gds_sso strategy
2125
+ Completed in 1ms (ActiveRecord: 0.2ms)
2126
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2127
+ Started GET "/auth/gds/callback?code=742d2c681d678f953cb1c5afe8acfb2c828de14f5c889c6e8b723a8ed5d750d3&state=b2ae84e608c4650a404e0ce83ccc50e90e526ef1fdfe4cfd" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2128
+ Processing by AuthenticationsController#callback as HTML
2129
+ Parameters: {"code"=>"742d2c681d678f953cb1c5afe8acfb2c828de14f5c889c6e8b723a8ed5d750d3", "state"=>"b2ae84e608c4650a404e0ce83ccc50e90e526ef1fdfe4cfd"}
2130
+ Authenticating with gds_sso strategy
2131
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2132
+  (0.0ms) begin transaction
2133
+  (0.0ms) commit transaction
2134
+  (0.0ms) begin transaction
2135
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
2136
+  (4.3ms) commit transaction
2137
+ Redirected to http://www.example-client.com/restricted
2138
+ Completed 302 Found in 8ms (ActiveRecord: 4.8ms)
2139
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2140
+ Processing by ExampleController#restricted as HTML
2141
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2142
+ Rendering text template
2143
+ Rendered text template (0.0ms)
2144
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2145
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2146
+ Processing by ExampleController#restricted as HTML
2147
+ Authenticating with gds_sso strategy
2148
+ Completed in 0ms (ActiveRecord: 0.0ms)
2149
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:16 +0000
2150
+ Started GET "/auth/gds/callback?code=ec532eb71c260cbf44317bc4b12502438d8cb170ad64967a900ee920c1f71c06&state=66f60be1125a23cc018f5ffec9fc78a7a5b2962a84687f09" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2151
+ Processing by AuthenticationsController#callback as HTML
2152
+ Parameters: {"code"=>"ec532eb71c260cbf44317bc4b12502438d8cb170ad64967a900ee920c1f71c06", "state"=>"66f60be1125a23cc018f5ffec9fc78a7a5b2962a84687f09"}
2153
+ Authenticating with gds_sso strategy
2154
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2155
+  (0.0ms) begin transaction
2156
+  (0.0ms) commit transaction
2157
+ Redirected to http://www.example-client.com/restricted
2158
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2159
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2160
+ Processing by ExampleController#restricted as HTML
2161
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2162
+ Rendering text template
2163
+ Rendered text template (0.0ms)
2164
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2165
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:05:17 +0000
2166
+ Processing by ExampleController#restricted as HTML
2167
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2168
+ Rendering text template
2169
+ Rendered text template (0.0ms)
2170
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2171
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2172
+ Processing by ExampleController#restricted as HTML
2173
+ Authenticating with gds_sso strategy
2174
+ Completed in 0ms (ActiveRecord: 0.0ms)
2175
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2176
+ Started GET "/auth/gds/callback?code=1a4f389bfdc8feca88cc35d25a4a70f60a6a47200555b63fcebbc8d0944de856&state=875e8071d7e77065fc9ceb811f1a8e146fcd0342a42cc4f3" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2177
+ Processing by AuthenticationsController#callback as HTML
2178
+ Parameters: {"code"=>"1a4f389bfdc8feca88cc35d25a4a70f60a6a47200555b63fcebbc8d0944de856", "state"=>"875e8071d7e77065fc9ceb811f1a8e146fcd0342a42cc4f3"}
2179
+ Authenticating with gds_sso strategy
2180
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2181
+  (0.1ms) begin transaction
2182
+  (0.1ms) commit transaction
2183
+ Redirected to http://www.example-client.com/restricted
2184
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2185
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2186
+ Processing by ExampleController#restricted as HTML
2187
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2188
+ Rendering text template
2189
+ Rendered text template (0.0ms)
2190
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2191
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2192
+ Processing by ExampleController#restricted as HTML
2193
+ Authenticating with gds_sso strategy
2194
+ Completed in 0ms (ActiveRecord: 0.0ms)
2195
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2196
+ Started GET "/auth/gds/callback?code=6ea088b23d69d2e9d374ccc4aef9bc6c33e50cd02a62177b26346533b48cd335&state=3fc0e0e7ade26fb71aba89bad4a850e0e987df88b4e5dacd" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2197
+ Processing by AuthenticationsController#callback as HTML
2198
+ Parameters: {"code"=>"6ea088b23d69d2e9d374ccc4aef9bc6c33e50cd02a62177b26346533b48cd335", "state"=>"3fc0e0e7ade26fb71aba89bad4a850e0e987df88b4e5dacd"}
2199
+ Authenticating with gds_sso strategy
2200
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2201
+  (0.1ms) begin transaction
2202
+  (0.1ms) commit transaction
2203
+ Redirected to http://www.example-client.com/restricted
2204
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
2205
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2206
+ Processing by ExampleController#restricted as HTML
2207
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2208
+ Rendering text template
2209
+ Rendered text template (0.0ms)
2210
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2211
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2212
+ Processing by ExampleController#restricted as HTML
2213
+ Authenticating with gds_sso strategy
2214
+ Completed in 0ms (ActiveRecord: 0.0ms)
2215
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2216
+ Started GET "/auth/gds/callback?code=98f194c39b7853e8c18b522af5b17f809f06e3a344ef370cecb8249bbc5f552a&state=cc17962d6edf7f3b6d5479bcfa836c9806fbb0787b43c545" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2217
+ Processing by AuthenticationsController#callback as HTML
2218
+ Parameters: {"code"=>"98f194c39b7853e8c18b522af5b17f809f06e3a344ef370cecb8249bbc5f552a", "state"=>"cc17962d6edf7f3b6d5479bcfa836c9806fbb0787b43c545"}
2219
+ Authenticating with gds_sso strategy
2220
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
2221
+  (0.1ms) begin transaction
2222
+  (0.0ms) commit transaction
2223
+ Redirected to http://www.example-client.com/restricted
2224
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2225
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-15 16:10:17 +0000
2226
+ Processing by ExampleController#restricted as HTML
2227
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."remotely_signed_out" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["remotely_signed_out", "f"], ["LIMIT", 1]]
2228
+ Rendering text template
2229
+ Rendered text template (0.0ms)
2230
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2231
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-16 12:15:17 +0000
2232
+ Processing by ExampleController#restricted as HTML
2233
+ Authenticating with gds_sso strategy
2234
+ Completed in 1ms (ActiveRecord: 0.0ms)
2235
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-16 12:15:17 +0000