gds-sso 13.2.0 → 13.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f4c161463202bb5caf2111be0f9bc790949aa9c
4
- data.tar.gz: 277d9b63b33fe337b234a898b1bfb169498bdc85
3
+ metadata.gz: 5da35aaab11a9683c68e38b305cce7d7be84814f
4
+ data.tar.gz: 25e84eec7c5c18e630befd17931b818b2987fab5
5
5
  SHA512:
6
- metadata.gz: e42272e73d5174d05e51f846f0f53335daf1559ba570ff5ef60c65bbc4b51c29d881cf24a91fdf773633dfcf008567d321400d68d598fffa0f6103386e8e756b
7
- data.tar.gz: b7ee2256c17aba4a9a42861996749f86d2c5d8297985c070caf42097d05db5530ed539492a2d543f68fdabbce107ec99cbb8e5c679af63032db66e9b28a2f37f
6
+ metadata.gz: 3de7a1fe79a2623c32b3932de0a995a1bb63bf98e028a35903db1f6c25c126cfb80a214fcd35f47677b887584201e92d5358fdf915767a85fd16afc865ad3eda
7
+ data.tar.gz: a7082ec4386e31557d379a729191d5d5a88c7d86713efd39a7ae9c92f75cc8096bbd6b2c3a32b22a090090dfd324a0bfd4205af4c533e507d47057c68e5ced5e
data/README.md CHANGED
@@ -1,14 +1,12 @@
1
1
  # GDS-SSO
2
2
 
3
- This gem provides everything needed to integrate an application with [Signon]
4
- (https://github.com/alphagov/signonotron2). It's a wrapper around [OmniAuth](https://github.com/intridea/omniauth) that adds a 'strategy' for oAuth2 integration against Signon,
3
+ This gem provides everything needed to integrate an application with [Signon](https://github.com/alphagov/signon). It's a wrapper around [OmniAuth](https://github.com/intridea/omniauth) that adds a 'strategy' for oAuth2 integration against Signon,
5
4
  and the necessary controller to support that request flow.
6
5
 
7
6
  Some of the applications that use this gem:
8
7
 
9
8
  - [content-tagger](https://github.com/alphagov/content-tagger)
10
9
  - [publishing-api](https://github.com/alphagov/publishing-api)
11
- - [panopticon](https://github.com/alphagov/panopticon)
12
10
  - [publisher](https://github.com/alphagov/publisher)
13
11
  - [search-admin](https://github.com/alphagov/search-admin)
14
12
 
@@ -70,17 +68,7 @@ serialize :permissions, Array
70
68
 
71
69
  [GDS::SSO::ControllerMethods](/lib/gds-sso/controller_methods.rb) provides some useful methods for your application controllers.
72
70
 
73
- To ensure only users who have been granted access to the application can access it use `require_signin_permission!`.
74
-
75
- ```ruby
76
- class ApplicationController < ActionController::Base
77
- include GDS::SSO::ControllerMethods
78
- before_action :require_signin_permission!
79
- # ...
80
- end
81
- ```
82
-
83
- If you want to allow access to everyone with an active Signon account, use `authenticate_user!`.
71
+ To make sure that only people with a signon account and permission to use your app are allowed in use `authenticate_user!`.
84
72
 
85
73
  ```ruby
86
74
  class ApplicationController < ActionController::Base
@@ -114,6 +102,8 @@ authorise_user!(any_of: %w(edit create))
114
102
  authorise_user!(all_of: %w(edit create))
115
103
  ```
116
104
 
105
+ The signon application makes sure that only users who have been granted access to the application can access it (e.g. they have the `signin` permission for your app). This used to be left up to the applications themselves to check with the `require_signin_permission!` method. This is now deprecated and can be removed from your controllers. You should replace it with a call to `authenticate_user!` if you aren't already using that method, otherwise no signon authentication will be performed.
106
+
117
107
  ### Authorisation for API Users
118
108
 
119
109
  In addition to the single-sign-on strategy, this gem also allows authorisation
@@ -37,6 +37,7 @@ module GDS
37
37
  end
38
38
 
39
39
  def require_signin_permission!
40
+ ActiveSupport::Deprecation.warn("require_signin_permission! is deprecated and will be removed in a future version. The signon application checks for signin permission during oauth and it is no longer optional.", caller)
40
41
  authorise_user!('signin')
41
42
  rescue PermissionDeniedException
42
43
  render "authorisations/cant_signin", layout: "unauthorised", status: :forbidden
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "13.2.0"
3
+ VERSION = "13.2.1"
4
4
  end
5
5
  end
@@ -1,1470 +1,1470 @@
1
-  (24.5ms) 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
-  (15.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1
+  (7.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
+  (7.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
3
   (0.1ms) select sqlite_version(*)
4
-  (44.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
-  (0.1ms) begin transaction
6
- SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36712"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
7
-  (25.7ms) commit transaction
8
-  (0.1ms) begin transaction
9
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36205"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
10
-  (13.2ms) commit transaction
11
- Processing by Api::UserController#reauth as HTML
12
- Parameters: {"uid"=>"nonexistent-user"}
13
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
14
- Completed 200 OK in 6ms (ActiveRecord: 0.2ms)
15
-  (0.1ms) begin transaction
16
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35653"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
17
-  (35.2ms) commit transaction
18
-  (0.1ms) begin transaction
19
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39384"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
20
-  (18.1ms) commit transaction
21
- Processing by Api::UserController#reauth as HTML
22
- Parameters: {"uid"=>"a1s2d35653"}
23
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d35653"]]
24
-  (0.1ms) begin transaction
25
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 3]]
26
-  (16.7ms) commit transaction
27
- Completed 200 OK in 21ms (ActiveRecord: 17.1ms)
28
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
29
-  (0.1ms) begin transaction
30
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39946"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
31
-  (9.6ms) commit transaction
32
-  (0.1ms) begin transaction
33
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34132"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
34
-  (13.1ms) commit transaction
35
- Processing by Api::UserController#reauth as HTML
36
- Parameters: {"uid"=>"a1s2d39946"}
37
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
38
- Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
39
-  (0.1ms) begin transaction
40
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39843"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
41
-  (18.1ms) commit transaction
42
-  (0.1ms) begin transaction
43
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34615"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
44
-  (15.5ms) commit transaction
45
- Processing by Api::UserController#update as HTML
46
- Parameters: {"uid"=>"a1s2d39843"}
47
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39843"]]
48
-  (0.1ms) begin transaction
49
- 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", 7]]
50
-  (18.3ms) commit transaction
51
- Completed 200 OK in 23ms (ActiveRecord: 18.7ms)
52
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
53
-  (0.1ms) begin transaction
54
- SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3479"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
55
-  (10.7ms) commit transaction
56
-  (0.1ms) begin transaction
57
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36505"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
58
-  (9.8ms) commit transaction
59
- Processing by Api::UserController#update as HTML
60
- Parameters: {"uid"=>"a1s2d3479"}
61
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
62
- Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
63
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
64
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
65
-  (0.1ms) begin transaction
66
- 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]]
67
-  (13.5ms) commit transaction
68
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
69
-  (0.1ms) begin transaction
70
-  (0.1ms) commit transaction
71
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
72
- Processing by ExampleController#restricted as JSON
73
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
74
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
75
-  (0.1ms) begin transaction
76
- 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]]
77
-  (52.1ms) commit transaction
78
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
79
-  (0.1ms) begin transaction
80
-  (0.1ms) commit transaction
81
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
82
-  (0.1ms) begin transaction
83
-  (0.1ms) commit transaction
84
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
85
-  (0.1ms) begin transaction
86
-  (0.1ms) commit transaction
87
-  (0.1ms) begin transaction
88
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
89
-  (9.7ms) commit transaction
90
- Rendered text template (0.0ms)
91
- Completed 200 OK in 386ms (Views: 1.4ms | ActiveRecord: 63.5ms)
92
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
93
- Processing by ExampleController#restricted as JSON
94
- Completed in 17ms (ActiveRecord: 0.0ms)
95
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
96
- Processing by ExampleController#restricted as JSON
97
- Completed in 29ms (ActiveRecord: 0.0ms)
98
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
99
- Processing by ExampleController#this_requires_signin_permission as JSON
100
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
101
-  (0.1ms) begin transaction
102
-  (0.1ms) commit transaction
103
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
104
-  (0.1ms) begin transaction
105
-  (0.1ms) commit transaction
106
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
107
-  (0.1ms) begin transaction
108
-  (0.1ms) commit transaction
109
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
110
-  (0.1ms) begin transaction
111
-  (0.1ms) commit transaction
112
-  (0.1ms) begin transaction
113
-  (0.1ms) commit transaction
114
- Rendered text template (0.0ms)
115
- Completed 200 OK in 73ms (Views: 0.3ms | ActiveRecord: 1.0ms)
116
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
4
+  (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:53:58 +0000
117
6
  Processing by ExampleController#this_requires_signin_permission as HTML
118
7
  Authenticating with gds_sso strategy
119
- Completed in 0ms (ActiveRecord: 0.0ms)
120
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:26 +0000
121
- Started GET "/auth/gds/callback?code=de1b1f9a5f817b4c5056335f3605ea461d9af17cc482b46464b7c6c5c2dadf7d&state=3b9f926e0d91f1510f4eb1ae914e097c934e99c0f7e00835" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
8
+ Completed in 7ms (ActiveRecord: 0.0ms)
9
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:53:58 +0000
10
+ Started GET "/auth/gds/callback?code=721756f3f38c8e7498458de57756d5325b49b0cce80193d6d826e77584ac26d7&state=264150b26af237a707ad2deaf3e795ace5f3fd22bf790aac" for 127.0.0.1 at 2017-12-06 08:54:09 +0000
122
11
  Processing by AuthenticationsController#callback as HTML
123
- Parameters: {"code"=>"de1b1f9a5f817b4c5056335f3605ea461d9af17cc482b46464b7c6c5c2dadf7d", "state"=>"3b9f926e0d91f1510f4eb1ae914e097c934e99c0f7e00835"}
12
+ Parameters: {"code"=>"721756f3f38c8e7498458de57756d5325b49b0cce80193d6d826e77584ac26d7", "state"=>"264150b26af237a707ad2deaf3e795ace5f3fd22bf790aac"}
124
13
  Authenticating with gds_sso strategy
125
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
126
-  (0.1ms) begin transaction
127
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
128
-  (81.7ms) commit transaction
14
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
15
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
129
16
   (0.1ms) begin transaction
130
-  (0.1ms) commit transaction
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
+  (8.7ms) commit transaction
19
+  (0.1ms) begin transaction
20
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
21
+  (4.1ms) commit transaction
131
22
  Redirected to http://www.example-client.com/this_requires_signin_permission
132
- Completed 302 Found in 88ms (ActiveRecord: 82.3ms)
133
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
23
+ Completed 302 Found in 35ms (ActiveRecord: 14.0ms)
24
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
134
25
  Processing by ExampleController#this_requires_signin_permission as HTML
135
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"]]
136
27
  Rendered text template (0.0ms)
137
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
138
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
28
+ Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.2ms)
29
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
139
30
  Processing by ExampleController#this_requires_signin_permission as HTML
140
31
  Authenticating with gds_sso strategy
141
32
  Completed in 0ms (ActiveRecord: 0.0ms)
142
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
143
- Started GET "/auth/gds/callback?code=81a39364e7be9158e0087c8d911cd1bf803a2ec649d26ad2c3cf6e87e1d0c65f&state=8006dd92f3a1ce45dfda380f87af525550a0c04630cc18ac" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
33
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
34
+ Started GET "/auth/gds/callback?code=4a10bb215984b2245f5df8a06c762731df35b803f5ff632f948e32a9f7594803&state=49b42c5b01c7b7e1743b05d10989ac472a3b86deeadc99ed" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
144
35
  Processing by AuthenticationsController#callback as HTML
145
- Parameters: {"code"=>"81a39364e7be9158e0087c8d911cd1bf803a2ec649d26ad2c3cf6e87e1d0c65f", "state"=>"8006dd92f3a1ce45dfda380f87af525550a0c04630cc18ac"}
36
+ Parameters: {"code"=>"4a10bb215984b2245f5df8a06c762731df35b803f5ff632f948e32a9f7594803", "state"=>"49b42c5b01c7b7e1743b05d10989ac472a3b86deeadc99ed"}
146
37
  Authenticating with gds_sso strategy
147
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
148
-  (0.1ms) begin transaction
149
-  (0.1ms) commit transaction
38
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
150
39
   (0.1ms) begin transaction
151
40
   (0.1ms) commit transaction
41
+  (0.0ms) begin transaction
42
+  (0.0ms) commit transaction
152
43
  Redirected to http://www.example-client.com/this_requires_signin_permission
153
- Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
154
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
44
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
45
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
155
46
  Processing by ExampleController#this_requires_signin_permission as HTML
156
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"]]
157
48
  Rendered text template (0.0ms)
158
49
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
159
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
50
+ Started GET "/" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
51
+ Processing by ExampleController#index as HTML
52
+ Rendered text template (0.0ms)
53
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
54
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
160
55
  Processing by ExampleController#restricted as HTML
161
56
  Authenticating with gds_sso strategy
162
57
  Completed in 0ms (ActiveRecord: 0.0ms)
163
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:38 +0000
164
- Started GET "/auth/gds/callback?code=62941e74cdcee54d19756dc8d4878b1842ae56c3f476128a16a4786bbdf6af50&state=1cad8d6d414084b60e21cb12cd8e1cabaddf906cf35b73a5" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
58
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
59
+ Started GET "/auth/gds/callback?code=d8b2265fd7d9d8b4ba176829b0db0fae83abc55798718a04e2553050880b8c1f&state=510a4f2b61f3fd88e18f2349820200a2ab0e6be059e34615" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
165
60
  Processing by AuthenticationsController#callback as HTML
166
- Parameters: {"code"=>"62941e74cdcee54d19756dc8d4878b1842ae56c3f476128a16a4786bbdf6af50", "state"=>"1cad8d6d414084b60e21cb12cd8e1cabaddf906cf35b73a5"}
61
+ Parameters: {"code"=>"d8b2265fd7d9d8b4ba176829b0db0fae83abc55798718a04e2553050880b8c1f", "state"=>"510a4f2b61f3fd88e18f2349820200a2ab0e6be059e34615"}
167
62
  Authenticating with gds_sso strategy
168
63
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
169
64
   (0.1ms) begin transaction
170
65
   (0.1ms) commit transaction
171
66
   (0.0ms) begin transaction
172
-  (0.1ms) commit transaction
67
+  (0.0ms) commit transaction
173
68
  Redirected to http://www.example-client.com/restricted
174
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
175
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
69
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
70
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
176
71
  Processing by ExampleController#restricted as HTML
177
72
  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"]]
178
73
  Rendered text template (0.0ms)
179
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
180
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
74
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
75
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
181
76
  Processing by ExampleController#restricted as HTML
182
77
  Authenticating with gds_sso strategy
183
78
  Completed in 0ms (ActiveRecord: 0.0ms)
184
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
185
- Started GET "/auth/gds/callback?code=135beefaeab8cbb75e0c23bfe939009fe38e4ca915fdaf79a52a7b4cd07ac7e9&state=d4aab73e45047f92804335bae78a926312ef65d6ce7d9fd0" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
79
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
80
+ Started GET "/auth/gds/callback?code=31358df0314fd6abe4c11b375f8dc8176ee048c609ad9ea8e39e781a2a5b1e53&state=f35d5e8dd98e9964e47537a221009ca613701504a098b7fa" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
186
81
  Processing by AuthenticationsController#callback as HTML
187
- Parameters: {"code"=>"135beefaeab8cbb75e0c23bfe939009fe38e4ca915fdaf79a52a7b4cd07ac7e9", "state"=>"d4aab73e45047f92804335bae78a926312ef65d6ce7d9fd0"}
82
+ Parameters: {"code"=>"31358df0314fd6abe4c11b375f8dc8176ee048c609ad9ea8e39e781a2a5b1e53", "state"=>"f35d5e8dd98e9964e47537a221009ca613701504a098b7fa"}
188
83
  Authenticating with gds_sso strategy
189
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
190
-  (0.1ms) begin transaction
191
-  (0.1ms) commit transaction
84
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
192
85
   (0.1ms) begin transaction
86
+  (0.0ms) commit transaction
87
+  (0.0ms) begin transaction
193
88
   (0.1ms) commit transaction
194
89
  Redirected to http://www.example-client.com/restricted
195
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
196
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
90
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
91
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
197
92
  Processing by ExampleController#restricted as HTML
198
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"]]
199
94
  Rendered text template (0.0ms)
200
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
201
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +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-06 08:54:10 +0000
202
97
  Processing by ExampleController#restricted as HTML
203
98
  Authenticating with gds_sso strategy
204
99
  Completed in 0ms (ActiveRecord: 0.0ms)
205
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
206
- Started GET "/auth/gds/callback?code=4755abe3e81e73b9d8aeb594407867d2d86d6b9c42f88e1152959404f6a376ec&state=5484c7035dcf78a67094e81301c4342219bfe24f5e1ba124" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
100
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
101
+ Started GET "/auth/gds/callback?code=550067b00ffb9e1a6b9d911f284d3bdef88d77af4e251583ac77f7e8055df18f&state=ee40f08334263ea65f340a8212b664beb085756fe07fc1ca" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
207
102
  Processing by AuthenticationsController#callback as HTML
208
- Parameters: {"code"=>"4755abe3e81e73b9d8aeb594407867d2d86d6b9c42f88e1152959404f6a376ec", "state"=>"5484c7035dcf78a67094e81301c4342219bfe24f5e1ba124"}
103
+ Parameters: {"code"=>"550067b00ffb9e1a6b9d911f284d3bdef88d77af4e251583ac77f7e8055df18f", "state"=>"ee40f08334263ea65f340a8212b664beb085756fe07fc1ca"}
209
104
  Authenticating with gds_sso strategy
210
105
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
211
106
   (0.1ms) begin transaction
212
-  (0.1ms) commit transaction
107
+  (0.0ms) commit transaction
213
108
   (0.0ms) begin transaction
214
-  (0.1ms) commit transaction
109
+  (0.0ms) commit transaction
215
110
  Redirected to http://www.example-client.com/restricted
216
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
217
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
111
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
112
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
218
113
  Processing by ExampleController#restricted as HTML
219
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"]]
220
115
  Rendered text template (0.0ms)
221
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
222
- Started GET "/" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
223
- Processing by ExampleController#index as HTML
224
- Rendered text template (0.0ms)
225
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
226
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
116
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
117
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
227
118
  Processing by ExampleController#restricted as HTML
228
119
  Authenticating with gds_sso strategy
229
120
  Completed in 0ms (ActiveRecord: 0.0ms)
230
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
231
- Started GET "/auth/gds/callback?code=de9732b79db33c8d7a6bdd545f54ae922c0676b29118451c314ec444767e3ff2&state=21c7e39676db8e33228d0d8b9ed5592365cd7d72446c9a7f" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
121
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:10 +0000
122
+ Started GET "/auth/gds/callback?code=51cdc6a0ee6ed2f89835ab06e2b9f850183c82530df664ec7a7b8b85387c9911&state=684974f779b894f3b27636cc0b3179513163efcd7a7b7ad6" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
232
123
  Processing by AuthenticationsController#callback as HTML
233
- Parameters: {"code"=>"de9732b79db33c8d7a6bdd545f54ae922c0676b29118451c314ec444767e3ff2", "state"=>"21c7e39676db8e33228d0d8b9ed5592365cd7d72446c9a7f"}
124
+ Parameters: {"code"=>"51cdc6a0ee6ed2f89835ab06e2b9f850183c82530df664ec7a7b8b85387c9911", "state"=>"684974f779b894f3b27636cc0b3179513163efcd7a7b7ad6"}
234
125
  Authenticating with gds_sso strategy
235
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
236
-  (0.1ms) begin transaction
237
-  (0.1ms) commit transaction
126
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
238
127
   (0.1ms) begin transaction
239
-  (0.1ms) commit transaction
128
+  (0.0ms) commit transaction
129
+  (0.0ms) begin transaction
130
+  (0.0ms) commit transaction
240
131
  Redirected to http://www.example-client.com/restricted
241
- Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
242
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:39 +0000
132
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
133
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
243
134
  Processing by ExampleController#restricted as HTML
244
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"]]
245
136
  Rendered text template (0.0ms)
246
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
247
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:39 +0000
248
- Processing by ExampleController#restricted as HTML
249
- Authenticating with gds_sso strategy
250
- Completed in 1ms (ActiveRecord: 0.0ms)
251
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:18:39 +0000
252
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
137
+ Completed 200 OK in 1ms (Views: 0.2ms | 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
+  (6.9ms) commit transaction
142
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
253
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"]]
254
145
  Authenticating with gds_sso strategy
255
- Completed in 0ms (ActiveRecord: 0.0ms)
256
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
257
- Started GET "/auth/gds/callback?code=b0c0798cd4048315f2195c7f6c46ce9f1484e5e3dca69e63888d363df233d593&state=3d3a16c647c1d6c5263992925b92da57c3c361827d012892" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
146
+ Completed in 1ms (ActiveRecord: 0.1ms)
147
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
148
+ Started GET "/auth/gds/callback?code=888d942c910e74448a72f7d3a9e2ae037e3dfe95766c351efcee909b566b257d&state=6e0395c6ae28179f9e0929a84edab7e5af3200f37b0a81c6" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
258
149
  Processing by AuthenticationsController#callback as HTML
259
- Parameters: {"code"=>"b0c0798cd4048315f2195c7f6c46ce9f1484e5e3dca69e63888d363df233d593", "state"=>"3d3a16c647c1d6c5263992925b92da57c3c361827d012892"}
150
+ Parameters: {"code"=>"888d942c910e74448a72f7d3a9e2ae037e3dfe95766c351efcee909b566b257d", "state"=>"6e0395c6ae28179f9e0929a84edab7e5af3200f37b0a81c6"}
260
151
  Authenticating with gds_sso strategy
261
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
262
-  (0.2ms) begin transaction
263
-  (0.1ms) commit transaction
264
-  (0.1ms) begin transaction
265
-  (0.1ms) commit transaction
152
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
153
+  (0.1ms) begin transaction
154
+  (0.1ms) commit transaction
155
+  (0.1ms) begin transaction
156
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]
157
+  (5.8ms) commit transaction
266
158
  Redirected to http://www.example-client.com/restricted
267
- Completed 302 Found in 39ms (ActiveRecord: 0.6ms)
268
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
159
+ Completed 302 Found in 12ms (ActiveRecord: 6.4ms)
160
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
269
161
  Processing by ExampleController#restricted as HTML
270
- 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"]]
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"]]
271
163
  Rendered text template (0.0ms)
272
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
273
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:08:40 +0000
274
- Processing by ExampleController#restricted as HTML
275
- 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"]]
276
- Rendered text template (0.0ms)
277
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
278
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
164
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
165
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
279
166
  Processing by ExampleController#restricted as HTML
280
167
  Authenticating with gds_sso strategy
281
168
  Completed in 0ms (ActiveRecord: 0.0ms)
282
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
283
- Started GET "/auth/gds/callback?code=21d581ed8bbb4d27a73cc823b03adeb098300af5f279362c46c72daa26fe2956&state=0aca4107c24efac67ba0dca7998edb05c6ec90a4b6cb65d5" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
169
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
170
+ Started GET "/auth/gds/callback?code=2c54b8a7af9d95aea6a6551f7e95b3424a6d3ec30dfe74322ccc910943c2fcd2&state=90d77d7d99a79ef46b4d2cb36d44990abe571cf277492c1f" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
284
171
  Processing by AuthenticationsController#callback as HTML
285
- Parameters: {"code"=>"21d581ed8bbb4d27a73cc823b03adeb098300af5f279362c46c72daa26fe2956", "state"=>"0aca4107c24efac67ba0dca7998edb05c6ec90a4b6cb65d5"}
172
+ Parameters: {"code"=>"2c54b8a7af9d95aea6a6551f7e95b3424a6d3ec30dfe74322ccc910943c2fcd2", "state"=>"90d77d7d99a79ef46b4d2cb36d44990abe571cf277492c1f"}
286
173
  Authenticating with gds_sso strategy
287
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
288
-  (0.1ms) begin transaction
289
-  (0.1ms) commit transaction
290
-  (0.1ms) begin transaction
291
-  (0.1ms) commit transaction
174
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
175
+  (0.1ms) begin transaction
176
+  (0.0ms) commit transaction
177
+  (0.0ms) begin transaction
178
+  (0.0ms) commit transaction
292
179
  Redirected to http://www.example-client.com/restricted
293
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
294
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
180
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
181
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
295
182
  Processing by ExampleController#restricted as HTML
296
- 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"]]
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"]]
297
184
  Rendered text template (0.0ms)
298
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
299
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:40 +0000
185
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
186
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:11 +0000
300
187
  Processing by ExampleController#restricted as HTML
301
188
  Authenticating with gds_sso strategy
302
189
  Completed in 1ms (ActiveRecord: 0.0ms)
303
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:18:40 +0000
304
- Started GET "/auth/gds/callback?code=cb65563af847e5f0ee8f1f31521243ba6a7be4dd39af40faf65963f2eab5cfe3&state=8cb244238e8c33ecaec6d1dfc96948214da200a484a9042c" for 127.0.0.1 at 2016-12-21 08:18:40 +0000
190
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-07 04:59:11 +0000
191
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
192
+ Processing by ExampleController#restricted as HTML
193
+ Authenticating with gds_sso strategy
194
+ Completed in 0ms (ActiveRecord: 0.0ms)
195
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:11 +0000
196
+ Started GET "/auth/gds/callback?code=9521ee92403df39f9dd55ba3ef113eb5b604634d30a8dba2c04d2fbd673b03a7&state=7ab0d897f04eb98819888768b29808dc5b067fc4ad534d3e" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
305
197
  Processing by AuthenticationsController#callback as HTML
306
- Parameters: {"code"=>"cb65563af847e5f0ee8f1f31521243ba6a7be4dd39af40faf65963f2eab5cfe3", "state"=>"8cb244238e8c33ecaec6d1dfc96948214da200a484a9042c"}
198
+ Parameters: {"code"=>"9521ee92403df39f9dd55ba3ef113eb5b604634d30a8dba2c04d2fbd673b03a7", "state"=>"7ab0d897f04eb98819888768b29808dc5b067fc4ad534d3e"}
307
199
  Authenticating with gds_sso strategy
308
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
309
-  (0.1ms) begin transaction
310
-  (0.1ms) commit transaction
311
-  (0.1ms) begin transaction
312
-  (0.1ms) commit transaction
200
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
201
+  (0.1ms) begin transaction
202
+  (0.1ms) commit transaction
203
+  (0.1ms) begin transaction
204
+  (0.1ms) commit transaction
313
205
  Redirected to http://www.example-client.com/restricted
314
- Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
315
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:40 +0000
206
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
207
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
316
208
  Processing by ExampleController#restricted as HTML
317
- 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
+ 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"]]
318
210
  Rendered text template (0.0ms)
319
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
320
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
211
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
212
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:12 +0000
321
213
  Processing by ExampleController#restricted as HTML
322
214
  Authenticating with gds_sso strategy
323
215
  Completed in 0ms (ActiveRecord: 0.0ms)
324
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
325
- Started GET "/auth/gds/callback?code=a3cfeb5bc3f0559f6c71b07255dbbcaaf14106a2bfdd84f3ef6da71999a12751&state=cdaa23b210d09c4b22389cde774e4cf95f5b42113f5ef06c" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
216
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-07 04:59:12 +0000
217
+ Started GET "/auth/gds/callback?code=3b749a0b2bced98683dc2cfbe553085d4bd4c4f840883dba3dde80f414543009&state=08cb36caed6426f7238b42ecb773e7a246df92ba51e839d1" for 127.0.0.1 at 2017-12-07 04:59:12 +0000
326
218
  Processing by AuthenticationsController#callback as HTML
327
- Parameters: {"code"=>"a3cfeb5bc3f0559f6c71b07255dbbcaaf14106a2bfdd84f3ef6da71999a12751", "state"=>"cdaa23b210d09c4b22389cde774e4cf95f5b42113f5ef06c"}
219
+ Parameters: {"code"=>"3b749a0b2bced98683dc2cfbe553085d4bd4c4f840883dba3dde80f414543009", "state"=>"08cb36caed6426f7238b42ecb773e7a246df92ba51e839d1"}
328
220
  Authenticating with gds_sso strategy
329
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
330
-  (0.1ms) begin transaction
331
-  (0.1ms) commit transaction
332
-  (0.0ms) begin transaction
333
-  (0.1ms) commit transaction
221
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
222
+  (0.1ms) begin transaction
223
+  (0.1ms) commit transaction
224
+  (0.1ms) begin transaction
225
+  (0.1ms) commit transaction
334
226
  Redirected to http://www.example-client.com/restricted
335
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
336
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
227
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
228
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:12 +0000
337
229
  Processing by ExampleController#restricted as HTML
338
- 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
+ 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"]]
339
231
  Rendered text template (0.0ms)
340
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
341
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
342
-  (0.1ms) begin transaction
343
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
344
-  (35.6ms) commit transaction
345
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
232
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
233
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
346
234
  Processing by ExampleController#restricted as HTML
347
- 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"]]
348
235
  Authenticating with gds_sso strategy
349
- Completed in 1ms (ActiveRecord: 0.1ms)
350
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:40 +0000
351
- Started GET "/auth/gds/callback?code=2f79647f0aad9bb1826d098bffa2c472a3ff75927c4c08965f33a23a26e440e7&state=3751200c9e5faef8aed92355841f12ffa40faf3f2a3fb047" for 127.0.0.1 at 2016-12-20 12:13:41 +0000
236
+ Completed in 0ms (ActiveRecord: 0.0ms)
237
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
238
+ Started GET "/auth/gds/callback?code=68054e9b6541d2e63aade0882bd0f348520a16771ee543a1f95085d271680717&state=75fd2036bf87bbef39fa6de085a0d407624fb5ab67a9ab2d" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
352
239
  Processing by AuthenticationsController#callback as HTML
353
- Parameters: {"code"=>"2f79647f0aad9bb1826d098bffa2c472a3ff75927c4c08965f33a23a26e440e7", "state"=>"3751200c9e5faef8aed92355841f12ffa40faf3f2a3fb047"}
240
+ Parameters: {"code"=>"68054e9b6541d2e63aade0882bd0f348520a16771ee543a1f95085d271680717", "state"=>"75fd2036bf87bbef39fa6de085a0d407624fb5ab67a9ab2d"}
354
241
  Authenticating with gds_sso strategy
355
242
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
356
243
   (0.1ms) begin transaction
244
+  (0.0ms) commit transaction
245
+  (0.0ms) begin transaction
357
246
   (0.1ms) commit transaction
358
-  (0.1ms) begin transaction
359
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
360
-  (9.6ms) commit transaction
361
247
  Redirected to http://www.example-client.com/restricted
362
- Completed 302 Found in 15ms (ActiveRecord: 10.0ms)
363
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:41 +0000
248
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
249
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
250
+ Processing by ExampleController#restricted as HTML
251
+ 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"]]
252
+ Rendered text template (0.0ms)
253
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
254
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:49:12 +0000
364
255
  Processing by ExampleController#restricted as HTML
365
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"]]
366
257
  Rendered text template (0.0ms)
367
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
368
-  (50.1ms) 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
-  (28.4ms) 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", 2016-12-20 12:13:53 UTC], ["updated_at", 2016-12-20 12:13:53 UTC]]
373
-  (33.5ms) commit transaction
374
-  (13.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
258
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
259
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
260
+ Processing by ExampleController#restricted as JSON
261
+ Completed in 24ms (ActiveRecord: 0.0ms)
262
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
263
+ Processing by ExampleController#restricted as JSON
264
+ Completed in 12ms (ActiveRecord: 0.0ms)
265
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
266
+ Processing by ExampleController#restricted as JSON
267
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
268
+  (0.1ms) begin transaction
269
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
270
+  (8.2ms) commit transaction
271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
272
+  (0.1ms) begin transaction
273
+  (0.0ms) commit transaction
274
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
275
+  (0.0ms) begin transaction
276
+  (0.0ms) commit transaction
277
+ CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
278
+  (0.0ms) begin transaction
279
+  (0.0ms) commit transaction
280
+  (0.0ms) begin transaction
281
+  (0.0ms) commit transaction
282
+ Rendered text template (0.0ms)
283
+ Completed 200 OK in 71ms (Views: 0.3ms | ActiveRecord: 9.2ms)
284
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:12 +0000
285
+ Processing by ExampleController#this_requires_signin_permission as JSON
286
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
287
+  (0.1ms) begin transaction
288
+  (0.0ms) commit transaction
289
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
290
+  (0.1ms) begin transaction
291
+  (0.1ms) commit transaction
292
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
293
+  (0.1ms) begin transaction
294
+  (0.0ms) commit transaction
295
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
296
+  (0.1ms) begin transaction
297
+  (0.1ms) commit transaction
298
+  (0.0ms) begin transaction
299
+  (0.0ms) commit transaction
300
+ Rendered text template (0.1ms)
301
+ Completed 200 OK in 65ms (Views: 0.3ms | ActiveRecord: 0.7ms)
302
+  (0.1ms) begin transaction
303
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37823"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
304
+  (5.5ms) commit transaction
305
+  (0.1ms) begin transaction
306
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32702"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
307
+  (5.8ms) commit transaction
308
+ Processing by Api::UserController#update as HTML
309
+ Parameters: {"uid"=>"a1s2d37823"}
310
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
311
+ Completed 403 Forbidden in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
312
+  (0.1ms) begin transaction
313
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39554"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
314
+  (5.9ms) commit transaction
315
+  (0.1ms) begin transaction
316
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37713"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
317
+  (4.0ms) commit transaction
318
+ Processing by Api::UserController#update as HTML
319
+ Parameters: {"uid"=>"a1s2d39554"}
320
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39554"]]
321
+  (0.1ms) begin transaction
322
+ 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", 4]]
323
+  (6.3ms) commit transaction
324
+ Completed 200 OK in 10ms (ActiveRecord: 6.6ms)
325
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
326
+  (0.0ms) begin transaction
327
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35037"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
328
+  (4.0ms) commit transaction
329
+  (0.0ms) begin transaction
330
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35549"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
331
+  (5.1ms) commit transaction
332
+ Processing by Api::UserController#reauth as HTML
333
+ Parameters: {"uid"=>"nonexistent-user"}
334
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
335
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
336
+  (0.0ms) begin transaction
337
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33797"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
338
+  (4.1ms) commit transaction
339
+  (0.0ms) begin transaction
340
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31789"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
341
+  (5.0ms) commit transaction
342
+ Processing by Api::UserController#reauth as HTML
343
+ Parameters: {"uid"=>"a1s2d33797"}
344
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d33797"]]
345
+  (0.0ms) begin transaction
346
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 8]]
347
+  (4.7ms) commit transaction
348
+ Completed 200 OK in 7ms (ActiveRecord: 4.9ms)
349
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 8]]
350
+  (0.0ms) begin transaction
351
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34996"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
352
+  (4.8ms) commit transaction
353
+  (0.1ms) begin transaction
354
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38706"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
355
+  (3.8ms) commit transaction
356
+ Processing by Api::UserController#reauth as HTML
357
+ Parameters: {"uid"=>"a1s2d34996"}
358
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
359
+ Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
360
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
361
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
362
+  (0.1ms) begin transaction
363
+ 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]]
364
+  (4.9ms) commit transaction
365
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
366
+  (0.1ms) begin transaction
367
+  (0.0ms) commit transaction
368
+  (5.5ms) 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
+  (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
375
370
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
371
+  (0.0ms) 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-06 08:54:19 UTC], ["updated_at", 2017-12-06 08:54:19 UTC]]
373
+  (3.9ms) commit transaction
374
+  (5.9ms) 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
+  (0.0ms) begin transaction
377
+  (0.1ms) commit transaction
378
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
379
+ Processing by ExampleController#restricted as JSON
380
+ Completed in 36ms (ActiveRecord: 0.0ms)
381
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
382
+ Processing by ExampleController#this_requires_signin_permission as JSON
383
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
384
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
376
385
   (0.1ms) begin transaction
386
+ 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]]
387
+  (4.7ms) commit transaction
388
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
389
+  (0.0ms) begin transaction
390
+  (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]]
392
+  (0.0ms) begin transaction
377
393
   (0.1ms) commit transaction
378
- Started GET "/" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
379
- Processing by ExampleController#index as HTML
394
+ CACHE (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
396
+  (0.0ms) commit transaction
397
+  (0.0ms) begin transaction
398
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
399
+  (4.9ms) commit transaction
380
400
  Rendering text template
381
401
  Rendered text template (0.0ms)
382
- Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
383
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
384
- Processing by ExampleController#restricted as HTML
385
- Authenticating with gds_sso strategy
386
- Completed in 10ms (ActiveRecord: 0.0ms)
387
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
388
- Started GET "/auth/gds/callback?code=b53a54e8b0b3cbdfabdc8a15b70ed0aa08fe90dd93f967f52093010b75deca87&state=75a80f5775406deb80c295cf799b777f47d1fa156a6eddfe" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
389
- Processing by AuthenticationsController#callback as HTML
390
- Parameters: {"code"=>"b53a54e8b0b3cbdfabdc8a15b70ed0aa08fe90dd93f967f52093010b75deca87", "state"=>"75a80f5775406deb80c295cf799b777f47d1fa156a6eddfe"}
391
- Authenticating with gds_sso strategy
402
+ Completed 200 OK in 92ms (Views: 3.2ms | ActiveRecord: 11.5ms)
403
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
404
+ Processing by ExampleController#restricted as JSON
392
405
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
393
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
394
406
   (0.1ms) begin transaction
395
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
396
-  (7.4ms) commit transaction
407
+  (0.0ms) commit transaction
408
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
397
409
   (0.1ms) begin transaction
398
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
399
-  (9.3ms) commit transaction
400
- Redirected to http://www.example-client.com/restricted
401
- Completed 302 Found in 51ms (ActiveRecord: 18.5ms)
402
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
403
- Processing by ExampleController#restricted as HTML
404
- 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]]
410
+  (0.1ms) commit transaction
411
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
412
+  (0.1ms) begin transaction
413
+  (0.1ms) commit transaction
414
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
415
+  (0.1ms) begin transaction
416
+  (0.0ms) commit transaction
405
417
  Rendering text template
406
418
  Rendered text template (0.0ms)
407
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
408
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
419
+ Completed 200 OK in 72ms (Views: 0.3ms | ActiveRecord: 0.7ms)
420
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
421
+ Processing by ExampleController#restricted as JSON
422
+ Completed in 13ms (ActiveRecord: 0.0ms)
423
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
409
424
  Processing by ExampleController#this_requires_signin_permission as HTML
410
425
  Authenticating with gds_sso strategy
411
426
  Completed in 0ms (ActiveRecord: 0.0ms)
412
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:53 +0000
413
- Started GET "/auth/gds/callback?code=2dff3e30ade4d365c8963faf730f164a395b501db877cfcdf7e523a995519d44&state=b73d837ffa9c011e212f1292017d24b7a1a040de5d6f0ac9" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
427
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
428
+ Started GET "/auth/gds/callback?code=26e80b1a0896bdff68ae48a526b7e0c82b7a7b301ce8fc240af2d83595a8b292&state=28743b98fa3b21e30f0debbe7d8e3ff55ad3bdbb88989151" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
414
429
  Processing by AuthenticationsController#callback as HTML
415
- Parameters: {"code"=>"2dff3e30ade4d365c8963faf730f164a395b501db877cfcdf7e523a995519d44", "state"=>"b73d837ffa9c011e212f1292017d24b7a1a040de5d6f0ac9"}
430
+ Parameters: {"code"=>"26e80b1a0896bdff68ae48a526b7e0c82b7a7b301ce8fc240af2d83595a8b292", "state"=>"28743b98fa3b21e30f0debbe7d8e3ff55ad3bdbb88989151"}
416
431
  Authenticating with gds_sso strategy
417
432
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
418
433
   (0.1ms) begin transaction
419
-  (0.1ms) commit transaction
434
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", false], ["id", 1]]
435
+  (4.5ms) commit transaction
420
436
  Redirected to http://www.example-client.com/this_requires_signin_permission
421
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
422
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
437
+ Completed 302 Found in 10ms (ActiveRecord: 5.1ms)
438
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
423
439
  Processing by ExampleController#this_requires_signin_permission as HTML
424
- 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", false], ["LIMIT", 1]]
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]]
425
441
  Rendering text template
426
442
  Rendered text template (0.0ms)
427
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
428
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
443
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
444
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
429
445
  Processing by ExampleController#this_requires_signin_permission as HTML
430
446
  Authenticating with gds_sso strategy
431
447
  Completed in 0ms (ActiveRecord: 0.0ms)
432
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
433
- Started GET "/auth/gds/callback?code=2b1e005823ea196c061b627a79d864db70127925341c1bd635a2f76e1c976455&state=0a0fba517482b78dcc12e46edad4a167ec962019cb53bb72" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
448
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
449
+ Started GET "/auth/gds/callback?code=3a05bd6916381ba7eadeac5908ef718f3a08fa3d64d1294c5d99528652335b53&state=3ea8bbad69f524bfa168334d84063e1a668786b3fc2155d7" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
434
450
  Processing by AuthenticationsController#callback as HTML
435
- Parameters: {"code"=>"2b1e005823ea196c061b627a79d864db70127925341c1bd635a2f76e1c976455", "state"=>"0a0fba517482b78dcc12e46edad4a167ec962019cb53bb72"}
451
+ Parameters: {"code"=>"3a05bd6916381ba7eadeac5908ef718f3a08fa3d64d1294c5d99528652335b53", "state"=>"3ea8bbad69f524bfa168334d84063e1a668786b3fc2155d7"}
436
452
  Authenticating with gds_sso strategy
437
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
438
-  (0.1ms) begin transaction
439
-  (0.1ms) commit transaction
453
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
454
+  (0.0ms) begin transaction
455
+  (0.0ms) commit transaction
440
456
  Redirected to http://www.example-client.com/this_requires_signin_permission
441
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
442
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
457
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
458
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
443
459
  Processing by ExampleController#this_requires_signin_permission as HTML
444
- 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", false], ["LIMIT", 1]]
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 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)
464
+ Started GET "/" for 127.0.0.1 at 2017-12-06 08:54:20 +0000
465
+ Processing by ExampleController#index as HTML
445
466
  Rendering text template
446
467
  Rendered text template (0.0ms)
447
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
448
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
468
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
469
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
449
470
  Processing by ExampleController#restricted as HTML
450
471
  Authenticating with gds_sso strategy
451
- Completed in 1ms (ActiveRecord: 0.0ms)
452
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
453
- Started GET "/auth/gds/callback?code=2fe545bca5ab9ced8a80b07063bf7005b1ba3b2b3fc02c370f1fd0ea366535e1&state=b6cec9870ae3c453c1ce03e01a251bad2134617d3a92b425" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
472
+ Completed in 0ms (ActiveRecord: 0.0ms)
473
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
474
+ Started GET "/auth/gds/callback?code=464df3a0b9b32d5f8be009826c868aa3d125728bbf4668a58918cfdd86198de3&state=677173d0259063e1cc52bf55d016dd6d2644481bcb710c35" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
454
475
  Processing by AuthenticationsController#callback as HTML
455
- Parameters: {"code"=>"2fe545bca5ab9ced8a80b07063bf7005b1ba3b2b3fc02c370f1fd0ea366535e1", "state"=>"b6cec9870ae3c453c1ce03e01a251bad2134617d3a92b425"}
476
+ Parameters: {"code"=>"464df3a0b9b32d5f8be009826c868aa3d125728bbf4668a58918cfdd86198de3", "state"=>"677173d0259063e1cc52bf55d016dd6d2644481bcb710c35"}
456
477
  Authenticating with gds_sso strategy
457
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
458
-  (0.1ms) begin transaction
478
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
479
+  (0.0ms) begin transaction
459
480
   (0.1ms) commit transaction
460
481
  Redirected to http://www.example-client.com/restricted
461
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
462
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
482
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
483
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
463
484
  Processing by ExampleController#restricted as HTML
464
- 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]]
485
+ 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]]
465
486
  Rendering text template
466
487
  Rendered text template (0.0ms)
467
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
468
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
488
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
489
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
469
490
  Processing by ExampleController#restricted as HTML
470
491
  Authenticating with gds_sso strategy
471
492
  Completed in 0ms (ActiveRecord: 0.0ms)
472
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
473
- Started GET "/auth/gds/callback?code=9e72ca947db57c4a38a57cebb7278dc1136149a72edcdce5b9b5da90f9a6b332&state=a1db84704077308e11bc62eb6f4eb9abc0c1101a0d5e534a" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
493
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
494
+ Started GET "/auth/gds/callback?code=612077a1edcd8ef49a88025f95f6b9be247ef89fc0f21803ebdd304a3414fad9&state=2b8f5572cb52756340f55af619e856d82bd8adbc0c08f91a" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
474
495
  Processing by AuthenticationsController#callback as HTML
475
- Parameters: {"code"=>"9e72ca947db57c4a38a57cebb7278dc1136149a72edcdce5b9b5da90f9a6b332", "state"=>"a1db84704077308e11bc62eb6f4eb9abc0c1101a0d5e534a"}
496
+ Parameters: {"code"=>"612077a1edcd8ef49a88025f95f6b9be247ef89fc0f21803ebdd304a3414fad9", "state"=>"2b8f5572cb52756340f55af619e856d82bd8adbc0c08f91a"}
476
497
  Authenticating with gds_sso strategy
477
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
498
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
478
499
   (0.1ms) begin transaction
479
-  (0.1ms) commit transaction
500
+  (0.0ms) commit transaction
480
501
  Redirected to http://www.example-client.com/restricted
481
- Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
482
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
502
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
503
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
483
504
  Processing by ExampleController#restricted as HTML
484
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]]
485
506
  Rendering text template
486
507
  Rendered text template (0.0ms)
487
508
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
488
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
509
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
489
510
  Processing by ExampleController#restricted as HTML
490
511
  Authenticating with gds_sso strategy
491
512
  Completed in 0ms (ActiveRecord: 0.0ms)
492
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:54 +0000
493
- Started GET "/auth/gds/callback?code=f754f3fc8f691d7761bb423ce1a32714eb5033a9ec610293b36b3f960bed6326&state=d53ac52bd80f458329539de3659c9930f94961c168bb7ff3" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
513
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
514
+ Started GET "/auth/gds/callback?code=35e7f99f7665a07e1bf14d51bec0e8556ea7112c7a181f9c2e7099862be53b7e&state=d5037e030d6e27d744a023591cb36a80d3178f2201f0509b" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
494
515
  Processing by AuthenticationsController#callback as HTML
495
- Parameters: {"code"=>"f754f3fc8f691d7761bb423ce1a32714eb5033a9ec610293b36b3f960bed6326", "state"=>"d53ac52bd80f458329539de3659c9930f94961c168bb7ff3"}
516
+ Parameters: {"code"=>"35e7f99f7665a07e1bf14d51bec0e8556ea7112c7a181f9c2e7099862be53b7e", "state"=>"d5037e030d6e27d744a023591cb36a80d3178f2201f0509b"}
496
517
  Authenticating with gds_sso strategy
497
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
518
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
498
519
   (0.1ms) begin transaction
499
-  (0.1ms) commit transaction
520
+  (0.0ms) commit transaction
500
521
  Redirected to http://www.example-client.com/restricted
501
- Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
502
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
522
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
523
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
503
524
  Processing by ExampleController#restricted as HTML
504
- 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", false], ["LIMIT", 1]]
525
+ 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]]
505
526
  Rendering text template
506
527
  Rendered text template (0.0ms)
507
- Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
508
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
509
-  (0.1ms) begin transaction
510
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 1]]
511
-  (10.8ms) commit transaction
512
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
528
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
529
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
513
530
  Processing by ExampleController#restricted as HTML
514
- 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]]
515
531
  Authenticating with gds_sso strategy
516
- Completed in 2ms (ActiveRecord: 0.2ms)
517
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
518
- Started GET "/auth/gds/callback?code=93557adfd1170e5330a63bc9d3ccbcd44bcf850746ad17f1b80b32f7bfc6d61e&state=f958569a1792a0691bc38738bc879814229af5d76b183065" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
532
+ Completed in 0ms (ActiveRecord: 0.0ms)
533
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
534
+ Started GET "/auth/gds/callback?code=9b1c3cceefc1ee6ea0ef9ab2b2de90e83d0477c963147a78caf4c5129ae059f3&state=ca430790792936791822def1a6eb0857a43451ec9e74333e" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
519
535
  Processing by AuthenticationsController#callback as HTML
520
- Parameters: {"code"=>"93557adfd1170e5330a63bc9d3ccbcd44bcf850746ad17f1b80b32f7bfc6d61e", "state"=>"f958569a1792a0691bc38738bc879814229af5d76b183065"}
536
+ Parameters: {"code"=>"9b1c3cceefc1ee6ea0ef9ab2b2de90e83d0477c963147a78caf4c5129ae059f3", "state"=>"ca430790792936791822def1a6eb0857a43451ec9e74333e"}
521
537
  Authenticating with gds_sso strategy
522
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
538
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
523
539
   (0.1ms) begin transaction
524
540
   (0.1ms) commit transaction
525
-  (0.1ms) begin transaction
526
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
527
-  (12.7ms) commit transaction
528
541
  Redirected to http://www.example-client.com/restricted
529
- Completed 302 Found in 20ms (ActiveRecord: 13.6ms)
530
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
542
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
543
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
531
544
  Processing by ExampleController#restricted as HTML
532
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]]
533
546
  Rendering text template
534
547
  Rendered text template (0.0ms)
535
548
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
536
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
549
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:49:21 +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]]
552
+ Rendering text template
553
+ Rendered text template (0.0ms)
554
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
555
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
537
556
  Processing by ExampleController#restricted as HTML
538
557
  Authenticating with gds_sso strategy
539
558
  Completed in 0ms (ActiveRecord: 0.0ms)
540
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
541
- Started GET "/auth/gds/callback?code=2f4c371ee353aa938a0c0b4884d678c9ca1a3b8f0c4c0ba4f6062409d7a2678b&state=80046ff1a8d68fb5fd872abbbd7a277d13b173fd02bec941" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
559
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:21 +0000
560
+ Started GET "/auth/gds/callback?code=eef6cae8137048757a9e292f6105a5c37cbe2ee24e4c32d9c82932fce7ca5ec1&state=4c7f68ff1d05bb23df45f6fab0c1bb37e92b2ca8821a82de" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
542
561
  Processing by AuthenticationsController#callback as HTML
543
- Parameters: {"code"=>"2f4c371ee353aa938a0c0b4884d678c9ca1a3b8f0c4c0ba4f6062409d7a2678b", "state"=>"80046ff1a8d68fb5fd872abbbd7a277d13b173fd02bec941"}
562
+ Parameters: {"code"=>"eef6cae8137048757a9e292f6105a5c37cbe2ee24e4c32d9c82932fce7ca5ec1", "state"=>"4c7f68ff1d05bb23df45f6fab0c1bb37e92b2ca8821a82de"}
544
563
  Authenticating with gds_sso strategy
545
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
546
-  (0.1ms) begin transaction
564
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
565
+  (0.0ms) begin transaction
547
566
   (0.1ms) commit transaction
548
567
  Redirected to http://www.example-client.com/restricted
549
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
550
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
568
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
569
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
551
570
  Processing by ExampleController#restricted as HTML
552
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]]
553
572
  Rendering text template
554
573
  Rendered text template (0.0ms)
555
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
556
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:55 +0000
574
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
575
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:22 +0000
557
576
  Processing by ExampleController#restricted as HTML
558
577
  Authenticating with gds_sso strategy
559
- Completed in 1ms (ActiveRecord: 0.0ms)
560
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:18:55 +0000
561
- Started GET "/auth/gds/callback?code=cf55602d6aac2394eaa6601b069943fbabbfb2b9648bbd7c3d4e463c1ff20a3a&state=d4945f2e66485f1f80aa6c5b875367524a245bfb194ca9e6" for 127.0.0.1 at 2016-12-21 08:18:55 +0000
578
+ Completed in 0ms (ActiveRecord: 0.0ms)
579
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-07 04:59:22 +0000
580
+ Started GET "/auth/gds/callback?code=ae987a83e79b5db42e234ff7b2f06b1b073714635ded5e0a525cd3c097a9e67c&state=a60a982ed7fcc12f645e8c765d66c3405d39cabbb38d4842" for 127.0.0.1 at 2017-12-07 04:59:22 +0000
562
581
  Processing by AuthenticationsController#callback as HTML
563
- Parameters: {"code"=>"cf55602d6aac2394eaa6601b069943fbabbfb2b9648bbd7c3d4e463c1ff20a3a", "state"=>"d4945f2e66485f1f80aa6c5b875367524a245bfb194ca9e6"}
582
+ Parameters: {"code"=>"ae987a83e79b5db42e234ff7b2f06b1b073714635ded5e0a525cd3c097a9e67c", "state"=>"a60a982ed7fcc12f645e8c765d66c3405d39cabbb38d4842"}
564
583
  Authenticating with gds_sso strategy
565
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
584
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
566
585
   (0.1ms) begin transaction
567
586
   (0.1ms) commit transaction
568
587
  Redirected to http://www.example-client.com/restricted
569
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
570
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:55 +0000
588
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
589
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:22 +0000
571
590
  Processing by ExampleController#restricted as HTML
572
591
  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]]
573
592
  Rendering text template
574
593
  Rendered text template (0.0ms)
575
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
576
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
594
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
595
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
577
596
  Processing by ExampleController#restricted as HTML
578
597
  Authenticating with gds_sso strategy
579
598
  Completed in 0ms (ActiveRecord: 0.0ms)
580
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:55 +0000
581
- Started GET "/auth/gds/callback?code=eda09e29bd8e2830e0075c5db8fe57e905af2effeb707f71ed2d81fad615311e&state=0c893c6f4a0c2c3084337e46e77fbc9f4494a2f5b5d53004" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
599
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
600
+ Started GET "/auth/gds/callback?code=bae66fdb254921c89d57cd486bcb77f1bd97e8c28180f6341ec241ba717c762f&state=353b1507f3a4b29d000ebb7db8888fd80ef999dca99968b4" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
582
601
  Processing by AuthenticationsController#callback as HTML
583
- Parameters: {"code"=>"eda09e29bd8e2830e0075c5db8fe57e905af2effeb707f71ed2d81fad615311e", "state"=>"0c893c6f4a0c2c3084337e46e77fbc9f4494a2f5b5d53004"}
602
+ Parameters: {"code"=>"bae66fdb254921c89d57cd486bcb77f1bd97e8c28180f6341ec241ba717c762f", "state"=>"353b1507f3a4b29d000ebb7db8888fd80ef999dca99968b4"}
584
603
  Authenticating with gds_sso strategy
585
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
586
-  (0.1ms) begin transaction
587
-  (0.1ms) commit transaction
604
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
605
+  (0.0ms) begin transaction
606
+  (0.0ms) commit transaction
588
607
  Redirected to http://www.example-client.com/restricted
589
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
590
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
608
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
609
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
591
610
  Processing by ExampleController#restricted as HTML
592
611
  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]]
593
612
  Rendering text template
594
- Rendered text template (0.1ms)
595
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
596
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:18:56 +0000
613
+ Rendered text template (0.0ms)
614
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
615
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:22 +0000
597
616
  Processing by ExampleController#restricted as HTML
598
617
  Authenticating with gds_sso strategy
599
- Completed in 1ms (ActiveRecord: 0.0ms)
600
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:18:56 +0000
601
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
618
+ Completed in 0ms (ActiveRecord: 0.0ms)
619
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-07 04:59:22 +0000
620
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
602
621
  Processing by ExampleController#restricted as HTML
603
622
  Authenticating with gds_sso strategy
604
623
  Completed in 0ms (ActiveRecord: 0.0ms)
605
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
606
- Started GET "/auth/gds/callback?code=d9773150bbaed328cbc0e9467a34f1a9e64ea2b90e6bc724f57ed6d02b33887d&state=4db4e0eb8647cf92aa8bc997695258ce59a493270ae07002" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
624
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
625
+ Started GET "/auth/gds/callback?code=5fc8f36619995b77801a909ee20cd81c8637792dce963fee7de85fe2a7759a00&state=829150c4985bd4c2dc838d2739856556774401589996489e" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
607
626
  Processing by AuthenticationsController#callback as HTML
608
- Parameters: {"code"=>"d9773150bbaed328cbc0e9467a34f1a9e64ea2b90e6bc724f57ed6d02b33887d", "state"=>"4db4e0eb8647cf92aa8bc997695258ce59a493270ae07002"}
627
+ Parameters: {"code"=>"5fc8f36619995b77801a909ee20cd81c8637792dce963fee7de85fe2a7759a00", "state"=>"829150c4985bd4c2dc838d2739856556774401589996489e"}
609
628
  Authenticating with gds_sso strategy
610
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
611
-  (0.1ms) begin transaction
612
-  (0.1ms) commit transaction
629
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
630
+  (0.0ms) begin transaction
631
+  (0.0ms) commit transaction
613
632
  Redirected to http://www.example-client.com/restricted
614
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
615
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
633
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
634
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
616
635
  Processing by ExampleController#restricted as HTML
617
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]]
618
637
  Rendering text template
619
638
  Rendered text template (0.0ms)
620
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
621
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:08:56 +0000
622
- Processing by ExampleController#restricted as HTML
623
- 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", false], ["LIMIT", 1]]
624
- Rendering text template
625
- Rendered text template (0.0ms)
626
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
627
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
628
- Processing by ExampleController#restricted as JSON
629
- Completed in 24ms (ActiveRecord: 0.0ms)
630
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
631
- Processing by ExampleController#this_requires_signin_permission as JSON
632
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
633
-  (0.1ms) begin transaction
634
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
635
-  (16.8ms) commit transaction
636
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
637
-  (0.1ms) begin transaction
638
-  (0.1ms) commit transaction
639
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
640
-  (0.1ms) begin transaction
641
-  (0.1ms) commit transaction
642
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
643
-  (0.1ms) begin transaction
644
-  (0.1ms) commit transaction
645
- Rendering text template
646
- Rendered text template (0.0ms)
647
- Completed 200 OK in 97ms (Views: 0.4ms | ActiveRecord: 18.2ms)
648
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
649
- Processing by ExampleController#restricted as JSON
650
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
651
-  (0.1ms) begin transaction
652
-  (0.1ms) commit transaction
653
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
639
+ 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]]
654
641
   (0.1ms) begin transaction
655
-  (0.1ms) commit transaction
656
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
642
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 1]]
643
+  (4.1ms) commit transaction
644
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:22 +0000
645
+ 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
+ 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-06 08:54:22 +0000
650
+ Started GET "/auth/gds/callback?code=c74d8dc36a4d2b4006426c25130207c1f28f9fb1faf22a318845891631600888&state=970cf02e3c8915907ae13c67a93a782042d0eb57adea47bc" for 127.0.0.1 at 2017-12-06 08:54:23 +0000
651
+ Processing by AuthenticationsController#callback as HTML
652
+ Parameters: {"code"=>"c74d8dc36a4d2b4006426c25130207c1f28f9fb1faf22a318845891631600888", "state"=>"970cf02e3c8915907ae13c67a93a782042d0eb57adea47bc"}
653
+ Authenticating with gds_sso strategy
654
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
657
655
   (0.1ms) begin transaction
658
-  (0.1ms) commit transaction
659
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
656
+  (0.0ms) commit transaction
660
657
   (0.1ms) begin transaction
661
-  (0.1ms) commit transaction
658
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
659
+  (4.1ms) commit transaction
660
+ Redirected to http://www.example-client.com/restricted
661
+ Completed 302 Found in 9ms (ActiveRecord: 4.7ms)
662
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:23 +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", false], ["LIMIT", 1]]
662
665
  Rendering text template
663
666
  Rendered text template (0.0ms)
664
- Completed 200 OK in 86ms (Views: 0.4ms | ActiveRecord: 1.0ms)
665
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:13:56 +0000
666
- Processing by ExampleController#restricted as JSON
667
- Completed in 19ms (ActiveRecord: 0.0ms)
667
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
668
668
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
669
669
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
670
670
   (0.1ms) begin transaction
671
671
  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]]
672
-  (11.5ms) commit transaction
672
+  (8.6ms) commit transaction
673
673
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
674
-  (0.1ms) begin transaction
674
+  (0.0ms) begin transaction
675
675
   (0.1ms) commit transaction
676
676
   (0.1ms) begin transaction
677
- SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38884"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
678
-  (11.3ms) commit transaction
679
-  (0.1ms) begin transaction
680
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37324"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
681
-  (5.9ms) commit transaction
677
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31362"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
678
+  (5.5ms) commit transaction
679
+  (0.0ms) begin transaction
680
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31186"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
681
+  (4.0ms) commit transaction
682
+ Processing by Api::UserController#reauth as HTML
683
+ Parameters: {"uid"=>"a1s2d31362"}
684
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
685
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
686
+ Completed 403 Forbidden in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)
687
+  (0.1ms) begin transaction
688
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33730"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
689
+  (4.8ms) commit transaction
690
+  (0.0ms) begin transaction
691
+ SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33241"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
692
+  (4.8ms) commit transaction
682
693
  Processing by Api::UserController#reauth as HTML
683
694
  Parameters: {"uid"=>"nonexistent-user"}
684
695
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
685
- Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
686
-  (0.1ms) begin transaction
687
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38288"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
688
-  (8.7ms) commit transaction
689
-  (0.1ms) begin transaction
690
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36018"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
691
-  (7.0ms) commit transaction
692
- Processing by Api::UserController#reauth as HTML
693
- Parameters: {"uid"=>"a1s2d38288"}
694
- Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
695
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
696
- Completed 403 Forbidden in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
697
-  (0.1ms) begin transaction
698
- SQL (0.4ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34383"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
699
-  (17.2ms) commit transaction
700
-  (0.1ms) begin transaction
701
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31988"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
702
-  (8.7ms) commit transaction
696
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
697
+  (0.0ms) begin transaction
698
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31404"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
699
+  (4.0ms) commit transaction
700
+  (0.0ms) begin transaction
701
+ SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33047"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
702
+  (3.8ms) commit transaction
703
703
  Processing by Api::UserController#reauth as HTML
704
- Parameters: {"uid"=>"a1s2d34383"}
705
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34383"], ["LIMIT", 1]]
706
-  (0.1ms) begin transaction
704
+ Parameters: {"uid"=>"a1s2d31404"}
705
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d31404"], ["LIMIT", 1]]
706
+  (0.0ms) begin transaction
707
707
  SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 7]]
708
-  (7.6ms) commit transaction
709
- Completed 200 OK in 11ms (ActiveRecord: 8.1ms)
710
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
711
-  (0.1ms) begin transaction
712
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d34858"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
713
-  (8.2ms) commit transaction
714
-  (0.1ms) begin transaction
715
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d37304"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
716
-  (9.1ms) commit transaction
708
+  (4.1ms) commit transaction
709
+ Completed 200 OK in 6ms (ActiveRecord: 4.4ms)
710
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
711
+  (0.0ms) begin transaction
712
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35292"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
713
+  (5.7ms) commit transaction
714
+  (0.0ms) begin transaction
715
+ SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d32724"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
716
+  (6.5ms) commit transaction
717
717
  Processing by Api::UserController#update as HTML
718
- Parameters: {"uid"=>"a1s2d34858"}
719
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d34858"], ["LIMIT", 1]]
720
-  (0.1ms) begin transaction
718
+ Parameters: {"uid"=>"a1s2d35292"}
719
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d35292"], ["LIMIT", 1]]
720
+  (0.0ms) begin transaction
721
721
  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]]
722
-  (9.1ms) commit transaction
723
- Completed 200 OK in 14ms (ActiveRecord: 9.5ms)
722
+  (4.2ms) commit transaction
723
+ Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
724
724
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]
725
-  (0.1ms) begin transaction
726
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38853"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
727
-  (24.6ms) commit transaction
728
-  (0.1ms) begin transaction
729
- SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3825"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
730
-  (21.1ms) commit transaction
725
+  (0.0ms) begin transaction
726
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d38157"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
727
+  (3.7ms) commit transaction
728
+  (0.0ms) begin transaction
729
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34976"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
730
+  (6.6ms) commit transaction
731
731
  Processing by Api::UserController#update as HTML
732
- Parameters: {"uid"=>"a1s2d38853"}
733
- Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
734
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
735
- Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
736
-  (18.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') 
737
-  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
732
+ Parameters: {"uid"=>"a1s2d38157"}
733
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
734
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
735
+ Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
736
+  (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') 
737
+  (9.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
738
738
   (0.1ms) select sqlite_version(*)
739
-  (8.7ms) 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.3ms) 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
-  (17.0ms) 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.1ms) begin transaction
747
-  (0.1ms) commit transaction
739
+  (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
748
740
   (0.1ms) begin transaction
749
- SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34590"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
750
-  (49.8ms) commit transaction
741
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36466"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
742
+  (6.8ms) commit transaction
751
743
   (0.1ms) begin transaction
752
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36466"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
753
-  (127.9ms) commit transaction
744
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35543"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
745
+  (4.7ms) commit transaction
754
746
  Processing by Api::UserController#reauth as HTML
755
- Parameters: {"uid"=>"a1s2d34590"}
756
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
757
- Completed 403 Forbidden in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
758
-  (0.1ms) begin transaction
759
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39434"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
760
-  (33.3ms) commit transaction
747
+ Parameters: {"uid"=>"nonexistent-user"}
748
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
749
+ Completed 200 OK in 6ms (ActiveRecord: 0.2ms)
761
750
   (0.1ms) begin transaction
762
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36793"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
763
-  (57.5ms) commit transaction
751
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39240"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
752
+  (5.4ms) commit transaction
753
+  (0.0ms) begin transaction
754
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39347"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
755
+  (4.7ms) commit transaction
764
756
  Processing by Api::UserController#reauth as HTML
765
- Parameters: {"uid"=>"a1s2d39434"}
766
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39434"]]
757
+ Parameters: {"uid"=>"a1s2d39240"}
758
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
759
+ Completed 403 Forbidden in 9ms (Views: 9.2ms | ActiveRecord: 0.0ms)
767
760
   (0.1ms) begin transaction
768
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 4]]
769
-  (28.2ms) commit transaction
770
- Completed 200 OK in 32ms (ActiveRecord: 28.6ms)
771
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
772
-  (0.1ms) begin transaction
773
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39628"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
774
-  (21.9ms) commit transaction
775
-  (0.1ms) begin transaction
776
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34159"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
777
-  (45.9ms) commit transaction
761
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38374"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
762
+  (4.1ms) commit transaction
763
+  (0.0ms) begin transaction
764
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35852"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
765
+  (4.9ms) commit transaction
778
766
  Processing by Api::UserController#reauth as HTML
779
- Parameters: {"uid"=>"nonexistent-user"}
780
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]]
781
- Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
767
+ Parameters: {"uid"=>"a1s2d38374"}
768
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38374"]]
769
+  (0.0ms) begin transaction
770
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 5]]
771
+  (4.2ms) commit transaction
772
+ Completed 200 OK in 7ms (ActiveRecord: 4.5ms)
773
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
782
774
   (0.1ms) begin transaction
783
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37093"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
784
-  (29.8ms) commit transaction
785
-  (0.1ms) begin transaction
786
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37407"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
787
-  (26.3ms) commit transaction
775
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32362"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
776
+  (5.0ms) commit transaction
777
+  (0.0ms) begin transaction
778
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35488"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
779
+  (6.3ms) commit transaction
788
780
  Processing by Api::UserController#update as HTML
789
- Parameters: {"uid"=>"a1s2d37093"}
790
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
791
- Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
781
+ Parameters: {"uid"=>"a1s2d32362"}
782
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.1ms)
783
+ Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
792
784
   (0.1ms) begin transaction
793
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34602"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
794
-  (18.3ms) commit transaction
785
+ SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39861"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]
786
+  (3.8ms) commit transaction
795
787
   (0.1ms) begin transaction
796
- SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32032"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
797
-  (8.4ms) commit transaction
788
+ SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38847"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
789
+  (3.9ms) commit transaction
798
790
  Processing by Api::UserController#update as HTML
799
- Parameters: {"uid"=>"a1s2d34602"}
800
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d34602"]]
791
+ Parameters: {"uid"=>"a1s2d39861"}
792
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39861"]]
793
+  (0.0ms) begin transaction
794
+ 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]]
795
+  (4.6ms) commit transaction
796
+ Completed 200 OK in 8ms (ActiveRecord: 4.9ms)
797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
798
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
799
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "user@example.com"]]
800
+  (0.1ms) begin transaction
801
+ 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]]
802
+  (4.0ms) commit transaction
803
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "asd"]]
804
+  (0.0ms) begin transaction
805
+  (0.1ms) commit transaction
806
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
807
+ Processing by ExampleController#this_requires_signin_permission as JSON
808
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
809
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
810
+  (0.1ms) begin transaction
811
+ 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]]
812
+  (6.6ms) commit transaction
813
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
814
+  (0.0ms) begin transaction
815
+  (0.0ms) commit transaction
816
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
817
+  (0.0ms) begin transaction
818
+  (0.0ms) commit transaction
819
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
820
+  (0.0ms) begin transaction
821
+  (0.1ms) commit transaction
822
+  (0.0ms) begin transaction
823
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
824
+  (7.3ms) commit transaction
825
+ Rendered text template (0.0ms)
826
+ Completed 200 OK in 96ms (Views: 1.1ms | ActiveRecord: 15.0ms)
827
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
828
+ Processing by ExampleController#restricted as JSON
829
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
830
+  (0.1ms) begin transaction
831
+  (0.1ms) commit transaction
832
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
833
+  (0.1ms) begin transaction
834
+  (0.0ms) commit transaction
835
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
801
836
   (0.1ms) begin transaction
802
- 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]]
803
-  (56.6ms) commit transaction
804
- Completed 200 OK in 61ms (ActiveRecord: 57.0ms)
805
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]
806
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
837
+  (0.0ms) commit transaction
838
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
839
+  (0.1ms) begin transaction
840
+  (0.0ms) commit transaction
841
+  (0.1ms) begin transaction
842
+  (0.1ms) commit transaction
843
+ Rendered text template (0.0ms)
844
+ Completed 200 OK in 66ms (Views: 0.3ms | ActiveRecord: 0.8ms)
845
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
846
+ Processing by ExampleController#restricted as JSON
847
+ Completed in 14ms (ActiveRecord: 0.0ms)
848
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
849
+ Processing by ExampleController#restricted as JSON
850
+ Completed in 28ms (ActiveRecord: 0.0ms)
851
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
807
852
  Processing by ExampleController#restricted as HTML
808
853
  Authenticating with gds_sso strategy
809
- Completed in 9ms (ActiveRecord: 0.0ms)
810
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
811
- Started GET "/auth/gds/callback?code=e83c574e24c350ff3a8edc04116dd82d5c6d5423807be6f248399172b2249c86&state=1c6f0e587f72cbd849afd01c9e44eb50d3eda24fadf36c2d" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
854
+ Completed in 0ms (ActiveRecord: 0.0ms)
855
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
856
+ Started GET "/auth/gds/callback?code=3930600dadf517a73cb2a4d2d883a636e71dee22dc97cc762ff4e4457d2e2141&state=296955893792a7bf8fdb987a05e0e4e6c19e44e8ea910310" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
812
857
  Processing by AuthenticationsController#callback as HTML
813
- Parameters: {"code"=>"e83c574e24c350ff3a8edc04116dd82d5c6d5423807be6f248399172b2249c86", "state"=>"1c6f0e587f72cbd849afd01c9e44eb50d3eda24fadf36c2d"}
858
+ Parameters: {"code"=>"3930600dadf517a73cb2a4d2d883a636e71dee22dc97cc762ff4e4457d2e2141", "state"=>"296955893792a7bf8fdb987a05e0e4e6c19e44e8ea910310"}
814
859
  Authenticating with gds_sso strategy
815
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
816
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
860
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
817
861
   (0.1ms) begin transaction
818
- 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"]]
819
-  (55.8ms) commit transaction
820
-  (0.1ms) begin transaction
821
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
822
-  (59.9ms) commit transaction
862
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 12]]
863
+  (5.8ms) commit transaction
864
+  (0.0ms) begin transaction
865
+  (0.0ms) commit transaction
823
866
  Redirected to http://www.example-client.com/restricted
824
- Completed 302 Found in 124ms (ActiveRecord: 116.6ms)
825
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
867
+ Completed 302 Found in 10ms (ActiveRecord: 6.3ms)
868
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
826
869
  Processing by ExampleController#restricted as HTML
827
- 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"]]
870
+ 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"]]
828
871
  Rendered text template (0.0ms)
829
- Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)
830
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
872
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
873
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
831
874
  Processing by ExampleController#this_requires_signin_permission as HTML
832
875
  Authenticating with gds_sso strategy
833
876
  Completed in 0ms (ActiveRecord: 0.0ms)
834
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:01 +0000
835
- Started GET "/auth/gds/callback?code=815014e9b0d21da1e755c05a6ec370c5dcf1281a4a0d5163a3ab154749c5e5b9&state=d2f7ed5aa6a311325022c700508774724d382acaf0e7bf63" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
877
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
878
+ Started GET "/auth/gds/callback?code=de2f00194961e45f161c593b3dd3458f2759fc1c5628b401849a8bb7493d84aa&state=fb08b765269032f5013273ecd859b810ae6d69f58cd798ac" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
836
879
  Processing by AuthenticationsController#callback as HTML
837
- Parameters: {"code"=>"815014e9b0d21da1e755c05a6ec370c5dcf1281a4a0d5163a3ab154749c5e5b9", "state"=>"d2f7ed5aa6a311325022c700508774724d382acaf0e7bf63"}
880
+ Parameters: {"code"=>"de2f00194961e45f161c593b3dd3458f2759fc1c5628b401849a8bb7493d84aa", "state"=>"fb08b765269032f5013273ecd859b810ae6d69f58cd798ac"}
838
881
  Authenticating with gds_sso strategy
839
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
840
-  (0.1ms) begin transaction
841
-  (0.1ms) commit transaction
842
-  (0.1ms) begin transaction
843
-  (0.1ms) commit transaction
882
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
883
+  (0.1ms) begin transaction
884
+  (0.0ms) commit transaction
885
+  (0.1ms) begin transaction
886
+  (0.0ms) commit transaction
844
887
  Redirected to http://www.example-client.com/this_requires_signin_permission
845
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
846
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
888
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
889
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:29 +0000
847
890
  Processing by ExampleController#this_requires_signin_permission as HTML
848
- 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"]]
891
+ 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"]]
849
892
  Rendered text template (0.0ms)
850
893
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
851
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
894
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
852
895
  Processing by ExampleController#this_requires_signin_permission as HTML
853
896
  Authenticating with gds_sso strategy
854
897
  Completed in 0ms (ActiveRecord: 0.0ms)
855
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
856
- Started GET "/auth/gds/callback?code=5e9b99cb06e1c34740db954da63a7eb2e560d3192cacf8909335c94021848514&state=697b0a2a06803b0b60b94edcfa5e06d51bbffdc801f042e8" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
898
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
899
+ Started GET "/auth/gds/callback?code=dd2fba84a44630013a2f352b50ac3b4bbb50e7f8ccaf27b3814f556d68d4bb20&state=db476cb2cd062a331c3aa1324c050dec4ef6d20b1ea6e103" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
857
900
  Processing by AuthenticationsController#callback as HTML
858
- Parameters: {"code"=>"5e9b99cb06e1c34740db954da63a7eb2e560d3192cacf8909335c94021848514", "state"=>"697b0a2a06803b0b60b94edcfa5e06d51bbffdc801f042e8"}
901
+ Parameters: {"code"=>"dd2fba84a44630013a2f352b50ac3b4bbb50e7f8ccaf27b3814f556d68d4bb20", "state"=>"db476cb2cd062a331c3aa1324c050dec4ef6d20b1ea6e103"}
859
902
  Authenticating with gds_sso strategy
860
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
861
-  (0.1ms) begin transaction
862
-  (0.1ms) commit transaction
863
-  (0.1ms) begin transaction
864
-  (0.1ms) commit transaction
903
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
904
+  (0.1ms) begin transaction
905
+  (0.0ms) commit transaction
906
+  (0.0ms) begin transaction
907
+  (0.0ms) commit transaction
865
908
  Redirected to http://www.example-client.com/this_requires_signin_permission
866
- Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
867
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
909
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
910
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
868
911
  Processing by ExampleController#this_requires_signin_permission as HTML
869
- 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"]]
912
+ 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"]]
870
913
  Rendered text template (0.0ms)
871
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
872
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
914
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
915
+ Started GET "/" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
916
+ Processing by ExampleController#index as HTML
917
+ Rendered text template (0.0ms)
918
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
919
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
873
920
  Processing by ExampleController#restricted as HTML
874
921
  Authenticating with gds_sso strategy
875
922
  Completed in 0ms (ActiveRecord: 0.0ms)
876
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
877
- Started GET "/auth/gds/callback?code=f61dc7b0678d75071939e02a36a56ffe8cedfb1080fdbf3ebed8f6457c149323&state=652b84b2aec0cb3cfeaeacec285ccabd80e515f432676b10" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
923
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
924
+ Started GET "/auth/gds/callback?code=55e382cde2797a9a5a2d7f95e13979248a582fac5761e127295d6fe18b76a0d0&state=3f308532f17b1a77e740617a8568556401711523b222c31f" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
878
925
  Processing by AuthenticationsController#callback as HTML
879
- Parameters: {"code"=>"f61dc7b0678d75071939e02a36a56ffe8cedfb1080fdbf3ebed8f6457c149323", "state"=>"652b84b2aec0cb3cfeaeacec285ccabd80e515f432676b10"}
926
+ Parameters: {"code"=>"55e382cde2797a9a5a2d7f95e13979248a582fac5761e127295d6fe18b76a0d0", "state"=>"3f308532f17b1a77e740617a8568556401711523b222c31f"}
880
927
  Authenticating with gds_sso strategy
881
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
882
-  (0.1ms) begin transaction
883
-  (0.1ms) commit transaction
884
-  (0.1ms) begin transaction
885
-  (0.1ms) commit transaction
928
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
929
+  (0.1ms) begin transaction
930
+  (0.0ms) commit transaction
931
+  (0.0ms) begin transaction
932
+  (0.0ms) commit transaction
886
933
  Redirected to http://www.example-client.com/restricted
887
934
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
888
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
935
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
889
936
  Processing by ExampleController#restricted as HTML
890
- 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"]]
937
+ 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"]]
891
938
  Rendered text template (0.0ms)
892
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
893
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
939
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
940
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
894
941
  Processing by ExampleController#restricted as HTML
895
942
  Authenticating with gds_sso strategy
896
943
  Completed in 0ms (ActiveRecord: 0.0ms)
897
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
898
- Started GET "/auth/gds/callback?code=ddb00bddd9c83f7f2fef1957866c328b0fbc5497ed58aff9cf450dde57cfd78d&state=37b1f68c09a1a2ab6d6c363cb0bebe09a9bf02f3ed77fc79" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
944
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
945
+ Started GET "/auth/gds/callback?code=57885b7f7fa765e99cf66849ae5626a322bc95a5f72b01dfa2ac68bd12152bca&state=58387e91f22389479ee6070d26cfe223d8f5af287cd65f06" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
899
946
  Processing by AuthenticationsController#callback as HTML
900
- Parameters: {"code"=>"ddb00bddd9c83f7f2fef1957866c328b0fbc5497ed58aff9cf450dde57cfd78d", "state"=>"37b1f68c09a1a2ab6d6c363cb0bebe09a9bf02f3ed77fc79"}
947
+ Parameters: {"code"=>"57885b7f7fa765e99cf66849ae5626a322bc95a5f72b01dfa2ac68bd12152bca", "state"=>"58387e91f22389479ee6070d26cfe223d8f5af287cd65f06"}
901
948
  Authenticating with gds_sso strategy
902
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
903
-  (0.1ms) begin transaction
904
-  (0.1ms) commit transaction
905
-  (0.1ms) begin transaction
906
-  (0.1ms) commit transaction
949
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
950
+  (0.1ms) begin transaction
951
+  (0.0ms) commit transaction
952
+  (0.0ms) begin transaction
953
+  (0.0ms) commit transaction
907
954
  Redirected to http://www.example-client.com/restricted
908
955
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
909
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
956
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
910
957
  Processing by ExampleController#restricted as HTML
911
- 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"]]
912
- Rendered text template (0.0ms)
913
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
914
- Started GET "/" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
915
- Processing by ExampleController#index as HTML
958
+ 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"]]
916
959
  Rendered text template (0.0ms)
917
- Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
918
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
960
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
961
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
919
962
  Processing by ExampleController#restricted as HTML
920
963
  Authenticating with gds_sso strategy
921
964
  Completed in 0ms (ActiveRecord: 0.0ms)
922
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:02 +0000
923
- Started GET "/auth/gds/callback?code=5d782eb8f92316cc6e1c2aa278e5bdb71e9c1fb7aa5d295ccf21198682694534&state=d3cfca2752cbf51b944c5e70e1738df35602e8c3f640ab23" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
965
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
966
+ Started GET "/auth/gds/callback?code=eba0c45be887c9e0bf04a5c8c4607edd05c5e0371ebfb6774f411256b37d73f5&state=14868ca49deae21f69375b522a3159c2ef20724fc09c5693" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
924
967
  Processing by AuthenticationsController#callback as HTML
925
- Parameters: {"code"=>"5d782eb8f92316cc6e1c2aa278e5bdb71e9c1fb7aa5d295ccf21198682694534", "state"=>"d3cfca2752cbf51b944c5e70e1738df35602e8c3f640ab23"}
968
+ Parameters: {"code"=>"eba0c45be887c9e0bf04a5c8c4607edd05c5e0371ebfb6774f411256b37d73f5", "state"=>"14868ca49deae21f69375b522a3159c2ef20724fc09c5693"}
926
969
  Authenticating with gds_sso strategy
927
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
928
-  (0.1ms) begin transaction
929
-  (0.1ms) commit transaction
930
-  (0.1ms) begin transaction
931
-  (0.1ms) commit transaction
970
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
971
+  (0.1ms) begin transaction
972
+  (0.1ms) commit transaction
973
+  (0.1ms) begin transaction
974
+  (0.0ms) commit transaction
932
975
  Redirected to http://www.example-client.com/restricted
933
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
934
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
976
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
977
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
935
978
  Processing by ExampleController#restricted as HTML
936
- 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"]]
979
+ 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"]]
937
980
  Rendered text template (0.0ms)
938
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
939
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
981
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
982
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
983
+  (0.1ms) begin transaction
984
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
985
+  (4.1ms) commit transaction
986
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
940
987
  Processing by ExampleController#restricted as HTML
988
+ 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"]]
941
989
  Authenticating with gds_sso strategy
942
- Completed in 1ms (ActiveRecord: 0.0ms)
943
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
944
- Started GET "/auth/gds/callback?code=1b136b2495606a2bf087a88aaf75a16938bc4c46478aaaf986b56dd879ee0741&state=b0bd5ae90cd2d6153d28844ec95ab09ff0f0a6872cec177b" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
990
+ Completed in 1ms (ActiveRecord: 0.1ms)
991
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:30 +0000
992
+ Started GET "/auth/gds/callback?code=6591d83f221c619c9b010d93d08d86a6e652affc0b55ed9a43027a15497c9e1b&state=af2bd29c194bd62112102c8a533f8cd5c3efb79d19c8fde6" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
945
993
  Processing by AuthenticationsController#callback as HTML
946
- Parameters: {"code"=>"1b136b2495606a2bf087a88aaf75a16938bc4c46478aaaf986b56dd879ee0741", "state"=>"b0bd5ae90cd2d6153d28844ec95ab09ff0f0a6872cec177b"}
994
+ Parameters: {"code"=>"6591d83f221c619c9b010d93d08d86a6e652affc0b55ed9a43027a15497c9e1b", "state"=>"af2bd29c194bd62112102c8a533f8cd5c3efb79d19c8fde6"}
947
995
  Authenticating with gds_sso strategy
948
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
949
-  (0.1ms) begin transaction
950
-  (0.1ms) commit transaction
996
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
951
997
   (0.1ms) begin transaction
952
-  (0.1ms) commit transaction
998
+  (0.0ms) commit transaction
999
+  (0.0ms) begin transaction
1000
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1001
+  (5.5ms) commit transaction
953
1002
  Redirected to http://www.example-client.com/restricted
954
- Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
955
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
1003
+ Completed 302 Found in 10ms (ActiveRecord: 6.0ms)
1004
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
956
1005
  Processing by ExampleController#restricted as HTML
957
- 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"]]
1006
+ 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"]]
958
1007
  Rendered text template (0.0ms)
959
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
960
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1008
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1009
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
961
1010
  Processing by ExampleController#restricted as HTML
962
1011
  Authenticating with gds_sso strategy
963
1012
  Completed in 0ms (ActiveRecord: 0.0ms)
964
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
965
- Started GET "/auth/gds/callback?code=03db107ba23a498b84abac261855f02c826e2cc5911ac3472d5d24adf6735430&state=cce2324be8ea1af35578a28cbab9fc3f7ff1ba2058e318b2" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1013
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
1014
+ Started GET "/auth/gds/callback?code=2db8e43bc7e0a8ef7e420c0ea07f73e478aaf047a3178fea3c2c582ae2efba27&state=bb1b7f673683f88332c0dca9bd9299d83765883163592285" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
966
1015
  Processing by AuthenticationsController#callback as HTML
967
- Parameters: {"code"=>"03db107ba23a498b84abac261855f02c826e2cc5911ac3472d5d24adf6735430", "state"=>"cce2324be8ea1af35578a28cbab9fc3f7ff1ba2058e318b2"}
1016
+ Parameters: {"code"=>"2db8e43bc7e0a8ef7e420c0ea07f73e478aaf047a3178fea3c2c582ae2efba27", "state"=>"bb1b7f673683f88332c0dca9bd9299d83765883163592285"}
968
1017
  Authenticating with gds_sso strategy
969
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
970
-  (0.1ms) begin transaction
971
-  (0.1ms) commit transaction
972
-  (0.1ms) begin transaction
973
-  (0.1ms) commit transaction
1018
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1019
+  (0.1ms) begin transaction
1020
+  (0.0ms) commit transaction
1021
+  (0.0ms) begin transaction
1022
+  (0.0ms) commit transaction
974
1023
  Redirected to http://www.example-client.com/restricted
975
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
976
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1024
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1025
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
977
1026
  Processing by ExampleController#restricted as HTML
978
- 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"]]
1027
+ 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"]]
979
1028
  Rendered text template (0.0ms)
980
1029
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
981
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:09:03 +0000
1030
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:31 +0000
982
1031
  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"]]
984
- Rendered text template (0.1ms)
985
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
986
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1032
+ Authenticating with gds_sso strategy
1033
+ Completed in 1ms (ActiveRecord: 0.0ms)
1034
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-07 04:59:31 +0000
1035
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
987
1036
  Processing by ExampleController#restricted as HTML
988
1037
  Authenticating with gds_sso strategy
989
1038
  Completed in 0ms (ActiveRecord: 0.0ms)
990
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
991
- Started GET "/auth/gds/callback?code=339c75ffaa47170c9f408b88132d9d4f2b5d87690c36819a1216662484ae81d0&state=4fbd0c12c577843925499060671b572d7f4e49879704627a" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1039
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
1040
+ Started GET "/auth/gds/callback?code=7f1e0b56a35a5b592d63ee3a2430411b795bdc62e1d308c7436f9f9a7cafbb4f&state=eb0505524c75c135fabb31e2499c109a8db75bc1d32e9269" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
992
1041
  Processing by AuthenticationsController#callback as HTML
993
- Parameters: {"code"=>"339c75ffaa47170c9f408b88132d9d4f2b5d87690c36819a1216662484ae81d0", "state"=>"4fbd0c12c577843925499060671b572d7f4e49879704627a"}
1042
+ Parameters: {"code"=>"7f1e0b56a35a5b592d63ee3a2430411b795bdc62e1d308c7436f9f9a7cafbb4f", "state"=>"eb0505524c75c135fabb31e2499c109a8db75bc1d32e9269"}
994
1043
  Authenticating with gds_sso strategy
995
1044
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
996
1045
   (0.1ms) begin transaction
997
1046
   (0.1ms) commit transaction
998
-  (0.1ms) begin transaction
999
-  (0.1ms) commit transaction
1047
+  (0.0ms) begin transaction
1048
+  (0.0ms) commit transaction
1000
1049
  Redirected to http://www.example-client.com/restricted
1001
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1002
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1050
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1051
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
1003
1052
  Processing by ExampleController#restricted as HTML
1004
1053
  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"]]
1005
1054
  Rendered text template (0.0ms)
1006
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1007
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
1055
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1056
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:31 +0000
1008
1057
  Processing by ExampleController#restricted as HTML
1009
1058
  Authenticating with gds_sso strategy
1010
1059
  Completed in 1ms (ActiveRecord: 0.0ms)
1011
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:19:03 +0000
1012
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1013
- Processing by ExampleController#restricted as HTML
1014
- Authenticating with gds_sso strategy
1015
- Completed in 0ms (ActiveRecord: 0.0ms)
1016
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1017
- Started GET "/auth/gds/callback?code=45976954b052808db424af8655041bfd5636b8ab31e88300a2bfc6e4af321335&state=e9b07ec972a760de7b8eae193c3258cb02d35379ba595005" for 127.0.0.1 at 2016-12-20 12:14:03 +0000
1060
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-07 04:59:31 +0000
1061
+ Started GET "/auth/gds/callback?code=9a65c8c0ba410618fbd8e816156a0dd4ec548236c58489114e887bfb64cf14f5&state=b6730b0f74200f05b1df840616470d013a054a066321079b" for 127.0.0.1 at 2017-12-07 04:59:31 +0000
1018
1062
  Processing by AuthenticationsController#callback as HTML
1019
- Parameters: {"code"=>"45976954b052808db424af8655041bfd5636b8ab31e88300a2bfc6e4af321335", "state"=>"e9b07ec972a760de7b8eae193c3258cb02d35379ba595005"}
1063
+ Parameters: {"code"=>"9a65c8c0ba410618fbd8e816156a0dd4ec548236c58489114e887bfb64cf14f5", "state"=>"b6730b0f74200f05b1df840616470d013a054a066321079b"}
1020
1064
  Authenticating with gds_sso strategy
1021
1065
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1022
1066
   (0.1ms) begin transaction
1023
-  (0.1ms) commit transaction
1067
+  (0.3ms) commit transaction
1024
1068
   (0.1ms) begin transaction
1025
1069
   (0.1ms) commit transaction
1026
1070
  Redirected to http://www.example-client.com/restricted
1027
- Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1028
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1071
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
1072
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:31 +0000
1029
1073
  Processing by ExampleController#restricted as HTML
1030
1074
  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"]]
1031
1075
  Rendered text template (0.0ms)
1032
1076
  Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1033
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]
1034
-  (0.1ms) begin transaction
1035
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 12]]
1036
-  (283.7ms) commit transaction
1037
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1077
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
1038
1078
  Processing by ExampleController#restricted as HTML
1039
- 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"]]
1040
1079
  Authenticating with gds_sso strategy
1041
- Completed in 1ms (ActiveRecord: 0.1ms)
1042
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1043
- Started GET "/auth/gds/callback?code=e8aaee5efec2952249ba030aa7f13a3fdefe8310081596ef31995a008cc1e839&state=136e87f9ea15c62569bded7132587fea1c23d5c22c26a2d7" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1080
+ Completed in 0ms (ActiveRecord: 0.0ms)
1081
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:31 +0000
1082
+ Started GET "/auth/gds/callback?code=4ed177f109a09e5246d60c5382a239599bea253b0761b0612cc00d5abf35b5d3&state=55b1087d0480f5946bd16d642f95cf6cf4580fa732eed4c8" for 127.0.0.1 at 2017-12-06 08:54:32 +0000
1044
1083
  Processing by AuthenticationsController#callback as HTML
1045
- Parameters: {"code"=>"e8aaee5efec2952249ba030aa7f13a3fdefe8310081596ef31995a008cc1e839", "state"=>"136e87f9ea15c62569bded7132587fea1c23d5c22c26a2d7"}
1084
+ Parameters: {"code"=>"4ed177f109a09e5246d60c5382a239599bea253b0761b0612cc00d5abf35b5d3", "state"=>"55b1087d0480f5946bd16d642f95cf6cf4580fa732eed4c8"}
1046
1085
  Authenticating with gds_sso strategy
1047
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1048
-  (0.1ms) begin transaction
1049
-  (0.1ms) commit transaction
1050
-  (0.1ms) begin transaction
1051
- SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 12]]
1052
-  (109.5ms) commit transaction
1053
- Redirected to http://www.example-client.com/restricted
1054
- Completed 302 Found in 115ms (ActiveRecord: 110.0ms)
1055
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1056
- Processing by ExampleController#restricted as HTML
1057
- 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"]]
1058
- Rendered text template (0.0ms)
1059
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1060
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1061
- Processing by ExampleController#restricted as JSON
1062
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1063
-  (0.1ms) begin transaction
1064
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
1065
-  (44.2ms) commit transaction
1066
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1067
-  (0.2ms) begin transaction
1068
-  (0.1ms) commit transaction
1069
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1070
-  (0.1ms) begin transaction
1071
-  (0.1ms) commit transaction
1072
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1086
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1073
1087
   (0.1ms) begin transaction
1074
1088
   (0.1ms) commit transaction
1075
1089
   (0.1ms) begin transaction
1076
1090
   (0.1ms) commit transaction
1091
+ Redirected to http://www.example-client.com/restricted
1092
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1093
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:32 +0000
1094
+ Processing by ExampleController#restricted as HTML
1095
+ 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"]]
1077
1096
  Rendered text template (0.0ms)
1078
- Completed 200 OK in 118ms (Views: 0.3ms | ActiveRecord: 45.6ms)
1079
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1080
- Processing by ExampleController#this_requires_signin_permission as JSON
1081
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1082
-  (0.1ms) begin transaction
1083
-  (0.1ms) commit transaction
1084
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1085
-  (0.1ms) begin transaction
1086
-  (0.1ms) commit transaction
1087
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1088
-  (0.1ms) begin transaction
1089
-  (0.1ms) commit transaction
1090
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]
1091
-  (0.1ms) begin transaction
1092
-  (0.1ms) commit transaction
1093
-  (0.1ms) begin transaction
1094
-  (0.1ms) commit transaction
1097
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1098
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:49:32 +0000
1099
+ Processing by ExampleController#restricted as HTML
1100
+ 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"]]
1095
1101
  Rendered text template (0.0ms)
1096
- Completed 200 OK in 70ms (Views: 0.4ms | ActiveRecord: 1.0ms)
1097
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1098
- Processing by ExampleController#restricted as JSON
1099
- Completed in 16ms (ActiveRecord: 0.0ms)
1100
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:04 +0000
1101
- Processing by ExampleController#restricted as JSON
1102
- Completed in 16ms (ActiveRecord: 0.0ms)
1103
-  (62.8ms) 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
-  (26.6ms) 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.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1106
-  (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", 2016-12-20 12:14:08 UTC], ["updated_at", 2016-12-20 12:14:08 UTC]]
1108
-  (48.2ms) commit transaction
1109
-  (22.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1102
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1103
+  (6.5ms) 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
+  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1110
1105
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1111
-  (0.1ms) begin transaction
1112
-  (0.1ms) commit transaction
1113
-  (0.1ms) begin transaction
1114
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32278"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1115
-  (16.2ms) commit transaction
1116
-  (0.1ms) begin transaction
1117
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38130"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1118
-  (20.4ms) commit transaction
1119
- Processing by Api::UserController#update as HTML
1120
- Parameters: {"uid"=>"a1s2d32278"}
1121
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d32278"], ["LIMIT", 1]]
1122
-  (0.1ms) begin transaction
1123
- 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]]
1124
-  (15.5ms) commit transaction
1125
- Completed 200 OK in 22ms (ActiveRecord: 16.0ms)
1126
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1127
-  (0.1ms) begin transaction
1128
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36805"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1129
-  (17.4ms) commit transaction
1130
-  (0.1ms) begin transaction
1131
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3981"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1132
-  (14.4ms) commit transaction
1133
- Processing by Api::UserController#update as HTML
1134
- Parameters: {"uid"=>"a1s2d36805"}
1135
- Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1136
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1137
- Completed 403 Forbidden in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
1138
-  (0.1ms) begin transaction
1139
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d36327"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1140
-  (15.0ms) commit transaction
1141
-  (0.1ms) begin transaction
1142
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d31900"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1143
-  (10.8ms) commit transaction
1144
- Processing by Api::UserController#reauth as HTML
1145
- Parameters: {"uid"=>"a1s2d36327"}
1146
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d36327"], ["LIMIT", 1]]
1147
-  (0.1ms) begin transaction
1148
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 5]]
1149
-  (11.5ms) commit transaction
1150
- Completed 200 OK in 15ms (ActiveRecord: 11.8ms)
1151
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
1152
-  (0.1ms) begin transaction
1153
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31201"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1154
-  (16.8ms) commit transaction
1155
-  (0.1ms) begin transaction
1156
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d35356"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1157
-  (55.4ms) 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
-  (0.1ms) begin transaction
1163
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d35825"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1164
-  (53.0ms) commit transaction
1165
-  (0.1ms) begin transaction
1166
- SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33840"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1167
-  (12.5ms) commit transaction
1168
- Processing by Api::UserController#reauth as HTML
1169
- Parameters: {"uid"=>"a1s2d35825"}
1170
- Rendering /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1171
- Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1172
- Completed 403 Forbidden in 1ms (Views: 0.7ms | 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]]
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
-  (34.1ms) commit transaction
1178
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1179
-  (0.1ms) begin transaction
1180
-  (0.1ms) commit transaction
1181
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1182
- Processing by ExampleController#restricted as HTML
1106
+  (0.0ms) 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-06 08:54:37 UTC], ["updated_at", 2017-12-06 08:54:37 UTC]]
1108
+  (4.8ms) commit transaction
1109
+  (5.6ms) 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]]
1111
+  (0.0ms) begin transaction
1112
+  (0.0ms) commit transaction
1113
+ Started GET "/" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1114
+ Processing by ExampleController#index as HTML
1115
+ Rendering text template
1116
+ Rendered text template (0.0ms)
1117
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
1118
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1119
+ Processing by ExampleController#this_requires_signin_permission as HTML
1183
1120
  Authenticating with gds_sso strategy
1184
- Completed in 8ms (ActiveRecord: 0.0ms)
1185
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1186
- Started GET "/auth/gds/callback?code=d8dc5f3f1e4f979188078210eb672cc65e65886a1911d3a04e007b6920639aae&state=aacd9976277328788208a01786c2d724c983a1af89b3428c" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1121
+ Completed in 7ms (ActiveRecord: 0.0ms)
1122
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1123
+ Started GET "/auth/gds/callback?code=ecce711fa71fa62a32f4949e13c5d95a996175394a9ce009fd89237ef56abc9a&state=70b7e114cbe86ce912b8eca4148ad07264e7d53370554173" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1187
1124
  Processing by AuthenticationsController#callback as HTML
1188
- Parameters: {"code"=>"d8dc5f3f1e4f979188078210eb672cc65e65886a1911d3a04e007b6920639aae", "state"=>"aacd9976277328788208a01786c2d724c983a1af89b3428c"}
1125
+ Parameters: {"code"=>"ecce711fa71fa62a32f4949e13c5d95a996175394a9ce009fd89237ef56abc9a", "state"=>"70b7e114cbe86ce912b8eca4148ad07264e7d53370554173"}
1189
1126
  Authenticating with gds_sso strategy
1190
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1127
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1191
1128
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1192
1129
   (0.1ms) begin transaction
1193
1130
  SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Test User"], ["uid", "integration-uid"], ["email", "test@example-client.com"], ["permissions", "---\n- signin\n"]]
1194
-  (41.4ms) commit transaction
1195
-  (0.1ms) begin transaction
1196
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
1197
-  (32.3ms) commit transaction
1198
- Redirected to http://www.example-client.com/restricted
1199
- Completed 302 Found in 81ms (ActiveRecord: 74.8ms)
1200
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1201
- Processing by ExampleController#restricted as HTML
1202
- 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]]
1131
+  (5.3ms) commit transaction
1132
+  (0.0ms) begin transaction
1133
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
1134
+  (4.0ms) commit transaction
1135
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1136
+ Completed 302 Found in 24ms (ActiveRecord: 10.7ms)
1137
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1138
+ Processing by ExampleController#this_requires_signin_permission as HTML
1139
+ 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]]
1203
1140
  Rendering text template
1204
1141
  Rendered text template (0.0ms)
1205
- Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)
1206
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1207
- Processing by ExampleController#restricted as HTML
1142
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1143
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1144
+ Processing by ExampleController#this_requires_signin_permission as HTML
1208
1145
  Authenticating with gds_sso strategy
1209
1146
  Completed in 0ms (ActiveRecord: 0.0ms)
1210
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1211
- Started GET "/auth/gds/callback?code=6454c026e285afaade3a0287a25f253e179535e150366a539d95c1abb56c781c&state=bd7243c7e76af115c65015bda69fe6ba81f9d5990191e936" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1147
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1148
+ Started GET "/auth/gds/callback?code=5ea50e0ad74970b7d814e4a9b7fe006646aa56baaa8cfeaca11a326cd5ca8290&state=71c33085c55058a6fe23548ac060ecf384ecb8697a3dea10" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1212
1149
  Processing by AuthenticationsController#callback as HTML
1213
- Parameters: {"code"=>"6454c026e285afaade3a0287a25f253e179535e150366a539d95c1abb56c781c", "state"=>"bd7243c7e76af115c65015bda69fe6ba81f9d5990191e936"}
1150
+ Parameters: {"code"=>"5ea50e0ad74970b7d814e4a9b7fe006646aa56baaa8cfeaca11a326cd5ca8290", "state"=>"71c33085c55058a6fe23548ac060ecf384ecb8697a3dea10"}
1214
1151
  Authenticating with gds_sso strategy
1215
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1216
-  (0.1ms) begin transaction
1217
-  (0.1ms) commit transaction
1218
- Redirected to http://www.example-client.com/restricted
1219
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1220
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1221
- Processing by ExampleController#restricted as HTML
1222
- 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]]
1152
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1153
+  (0.0ms) begin transaction
1154
+  (0.0ms) commit transaction
1155
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1156
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1157
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1158
+ Processing by ExampleController#this_requires_signin_permission as HTML
1159
+ 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]]
1223
1160
  Rendering text template
1224
1161
  Rendered text template (0.0ms)
1225
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1226
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1162
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1163
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1227
1164
  Processing by ExampleController#restricted as HTML
1228
1165
  Authenticating with gds_sso strategy
1229
1166
  Completed in 0ms (ActiveRecord: 0.0ms)
1230
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1231
- Started GET "/auth/gds/callback?code=80e5e5b28eee67bab0781cf4c142b6780cc1b7880cf6d51136b354cd3fb5cf9f&state=7a704ce64594ad2f0d857d02e7e650ca49316059a861cec9" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1167
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1168
+ Started GET "/auth/gds/callback?code=9e024d663d4e126fe0efcef42a998d3622320a276f68a45206d12830bf0e672a&state=a8fd0f8c8e68bd570379f1a4b01d7623ab2351909ff554df" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1232
1169
  Processing by AuthenticationsController#callback as HTML
1233
- Parameters: {"code"=>"80e5e5b28eee67bab0781cf4c142b6780cc1b7880cf6d51136b354cd3fb5cf9f", "state"=>"7a704ce64594ad2f0d857d02e7e650ca49316059a861cec9"}
1170
+ Parameters: {"code"=>"9e024d663d4e126fe0efcef42a998d3622320a276f68a45206d12830bf0e672a", "state"=>"a8fd0f8c8e68bd570379f1a4b01d7623ab2351909ff554df"}
1234
1171
  Authenticating with gds_sso strategy
1235
1172
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1236
1173
   (0.1ms) begin transaction
1237
-  (0.1ms) commit transaction
1174
+  (0.0ms) commit transaction
1238
1175
  Redirected to http://www.example-client.com/restricted
1239
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1240
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1176
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1177
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1241
1178
  Processing by ExampleController#restricted as HTML
1242
- 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]]
1179
+ 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]]
1243
1180
  Rendering text template
1244
1181
  Rendered text template (0.0ms)
1245
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1246
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1247
- Processing by ExampleController#this_requires_signin_permission as HTML
1182
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1183
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1184
+ Processing by ExampleController#restricted as HTML
1248
1185
  Authenticating with gds_sso strategy
1249
1186
  Completed in 0ms (ActiveRecord: 0.0ms)
1250
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:09 +0000
1251
- Started GET "/auth/gds/callback?code=d67a4a1b558a511c1ad6b1f2c3812383c8cb3f0f0a26b57165027a34b7cabf66&state=015ab0b69b3f7d1ee20818ddfa8ac11a9531568e29cf0cde" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1187
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1188
+ Started GET "/auth/gds/callback?code=5da380fa34a938130d617e58efd3957e649d0037ffcd1ce227cb51c4b26323a1&state=9cc3658787270323d8530718f65c4ebfbcaca1798c7a476c" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1252
1189
  Processing by AuthenticationsController#callback as HTML
1253
- Parameters: {"code"=>"d67a4a1b558a511c1ad6b1f2c3812383c8cb3f0f0a26b57165027a34b7cabf66", "state"=>"015ab0b69b3f7d1ee20818ddfa8ac11a9531568e29cf0cde"}
1190
+ Parameters: {"code"=>"5da380fa34a938130d617e58efd3957e649d0037ffcd1ce227cb51c4b26323a1", "state"=>"9cc3658787270323d8530718f65c4ebfbcaca1798c7a476c"}
1254
1191
  Authenticating with gds_sso strategy
1255
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1256
-  (0.1ms) begin transaction
1257
-  (0.1ms) commit transaction
1258
- Redirected to http://www.example-client.com/this_requires_signin_permission
1259
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1260
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1261
- Processing by ExampleController#this_requires_signin_permission as HTML
1262
- User Load (0.4ms) 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]]
1192
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1193
+  (0.0ms) begin transaction
1194
+  (0.0ms) commit transaction
1195
+ Redirected to http://www.example-client.com/restricted
1196
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1197
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1198
+ Processing by ExampleController#restricted as HTML
1199
+ 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]]
1263
1200
  Rendering text template
1264
1201
  Rendered text template (0.0ms)
1265
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
1266
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1267
- Processing by ExampleController#this_requires_signin_permission as HTML
1202
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1203
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1204
+ Processing by ExampleController#restricted as HTML
1268
1205
  Authenticating with gds_sso strategy
1269
1206
  Completed in 0ms (ActiveRecord: 0.0ms)
1270
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1271
- Started GET "/auth/gds/callback?code=cdad962a36a08db481fe4fecede9f8cc1cad75e8b062efc1f2f9ca7d914cd492&state=7e5b155263da27fc8d73ea1f08761c51db8fb1548965f534" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1207
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:38 +0000
1208
+ Started GET "/auth/gds/callback?code=51f91f91e126226b6888a82e607b624f12287d0ceffff12520230a158cba6443&state=72d85768007e3b832e79cdaed442c38989085de218a284f7" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1272
1209
  Processing by AuthenticationsController#callback as HTML
1273
- Parameters: {"code"=>"cdad962a36a08db481fe4fecede9f8cc1cad75e8b062efc1f2f9ca7d914cd492", "state"=>"7e5b155263da27fc8d73ea1f08761c51db8fb1548965f534"}
1210
+ Parameters: {"code"=>"51f91f91e126226b6888a82e607b624f12287d0ceffff12520230a158cba6443", "state"=>"72d85768007e3b832e79cdaed442c38989085de218a284f7"}
1274
1211
  Authenticating with gds_sso strategy
1275
1212
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1276
1213
   (0.1ms) begin transaction
1277
-  (0.1ms) commit transaction
1278
- Redirected to http://www.example-client.com/this_requires_signin_permission
1279
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1280
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1281
- Processing by ExampleController#this_requires_signin_permission as HTML
1214
+  (0.0ms) commit transaction
1215
+ Redirected to http://www.example-client.com/restricted
1216
+ Completed 302 Found in 12ms (ActiveRecord: 0.4ms)
1217
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1218
+ Processing by ExampleController#restricted as HTML
1282
1219
  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]]
1283
1220
  Rendering text template
1284
1221
  Rendered text template (0.0ms)
1285
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1286
- Started GET "/" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1287
- Processing by ExampleController#index as HTML
1288
- Rendering text template
1289
- Rendered text template (0.0ms)
1290
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1291
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1222
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1223
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1292
1224
  Processing by ExampleController#restricted as HTML
1293
1225
  Authenticating with gds_sso strategy
1294
1226
  Completed in 0ms (ActiveRecord: 0.0ms)
1295
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1296
- Started GET "/auth/gds/callback?code=999e4432f7bc83f228510f96699d778c15f0c70804900a679decfecca294149b&state=8c12733cf664d98a06a6ff8733f940688ea9bdef5d6dfcbf" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1227
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1228
+ Started GET "/auth/gds/callback?code=9a6189e8017677683d460bde14d478d3128d7cb868e1274214addc5a54591d70&state=f1cf41a9c9c225d1c4365060aef27c16b9f3a31fbb7d013e" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1297
1229
  Processing by AuthenticationsController#callback as HTML
1298
- Parameters: {"code"=>"999e4432f7bc83f228510f96699d778c15f0c70804900a679decfecca294149b", "state"=>"8c12733cf664d98a06a6ff8733f940688ea9bdef5d6dfcbf"}
1230
+ Parameters: {"code"=>"9a6189e8017677683d460bde14d478d3128d7cb868e1274214addc5a54591d70", "state"=>"f1cf41a9c9c225d1c4365060aef27c16b9f3a31fbb7d013e"}
1299
1231
  Authenticating with gds_sso strategy
1300
1232
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1301
1233
   (0.1ms) begin transaction
1302
-  (0.1ms) commit transaction
1234
+  (0.0ms) commit transaction
1303
1235
  Redirected to http://www.example-client.com/restricted
1304
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1305
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1236
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1237
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1306
1238
  Processing by ExampleController#restricted as HTML
1307
1239
  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]]
1308
1240
  Rendering text template
1309
1241
  Rendered text template (0.0ms)
1310
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1242
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1311
1243
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "test@example-client.com"], ["LIMIT", 1]]
1312
1244
   (0.1ms) begin transaction
1313
- SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 12]]
1314
-  (16.3ms) commit transaction
1315
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1245
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 1]]
1246
+  (6.7ms) commit transaction
1247
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1316
1248
  Processing by ExampleController#restricted as HTML
1317
1249
  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]]
1318
1250
  Authenticating with gds_sso strategy
1319
- Completed in 2ms (ActiveRecord: 0.2ms)
1320
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1321
- Started GET "/auth/gds/callback?code=587251ab2106b620669466be04d27c6654c5e7c8d2b7c17bd1612e6f84b5edae&state=28d71131564fb6b03e614171919d5ba4d9301592c363a253" for 127.0.0.1 at 2016-12-20 12:14:10 +0000
1251
+ Completed in 1ms (ActiveRecord: 0.2ms)
1252
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1253
+ Started GET "/auth/gds/callback?code=008fa1e51096325347a010dc0b9173ed71bc78578812eb16023ff65ca565d160&state=5a941ec7b7ce02249b05c483396d86c0be0f83b37db4845e" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1322
1254
  Processing by AuthenticationsController#callback as HTML
1323
- Parameters: {"code"=>"587251ab2106b620669466be04d27c6654c5e7c8d2b7c17bd1612e6f84b5edae", "state"=>"28d71131564fb6b03e614171919d5ba4d9301592c363a253"}
1255
+ Parameters: {"code"=>"008fa1e51096325347a010dc0b9173ed71bc78578812eb16023ff65ca565d160", "state"=>"5a941ec7b7ce02249b05c483396d86c0be0f83b37db4845e"}
1324
1256
  Authenticating with gds_sso strategy
1325
1257
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1326
1258
   (0.1ms) begin transaction
1327
-  (0.1ms) commit transaction
1328
-  (0.1ms) begin transaction
1329
- SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 12]]
1330
-  (31.1ms) commit transaction
1259
+  (0.0ms) commit transaction
1260
+  (0.0ms) begin transaction
1261
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", false], ["id", 1]]
1262
+  (6.1ms) commit transaction
1331
1263
  Redirected to http://www.example-client.com/restricted
1332
- Completed 302 Found in 36ms (ActiveRecord: 31.7ms)
1333
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1264
+ Completed 302 Found in 10ms (ActiveRecord: 6.6ms)
1265
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1334
1266
  Processing by ExampleController#restricted as HTML
1335
- 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", false], ["LIMIT", 1]]
1267
+ 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]]
1336
1268
  Rendering text template
1337
1269
  Rendered text template (0.0ms)
1338
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1339
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1270
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1271
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1340
1272
  Processing by ExampleController#restricted as HTML
1341
1273
  Authenticating with gds_sso strategy
1342
1274
  Completed in 0ms (ActiveRecord: 0.0ms)
1343
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1344
- Started GET "/auth/gds/callback?code=cfc2685d922c20e75a7f1d20b934df05f23e946e3f15ecef516f23905acedb07&state=aea99e3314d693dbb15b849aab75622a8a02c6879af64e94" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1275
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1276
+ Started GET "/auth/gds/callback?code=43953dc90e00a7712727361f7bfc46ace1c8511441f35219ad4d043a92cd3024&state=d695a2cb76cbc644cf5eb3ac2fbdc9992522029d089f52c3" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1345
1277
  Processing by AuthenticationsController#callback as HTML
1346
- Parameters: {"code"=>"cfc2685d922c20e75a7f1d20b934df05f23e946e3f15ecef516f23905acedb07", "state"=>"aea99e3314d693dbb15b849aab75622a8a02c6879af64e94"}
1278
+ Parameters: {"code"=>"43953dc90e00a7712727361f7bfc46ace1c8511441f35219ad4d043a92cd3024", "state"=>"d695a2cb76cbc644cf5eb3ac2fbdc9992522029d089f52c3"}
1347
1279
  Authenticating with gds_sso strategy
1348
1280
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1349
1281
   (0.1ms) begin transaction
1350
-  (0.1ms) commit transaction
1282
+  (0.0ms) commit transaction
1351
1283
  Redirected to http://www.example-client.com/restricted
1352
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1353
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1284
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1285
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1354
1286
  Processing by ExampleController#restricted as HTML
1355
- 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", false], ["LIMIT", 1]]
1287
+ 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]]
1356
1288
  Rendering text template
1357
1289
  Rendered text template (0.0ms)
1358
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1359
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1290
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1291
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:49:39 +0000
1360
1292
  Processing by ExampleController#restricted as HTML
1361
- Authenticating with gds_sso strategy
1362
- Completed in 1ms (ActiveRecord: 0.0ms)
1363
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1364
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1293
+ 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]]
1294
+ Rendering text template
1295
+ Rendered text template (0.0ms)
1296
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1297
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1365
1298
  Processing by ExampleController#restricted as HTML
1366
1299
  Authenticating with gds_sso strategy
1367
1300
  Completed in 0ms (ActiveRecord: 0.0ms)
1368
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1369
- Started GET "/auth/gds/callback?code=cc8e3d9ba9293b955555a89768762ce042047954203cc212ff0c40084773b2a3&state=ea6a2412469dde362d03b75a0c8564f429102b049922442c" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1301
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:39 +0000
1302
+ Started GET "/auth/gds/callback?code=aeeab323e3d4d8011dd31aca5e2b32143bdfd898fcfad56a9e4df3f9465db7c0&state=5c4b8ab4e726e80f1b700cdbd1768438ccc150be36d51a32" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1370
1303
  Processing by AuthenticationsController#callback as HTML
1371
- Parameters: {"code"=>"cc8e3d9ba9293b955555a89768762ce042047954203cc212ff0c40084773b2a3", "state"=>"ea6a2412469dde362d03b75a0c8564f429102b049922442c"}
1304
+ Parameters: {"code"=>"aeeab323e3d4d8011dd31aca5e2b32143bdfd898fcfad56a9e4df3f9465db7c0", "state"=>"5c4b8ab4e726e80f1b700cdbd1768438ccc150be36d51a32"}
1372
1305
  Authenticating with gds_sso strategy
1373
1306
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1374
1307
   (0.1ms) begin transaction
1375
-  (0.1ms) commit transaction
1308
+  (0.0ms) commit transaction
1376
1309
  Redirected to http://www.example-client.com/restricted
1377
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1378
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1310
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1311
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1379
1312
  Processing by ExampleController#restricted as HTML
1380
1313
  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]]
1381
1314
  Rendering text template
1382
1315
  Rendered text template (0.0ms)
1383
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1384
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1316
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1317
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:40 +0000
1385
1318
  Processing by ExampleController#restricted as HTML
1386
1319
  Authenticating with gds_sso strategy
1387
- Completed in 1ms (ActiveRecord: 0.0ms)
1388
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1389
- Started GET "/auth/gds/callback?code=265d8668574607c86d4d00412135ca852843df7d4f2d7763a0ab34cb035e7ec1&state=2cb9733c5a52d5b5baca3dc7d994508d94e68134fce016e0" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1320
+ Completed in 0ms (ActiveRecord: 0.0ms)
1321
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-07 04:59:40 +0000
1322
+ Started GET "/auth/gds/callback?code=195a60f98c7e909540fa553fb292157036e9468265b565a2338c4f64068720bf&state=1f5d2c2bd81354a423d8f1b1edeeb6d3415bbdccb6c94148" for 127.0.0.1 at 2017-12-07 04:59:40 +0000
1390
1323
  Processing by AuthenticationsController#callback as HTML
1391
- Parameters: {"code"=>"265d8668574607c86d4d00412135ca852843df7d4f2d7763a0ab34cb035e7ec1", "state"=>"2cb9733c5a52d5b5baca3dc7d994508d94e68134fce016e0"}
1324
+ Parameters: {"code"=>"195a60f98c7e909540fa553fb292157036e9468265b565a2338c4f64068720bf", "state"=>"1f5d2c2bd81354a423d8f1b1edeeb6d3415bbdccb6c94148"}
1392
1325
  Authenticating with gds_sso strategy
1393
1326
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1394
1327
   (0.1ms) begin transaction
1395
1328
   (0.1ms) commit transaction
1396
1329
  Redirected to http://www.example-client.com/restricted
1397
- Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1398
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:19:11 +0000
1330
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1331
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:40 +0000
1399
1332
  Processing by ExampleController#restricted as HTML
1400
- 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", false], ["LIMIT", 1]]
1333
+ 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]]
1401
1334
  Rendering text template
1402
1335
  Rendered text template (0.0ms)
1403
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1404
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1336
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
1337
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1405
1338
  Processing by ExampleController#restricted as HTML
1406
1339
  Authenticating with gds_sso strategy
1407
1340
  Completed in 0ms (ActiveRecord: 0.0ms)
1408
- Started GET "/auth/gds" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1409
- Started GET "/auth/gds/callback?code=31e8519894ba3863039ba3f1e53d8fc6af605386299e4dd3df858f748027c413&state=0d3dfd7f5d02df402964f955d6e1556024c3c1a61076779d" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1341
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1342
+ Started GET "/auth/gds/callback?code=23eb8a2ba9db5b905a5c0ccec25844c9c687e1d1e86af9cb91d866649e0112b2&state=e247c4ea9bd7ccd53705a58425f2496de072e658291be9ce" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1410
1343
  Processing by AuthenticationsController#callback as HTML
1411
- Parameters: {"code"=>"31e8519894ba3863039ba3f1e53d8fc6af605386299e4dd3df858f748027c413", "state"=>"0d3dfd7f5d02df402964f955d6e1556024c3c1a61076779d"}
1344
+ Parameters: {"code"=>"23eb8a2ba9db5b905a5c0ccec25844c9c687e1d1e86af9cb91d866649e0112b2", "state"=>"e247c4ea9bd7ccd53705a58425f2496de072e658291be9ce"}
1412
1345
  Authenticating with gds_sso strategy
1413
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1346
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1414
1347
   (0.1ms) begin transaction
1415
-  (0.1ms) commit transaction
1348
+  (0.0ms) commit transaction
1416
1349
  Redirected to http://www.example-client.com/restricted
1417
- Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
1418
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1350
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
1351
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1419
1352
  Processing by ExampleController#restricted as HTML
1420
- 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]]
1353
+ 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]]
1421
1354
  Rendering text template
1422
1355
  Rendered text template (0.0ms)
1423
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1424
- Started GET "/restricted" for 127.0.0.1 at 2016-12-21 08:09:11 +0000
1356
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1357
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-07 04:59:40 +0000
1425
1358
  Processing by ExampleController#restricted as HTML
1426
- 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", false], ["LIMIT", 1]]
1427
- Rendering text template
1428
- Rendered text template (0.0ms)
1429
- Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1430
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:11 +0000
1359
+ Authenticating with gds_sso strategy
1360
+ Completed in 1ms (ActiveRecord: 0.0ms)
1361
+ Started GET "/auth/gds" for 127.0.0.1 at 2017-12-07 04:59:40 +0000
1362
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1431
1363
  Processing by ExampleController#restricted as JSON
1432
- Completed in 20ms (ActiveRecord: 0.0ms)
1433
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2016-12-20 12:14:12 +0000
1364
+ Completed in 27ms (ActiveRecord: 0.0ms)
1365
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1434
1366
  Processing by ExampleController#this_requires_signin_permission as JSON
1435
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1436
-  (0.1ms) begin transaction
1437
- SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 12]]
1438
-  (14.7ms) commit transaction
1439
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1367
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1440
1368
   (0.1ms) begin transaction
1441
-  (0.1ms) commit transaction
1369
+ SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]
1370
+  (5.4ms) commit transaction
1371
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1372
+  (0.0ms) begin transaction
1373
+  (0.0ms) commit transaction
1442
1374
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1443
-  (0.1ms) begin transaction
1444
-  (0.1ms) commit transaction
1375
+  (0.0ms) begin transaction
1376
+  (0.0ms) commit transaction
1445
1377
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1446
-  (0.1ms) begin transaction
1447
-  (0.1ms) commit transaction
1378
+  (0.0ms) begin transaction
1379
+  (0.0ms) commit transaction
1448
1380
  Rendering text template
1449
1381
  Rendered text template (0.0ms)
1450
- Completed 200 OK in 95ms (Views: 0.4ms | ActiveRecord: 16.0ms)
1451
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:12 +0000
1382
+ Completed 200 OK in 74ms (Views: 0.3ms | ActiveRecord: 6.3ms)
1383
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1452
1384
  Processing by ExampleController#restricted as JSON
1453
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1454
-  (0.1ms) begin transaction
1455
-  (0.1ms) commit transaction
1385
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1386
+  (0.0ms) begin transaction
1387
+  (0.0ms) commit transaction
1456
1388
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1457
-  (0.1ms) begin transaction
1458
-  (0.1ms) commit transaction
1389
+  (0.0ms) begin transaction
1390
+  (0.0ms) commit transaction
1459
1391
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1460
-  (0.1ms) begin transaction
1461
-  (0.1ms) commit transaction
1392
+  (0.0ms) begin transaction
1393
+  (0.0ms) commit transaction
1462
1394
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "integration-uid"], ["LIMIT", 1]]
1463
-  (0.1ms) begin transaction
1464
-  (0.1ms) commit transaction
1395
+  (0.0ms) begin transaction
1396
+  (0.0ms) commit transaction
1465
1397
  Rendering text template
1466
1398
  Rendered text template (0.0ms)
1467
- Completed 200 OK in 91ms (Views: 0.5ms | ActiveRecord: 1.0ms)
1468
- Started GET "/restricted" for 127.0.0.1 at 2016-12-20 12:14:12 +0000
1399
+ Completed 200 OK in 69ms (Views: 0.3ms | ActiveRecord: 0.6ms)
1400
+ Started GET "/restricted" for 127.0.0.1 at 2017-12-06 08:54:40 +0000
1469
1401
  Processing by ExampleController#restricted as JSON
1470
- Completed in 21ms (ActiveRecord: 0.0ms)
1402
+ Completed in 13ms (ActiveRecord: 0.0ms)
1403
+  (0.1ms) begin transaction
1404
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d33464"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1405
+  (4.3ms) commit transaction
1406
+  (0.0ms) begin transaction
1407
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d3490"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1408
+  (6.6ms) commit transaction
1409
+ Processing by Api::UserController#update as HTML
1410
+ Parameters: {"uid"=>"a1s2d33464"}
1411
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d33464"], ["LIMIT", 1]]
1412
+  (0.1ms) begin transaction
1413
+ 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]]
1414
+  (5.5ms) commit transaction
1415
+ Completed 200 OK in 10ms (ActiveRecord: 5.9ms)
1416
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
1417
+  (0.0ms) begin transaction
1418
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37396"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1419
+  (6.0ms) commit transaction
1420
+  (0.0ms) begin transaction
1421
+ SQL (0.3ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d38255"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1422
+  (4.6ms) commit transaction
1423
+ Processing by Api::UserController#update as HTML
1424
+ Parameters: {"uid"=>"a1s2d37396"}
1425
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1426
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
1427
+ Completed 403 Forbidden in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
1428
+  (0.1ms) begin transaction
1429
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d31760"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1430
+  (4.9ms) commit transaction
1431
+  (0.1ms) begin transaction
1432
+ SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d34524"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1433
+  (3.8ms) commit transaction
1434
+ Processing by Api::UserController#reauth as HTML
1435
+ Parameters: {"uid"=>"a1s2d31760"}
1436
+ Rendering /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised
1437
+ Rendered /var/lib/jenkins/workspace/gds-sso_master-7MNGHJETCC7W4ACW54GEWCZ7RU2E7EW7NZYEBGCKG2QG3YLPM53Q/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.0ms)
1438
+ Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1439
+  (0.1ms) begin transaction
1440
+ SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d32935"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1441
+  (4.0ms) commit transaction
1442
+  (0.0ms) begin transaction
1443
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d36056"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1444
+  (5.0ms) commit transaction
1445
+ Processing by Api::UserController#reauth as HTML
1446
+ Parameters: {"uid"=>"nonexistent-user"}
1447
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "nonexistent-user"], ["LIMIT", 1]]
1448
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1449
+  (0.0ms) begin transaction
1450
+ SQL (0.1ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "Moshua Jarshall"], ["uid", "a1s2d37028"], ["email", "old@domain.com"], ["permissions", "---\n- signin\n"]]
1451
+  (5.0ms) commit transaction
1452
+  (0.0ms) begin transaction
1453
+ SQL (0.2ms) INSERT INTO "users" ("name", "uid", "email", "permissions") VALUES (?, ?, ?, ?) [["name", "SSO Push user"], ["uid", "a1s2d33244"], ["email", "ssopushuser@legit.com"], ["permissions", "---\n- signin\n- user_update_permission\n"]]
1454
+  (5.3ms) commit transaction
1455
+ Processing by Api::UserController#reauth as HTML
1456
+ Parameters: {"uid"=>"a1s2d37028"}
1457
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "a1s2d37028"], ["LIMIT", 1]]
1458
+  (0.0ms) begin transaction
1459
+ SQL (0.1ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", true], ["id", 10]]
1460
+  (5.2ms) commit transaction
1461
+ Completed 200 OK in 8ms (ActiveRecord: 5.5ms)
1462
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 10], ["LIMIT", 1]]
1463
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1464
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ? [["email", "user@example.com"], ["LIMIT", 1]]
1465
+  (0.2ms) begin transaction
1466
+ 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]]
1467
+  (6.2ms) commit transaction
1468
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT ? [["uid", "asd"], ["LIMIT", 1]]
1469
+  (0.0ms) begin transaction
1470
+  (0.0ms) commit transaction