Connecting to database specified by database.yml Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:01 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 5.9ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:01 +0000 Started GET "/auth/gds/callback?code=fb7d24542eba6c2768ad3b8094d86a6a0fa78f4863a20cfeb4fb6390b1e0747f&state=c0b3593a3942a0a787bf29e6e3cf76ccd1413cabd9937fe7" for 127.0.0.1 at 2015-12-08 16:11:11 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"fb7d24542eba6c2768ad3b8094d86a6a0fa78f4863a20cfeb4fb6390b1e0747f", "state"=>"c0b3593a3942a0a787bf29e6e3cf76ccd1413cabd9937fe7"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (37.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 1  (35.2ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 98.2ms (ActiveRecord: 74.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:11 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 68.1ms (Views: 65.3ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:11 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:11 +0000 Started GET "/auth/gds/callback?code=8cb55ab34023452626a0642a194da0550120e249719f428ded481e8bdf67d9c9&state=005478ce5bab7d4cda57c05ceb848f76ef8d63d5030e8df2" for 127.0.0.1 at 2015-12-08 16:11:11 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8cb55ab34023452626a0642a194da0550120e249719f428ded481e8bdf67d9c9", "state"=>"005478ce5bab7d4cda57c05ceb848f76ef8d63d5030e8df2"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (28.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (22.9ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 57.4ms (ActiveRecord: 52.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:11 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:11 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.7ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:11 +0000 Started GET "/auth/gds/callback?code=aecee73aaf0171177354f50795524a4b50da082f53c35ef3bf72f73e5eec3dd2&state=f1d99449e2eafb1114074be6c8a9e05bdffa79243d3570cc" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"aecee73aaf0171177354f50795524a4b50da082f53c35ef3bf72f73e5eec3dd2", "state"=>"f1d99449e2eafb1114074be6c8a9e05bdffa79243d3570cc"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (63.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (85.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 155.3ms (ActiveRecord: 149.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.3ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Started GET "/auth/gds/callback?code=82a521597d32c89bf629d8572caf3095c49ce9cb4d4815a21640d2a2e5ba3462&state=55a571269f68b733db6da1c6d6e6531c7da257113646146e" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"82a521597d32c89bf629d8572caf3095c49ce9cb4d4815a21640d2a2e5ba3462", "state"=>"55a571269f68b733db6da1c6d6e6531c7da257113646146e"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (27.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (31.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 64.7ms (ActiveRecord: 58.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Started GET "/auth/gds/callback?code=c9ce716e2ad1d6dfab465e63621d067bd0275a75e1824dc30c2cb34d799d2347&state=10f1f402f595a7a0ce33acf10af1adeede1fc10ed16b5d2a" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c9ce716e2ad1d6dfab465e63621d067bd0275a75e1824dc30c2cb34d799d2347", "state"=>"10f1f402f595a7a0ce33acf10af1adeede1fc10ed16b5d2a"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (32.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (28.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 66.8ms (ActiveRecord: 61.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 0.8ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:12 +0000 Started GET "/auth/gds/callback?code=172238d7f74fcefd9cbba1801ba319caf22e43920af4fe5c05eb9f352f901f98&state=1efa03a00f3be51a2b930901598c8bad6756d861158fae90" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"172238d7f74fcefd9cbba1801ba319caf22e43920af4fe5c05eb9f352f901f98", "state"=>"1efa03a00f3be51a2b930901598c8bad6756d861158fae90"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (32.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (29.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 69.0ms (ActiveRecord: 63.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.9ms (Views: 0.5ms | ActiveRecord: 0.2ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 1  (16.0ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Authenticating with gds_sso strategy Completed in 1.0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Started GET "/auth/gds/callback?code=55db4a416e09be9c89c21a316e007374daaa3175e3efb8560d5dc3b9bf1b6d4b&state=1de857bde41ba4417c25af1bcde5363a91494bd3278061e2" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"55db4a416e09be9c89c21a316e007374daaa3175e3efb8560d5dc3b9bf1b6d4b", "state"=>"1de857bde41ba4417c25af1bcde5363a91494bd3278061e2"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (45.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 1  (52.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 103.8ms (ActiveRecord: 98.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.3ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Started GET "/auth/gds/callback?code=c2d149f66959aa1ade15216038e74e60226bf4a0647243a09017a9d0334ec69d&state=c39ca531d73cdfd586eaff30320a2546e217bc2160734930" for 127.0.0.1 at 2015-12-08 16:11:13 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c2d149f66959aa1ade15216038e74e60226bf4a0647243a09017a9d0334ec69d", "state"=>"c39ca531d73cdfd586eaff30320a2546e217bc2160734930"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (36.5ms) commit transaction  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (27.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 70.6ms (ActiveRecord: 64.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:14 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:16:14 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.3ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:16:14 +0000 Started GET "/auth/gds/callback?code=a496b331ed48d6e9e2e1ce6ddb58aa2709734df8a5d0f0259ca57736173fa6d2&state=3e515b6a61f19d929537963d7c07354bdaeef3d4608c3119" for 127.0.0.1 at 2015-12-09 12:16:14 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a496b331ed48d6e9e2e1ce6ddb58aa2709734df8a5d0f0259ca57736173fa6d2", "state"=>"3e515b6a61f19d929537963d7c07354bdaeef3d4608c3119"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (13.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (45.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 64.4ms (ActiveRecord: 59.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:16:14 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:14 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:14 +0000 Started GET "/auth/gds/callback?code=048b1cab421b1c7f5788e4017b22c8eed3e941c306dcd22be3c43bad2d8abb1c&state=667ac581745fc9d02806c89ed1a3714c8b34524873b1a66c" for 127.0.0.1 at 2015-12-08 16:11:14 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"048b1cab421b1c7f5788e4017b22c8eed3e941c306dcd22be3c43bad2d8abb1c", "state"=>"667ac581745fc9d02806c89ed1a3714c8b34524873b1a66c"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (134.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (67.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 208.9ms (ActiveRecord: 202.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:14 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:06:14 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:14 +0000 Processing by ExampleController#restricted as JSON Completed in 57.2ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:14 +0000 Processing by ExampleController#restricted as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "disabled" = NULL, "permissions" = '--- - signin ' WHERE "users"."id" = 1  (57.4ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (48.2ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (25.1ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (29.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (20.6ms) commit transaction Completed 200 OK in 256.6ms (Views: 0.5ms | ActiveRecord: 182.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:15 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (28.4ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (24.3ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (33.4ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (18.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (18.7ms) commit transaction Completed 200 OK in 206.6ms (Views: 0.5ms | ActiveRecord: 125.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:15 +0000 Processing by ExampleController#restricted as JSON Completed in 18.2ms  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34030"]]  (19.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38463"]]  (27.3ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d34030"} Completed 403 Forbidden in 3.5ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34214"]]  (26.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38233"]]  (27.2ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d34214"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34214' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ', "organisation_slug" = 'justice-league', "organisation_content_id" = 'aae1319e-5788-4677-998c-f1a53af528d0' WHERE "users"."id" = 4  (27.8ms) commit transaction Completed 200 OK in 32.0ms (ActiveRecord: 28.4ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37684"]]  (29.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34841"]]  (16.8ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d37684"} Completed 403 Forbidden in 35.7ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31390"]]  (23.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32646"]]  (33.4ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1 Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32303"]]  (26.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35569"]]  (23.2ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32303"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32303' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 10  (44.1ms) commit transaction Completed 200 OK in 47.3ms (ActiveRecord: 44.5ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39559"]]  (19.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d37664"]]  (22.6ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d39559"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms) Completed 403 Forbidden in 44ms (Views: 42.8ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35897"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d37283"]]  (16.6ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 5ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38077"]]  (14.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31678"]]  (22.0ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d38077"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38077' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 5 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]  (21.7ms) commit transaction Completed 200 OK in 26ms (ActiveRecord: 22.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31810"]]  (23.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35007"]]  (25.0ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d31810"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31810' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = 7 [["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"]]  (28.9ms) commit transaction Completed 200 OK in 33ms (ActiveRecord: 29.4ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36354"]]  (29.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31320"]]  (38.0ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d36354"} Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:39 +0000 Processing by ExampleController#restricted as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "permissions", "uid") VALUES (?, ?, ?, ?, ?) [["disabled", nil], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]  (17.5ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (13.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (13.1ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (22.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]  (11.1ms) commit transaction Completed 200 OK in 473ms (Views: 2.8ms | ActiveRecord: 80.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:39 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (17.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (17.5ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.2ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (10.4ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (14.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (10.5ms) commit transaction Completed 200 OK in 151ms (Views: 0.5ms | ActiveRecord: 72.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:39 +0000 Processing by ExampleController#restricted as JSON Completed in 18ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:39 +0000 Processing by ExampleController#restricted as JSON Completed in 30ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:39 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:39 +0000 Started GET "/auth/gds/callback?code=6cb50709edeb4789914d29e448589e0fe4b6eae5b6c9f6a74dfbeec7f6d029f8&state=69eb79bcad6b8d7a4b048d9660a1c71c8da015ea1852b3b6" for 127.0.0.1 at 2015-12-08 16:11:49 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6cb50709edeb4789914d29e448589e0fe4b6eae5b6c9f6a74dfbeec7f6d029f8", "state"=>"69eb79bcad6b8d7a4b048d9660a1c71c8da015ea1852b3b6"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", false], ["permissions", "---\n- signin\n"]]  (31.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (32.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 71ms (ActiveRecord: 64.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:49 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:49 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:49 +0000 Started GET "/auth/gds/callback?code=b688194008b4186f440ed13b6c359f6dede4335fdc51e6d50ab71a9861c563fd&state=2df7f3315ca74a1c25ac95d11eb93f80894fbb02f816d26a" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b688194008b4186f440ed13b6c359f6dede4335fdc51e6d50ab71a9861c563fd", "state"=>"2df7f3315ca74a1c25ac95d11eb93f80894fbb02f816d26a"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (9.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 26ms (ActiveRecord: 20.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Started GET "/auth/gds/callback?code=d573f26a23f511b0e7a58fe83d9fc26919ccaa918d27ed2bc59fa933d3f52f62&state=3cc2065fd90a9963edf42d5a94f0d970757e3540cade2d59" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d573f26a23f511b0e7a58fe83d9fc26919ccaa918d27ed2bc59fa933d3f52f62", "state"=>"3cc2065fd90a9963edf42d5a94f0d970757e3540cade2d59"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (15.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (18.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 40ms (ActiveRecord: 35.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Started GET "/auth/gds/callback?code=d5299497166cd5771bc080642738e2c27b4b4616de3b7e24b7183c042781ed18&state=89d36b381221b8902c905d45574b8527a27d72a50bec5f9b" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d5299497166cd5771bc080642738e2c27b4b4616de3b7e24b7183c042781ed18", "state"=>"89d36b381221b8902c905d45574b8527a27d72a50bec5f9b"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (15.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (11.1ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 33ms (ActiveRecord: 27.6ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Started GET "/auth/gds/callback?code=da45e9de80bf77c82498d8b8a146ef5ee26317f99ceb927d5deccb09600211f2&state=b89cfd7d20023820f4668fd55a4fc0c3bd71dd3e0144fde3" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"da45e9de80bf77c82498d8b8a146ef5ee26317f99ceb927d5deccb09600211f2", "state"=>"b89cfd7d20023820f4668fd55a4fc0c3bd71dd3e0144fde3"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (12.5ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 29ms (ActiveRecord: 24.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:11:50 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Started GET "/auth/gds/callback?code=713aa326abad27f7d5684787d51ce84fe497167e8675ba87578b8e98e773c359&state=d247283838ae25fcc06fb6562d79e28c5d33f4e7470b428c" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"713aa326abad27f7d5684787d51ce84fe497167e8675ba87578b8e98e773c359", "state"=>"d247283838ae25fcc06fb6562d79e28c5d33f4e7470b428c"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (26.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (14.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 47ms (ActiveRecord: 41.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:06:51 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Started GET "/auth/gds/callback?code=8f324d2efc1a6c91dbd33e35bce1523e18bef5b1b965846e1e12b28cd3f455ed&state=8934fa36bfd695bcbb42f44dcfa9cc818aba423a286be46f" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8f324d2efc1a6c91dbd33e35bce1523e18bef5b1b965846e1e12b28cd3f455ed", "state"=>"8934fa36bfd695bcbb42f44dcfa9cc818aba423a286be46f"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (15.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (9.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 31ms (ActiveRecord: 24.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:16:51 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:16:51 +0000 Started GET "/auth/gds/callback?code=4b966f356a1be3132c48f8c176447658c3cd6974cc6b549826ecd04ff2089c3b&state=04e8d7fa5cba973c85a4370585650a4c25a0e8842bb5bae7" for 127.0.0.1 at 2015-12-09 12:16:51 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"4b966f356a1be3132c48f8c176447658c3cd6974cc6b549826ecd04ff2089c3b", "state"=>"04e8d7fa5cba973c85a4370585650a4c25a0e8842bb5bae7"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (7.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (10.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 23ms (ActiveRecord: 17.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:16:51 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Started GET "/auth/gds/callback?code=21144be0eaac10d20c519a81d6aa0739543f8fe7a656cf1a90c19931beb17586&state=0b5a69ab4ae6c1647f0ecdd629d8ebbd87a165da7f74c2be" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"21144be0eaac10d20c519a81d6aa0739543f8fe7a656cf1a90c19931beb17586", "state"=>"0b5a69ab4ae6c1647f0ecdd629d8ebbd87a165da7f74c2be"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (12.2ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (11.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 33ms (ActiveRecord: 24.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:51 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]  (6.2ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:52 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Authenticating with gds_sso strategy Completed in 2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:11:52 +0000 Started GET "/auth/gds/callback?code=6a6666eb9953638e22e5d40d6ea77fe8220238d5dd50f1e974006e72db86df81&state=a88fc383f52bc62054e5614d5fa18952b3d0cdf52fca6ea5" for 127.0.0.1 at 2015-12-08 16:11:52 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6a6666eb9953638e22e5d40d6ea77fe8220238d5dd50f1e974006e72db86df81", "state"=>"a88fc383f52bc62054e5614d5fa18952b3d0cdf52fca6ea5"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (8.7ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]  (15.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 31ms (ActiveRecord: 25.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:11:52 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d342"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32439"]]  (11.1ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d342"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms) Completed 403 Forbidden in 43ms (Views: 42.6ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36668"]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31757"]]  (8.3ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d36668"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36668' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_content_id" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 3 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]  (10.8ms) commit transaction Completed 200 OK in 27ms (ActiveRecord: 11.4ms) User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35193"]]  (10.8ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31123"]]  (6.9ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d35193"} Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d34370"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35075"]]  (13.3ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (ActiveRecord: 0.3ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35605"]]  (13.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31685"]]  (10.4ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d35605"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35605' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 9 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]  (8.7ms) commit transaction Completed 200 OK in 12ms (ActiveRecord: 9.2ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]] Started GET "/" for 127.0.0.1 at 2015-12-08 16:12:15 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:16 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 60ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:16 +0000 Started GET "/auth/gds/callback?code=2498b1bf5f1d72db57bfb78bf31ce86f9b8bb0a6d94e0f9c62b9d804bba2dd8e&state=ff73800a94118551a7af0dadea3162dd852a7aff68320b48" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"2498b1bf5f1d72db57bfb78bf31ce86f9b8bb0a6d94e0f9c62b9d804bba2dd8e", "state"=>"ff73800a94118551a7af0dadea3162dd852a7aff68320b48"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]  (24.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]  (13.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 46ms (ActiveRecord: 38.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Started GET "/auth/gds/callback?code=53871055bb928662989930f060739889021cbbb6e6c1943c9e09661e6362fff2&state=0b80b029da8c0d8c931c8f838703686d86b5a295b103a2b7" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"53871055bb928662989930f060739889021cbbb6e6c1943c9e09661e6362fff2", "state"=>"0b80b029da8c0d8c931c8f838703686d86b5a295b103a2b7"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (13.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 30ms (ActiveRecord: 24.9ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Started GET "/auth/gds/callback?code=d35cfb6c5c15935131a6128cad052b32159c4ad45a8c3920b2fdb4128f327be3&state=ed4099d34b3b35c3391a83ea4aba91e75d342423594de4fd" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d35cfb6c5c15935131a6128cad052b32159c4ad45a8c3920b2fdb4128f327be3", "state"=>"ed4099d34b3b35c3391a83ea4aba91e75d342423594de4fd"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (8.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 24ms (ActiveRecord: 18.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:12:26 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Started GET "/auth/gds/callback?code=accc451776d5f95ab9a584649d93372972fce502b51282523df8e69b3e932fa4&state=7d81439617dc7bcb24541bb1474d72c4967871ab75ccb5e9" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"accc451776d5f95ab9a584649d93372972fce502b51282523df8e69b3e932fa4", "state"=>"7d81439617dc7bcb24541bb1474d72c4967871ab75ccb5e9"} Authenticating with gds_sso strategy User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (19.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (28.2ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 55ms (ActiveRecord: 48.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Started GET "/auth/gds/callback?code=0aeeeaac426158614be255cd1e94a7bbcc31d03a2f454b1a3502f56944b4c291&state=987759a26e437aaa33d8d68af6bd3b36dba27f29648151de" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"0aeeeaac426158614be255cd1e94a7bbcc31d03a2f454b1a3502f56944b4c291", "state"=>"987759a26e437aaa33d8d68af6bd3b36dba27f29648151de"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (47.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (90.3ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 145ms (ActiveRecord: 139.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Started GET "/auth/gds/callback?code=ab0df3dd44b642afd800f7ff59b1fe96035217555c5e6d1848d765f0db5640fa&state=884d6b40b4722754dfca6f6784853f086edbfaf869655383" for 127.0.0.1 at 2015-12-08 16:12:27 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ab0df3dd44b642afd800f7ff59b1fe96035217555c5e6d1848d765f0db5640fa", "state"=>"884d6b40b4722754dfca6f6784853f086edbfaf869655383"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (206.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 223ms (ActiveRecord: 217.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]  (24.9ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Started GET "/auth/gds/callback?code=b87b4b66f2f3fbf58aadb8c9128a001d5d78760c4c870c1d1ee81a9fb0893142&state=900dd93bb399419978f0aa05e391b1938713833178b5af49" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b87b4b66f2f3fbf58aadb8c9128a001d5d78760c4c870c1d1ee81a9fb0893142", "state"=>"900dd93bb399419978f0aa05e391b1938713833178b5af49"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (7.8ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]  (16.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 31ms (ActiveRecord: 25.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Started GET "/auth/gds/callback?code=aa2b4ba5e17ec344ce1cadde5c3ded44ba2b8b01625effa3e9634eda6fe2c5cd&state=0abe29fbfb4be8f9d1ace3583b7b9046a7178939154adf19" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"aa2b4ba5e17ec344ce1cadde5c3ded44ba2b8b01625effa3e9634eda6fe2c5cd", "state"=>"0abe29fbfb4be8f9d1ace3583b7b9046a7178939154adf19"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (14.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 34ms (ActiveRecord: 28.9ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:17:28 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:17:28 +0000 Started GET "/auth/gds/callback?code=b72c9e6954b70d6d80543f7715f4eb42e50b86f7d41418fb3002c034589933da&state=e8575d83dc7859d9b6a3ffb052013bdd902633bfbfd2b8eb" for 127.0.0.1 at 2015-12-09 12:17:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b72c9e6954b70d6d80543f7715f4eb42e50b86f7d41418fb3002c034589933da", "state"=>"e8575d83dc7859d9b6a3ffb052013bdd902633bfbfd2b8eb"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (15.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (12.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 33ms (ActiveRecord: 28.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:17:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:29 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:29 +0000 Started GET "/auth/gds/callback?code=963f9861774523e41749f3004ee200d4fac179da90199911a110fe596d390918&state=2421d607fa08ca6dd932c6dfcf3681ad2a200f0ef369886c" for 127.0.0.1 at 2015-12-08 16:12:29 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"963f9861774523e41749f3004ee200d4fac179da90199911a110fe596d390918", "state"=>"2421d607fa08ca6dd932c6dfcf3681ad2a200f0ef369886c"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (16.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 33ms (ActiveRecord: 26.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 40ms (Views: 0.5ms | ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:07:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:29 +0000 Processing by ExampleController#restricted as JSON Completed in 24ms Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:12:29 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", nil], ["permissions", "---\n- signin\n"]]  (14.7ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (11.6ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (15.4ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (34.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (15.0ms) commit transaction Completed 200 OK in 167ms (Views: 0.5ms | ActiveRecord: 93.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:29 +0000 Processing by ExampleController#restricted as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (15.1ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (17.9ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (23.4ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (19.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (21.1ms) commit transaction Completed 200 OK in 172ms (Views: 0.6ms | ActiveRecord: 99.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:29 +0000 Processing by ExampleController#restricted as JSON Completed in 25ms  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38336"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (22.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36927"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (18.2ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d38336"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d38336"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]  (38.8ms) commit transaction Completed 200 OK in 88ms (ActiveRecord: 39.6ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38085"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (25.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31001"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (24.3ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d38085"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms) Completed 403 Forbidden in 46ms (Views: 45.7ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32190"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37368"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (10.1ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]] Completed 200 OK in 2ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d32687"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (20.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d38238"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (10.1ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d32687"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d32687"]]  (0.2ms) begin transaction 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]]  (11.9ms) commit transaction Completed 200 OK in 18ms (ActiveRecord: 12.5ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33399"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (28.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37151"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (10.1ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d33399"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms) Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:12:53 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]  (0.1ms) begin transaction 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]]  (14.6ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]  (16.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 434ms (Views: 3.1ms | ActiveRecord: 32.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:54 +0000 Processing by ExampleController#restricted as JSON Completed in 33ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:54 +0000 Processing by ExampleController#restricted as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 71ms (Views: 0.6ms | ActiveRecord: 1.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:54 +0000 Processing by ExampleController#restricted as JSON Completed in 19ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:12:54 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:12:54 +0000 Started GET "/auth/gds/callback?code=f03a5635831dcc3a0e3c2120181ff413de3887842d1e5924ae6d27b0387d5037&state=1cab271d037b0c9e4fb284c5a83b3c953c717d8f68a0793a" for 127.0.0.1 at 2015-12-08 16:13:04 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f03a5635831dcc3a0e3c2120181ff413de3887842d1e5924ae6d27b0387d5037", "state"=>"1cab271d037b0c9e4fb284c5a83b3c953c717d8f68a0793a"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", "f"], ["id", 11]]  (14.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 23ms (ActiveRecord: 14.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:04 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:04 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:04 +0000 Started GET "/auth/gds/callback?code=e9b1fcd589370b49a5e5345ca5ae0516eda2ae8b80c6659443f718d97bfcee27&state=f46ba117efbe15eb7c1a70c0717cf2e407653d7ab595bfd8" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"e9b1fcd589370b49a5e5345ca5ae0516eda2ae8b80c6659443f718d97bfcee27", "state"=>"f46ba117efbe15eb7c1a70c0717cf2e407653d7ab595bfd8"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Started GET "/auth/gds/callback?code=50dc140704178f40d3dbd87fd2599a4d7dbdb0bc909d00899c3a737cee50f190&state=bec31f390b8ffe6df3bbdf33067abcd7c2158ab1d3c9e1dc" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"50dc140704178f40d3dbd87fd2599a4d7dbdb0bc909d00899c3a737cee50f190", "state"=>"bec31f390b8ffe6df3bbdf33067abcd7c2158ab1d3c9e1dc"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Started GET "/auth/gds/callback?code=0b279e9b128a01b3784c9f011b34f744355a5b2d1518b9e66be081e6b22ac8d9&state=dbd9d2a2970b0873618af36c6dfb4e13206f4dcde0ed4005" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"0b279e9b128a01b3784c9f011b34f744355a5b2d1518b9e66be081e6b22ac8d9", "state"=>"dbd9d2a2970b0873618af36c6dfb4e13206f4dcde0ed4005"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 8ms (ActiveRecord: 0.6ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#this_requires_signin_permission as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Started GET "/auth/gds/callback?code=cd181972b9ce2470facf7ed94f5d57c0cebb49504adac359fe320674ff39a23d&state=930f9852417e38dd7d9e3cd64af2417c0e2208f77a53b67b" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"cd181972b9ce2470facf7ed94f5d57c0cebb49504adac359fe320674ff39a23d", "state"=>"930f9852417e38dd7d9e3cd64af2417c0e2208f77a53b67b"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#this_requires_signin_permission as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:05 +0000 Started GET "/auth/gds/callback?code=8e4fccf68829f6051049e30fd0a62cef2627d5a1fe676f5e25be1c8d0ced4ceb&state=9eab7189fe9157ff3d411f358b1c688edb33faee5056a250" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8e4fccf68829f6051049e30fd0a62cef2627d5a1fe676f5e25be1c8d0ced4ceb", "state"=>"9eab7189fe9157ff3d411f358b1c688edb33faee5056a250"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:08:06 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Started GET "/auth/gds/callback?code=24b58c8419854c437715919e3525761b4560d6a099de88a7c11b805cc6e9f5e5&state=5f34e7b1a3cccbc097aa8bc9ab752dd7f56e6cbc36e4f255" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"24b58c8419854c437715919e3525761b4560d6a099de88a7c11b805cc6e9f5e5", "state"=>"5f34e7b1a3cccbc097aa8bc9ab752dd7f56e6cbc36e4f255"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:18:06 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:18:06 +0000 Started GET "/auth/gds/callback?code=70e9fbd9b7628ca19977b65aac438c93f0fcd16bfd3340b44d96b081775c220e&state=31a50f2af3df78caa0bbf6657646d058484a3a96cdb495e0" for 127.0.0.1 at 2015-12-09 12:18:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"70e9fbd9b7628ca19977b65aac438c93f0fcd16bfd3340b44d96b081775c220e", "state"=>"31a50f2af3df78caa0bbf6657646d058484a3a96cdb495e0"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:18:06 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Started GET "/auth/gds/callback?code=c4c82e4baf9ab06e57578c176b8d0832925113210514d89576c9e7afb729b47c&state=b64c715c2b9fbeb9ca7e1f31f3902dab31ef07805211747a" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c4c82e4baf9ab06e57578c176b8d0832925113210514d89576c9e7afb729b47c", "state"=>"b64c715c2b9fbeb9ca7e1f31f3902dab31ef07805211747a"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]  (11.1ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Processing by ExampleController#restricted as HTML 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"]] Authenticating with gds_sso strategy Completed in 2ms (ActiveRecord: 0.1ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:06 +0000 Started GET "/auth/gds/callback?code=07e88879733f684bb2a13c8c66547a9da778492bfbb03116babb3085ac202513&state=acc9546299bd11761ecf70249311759587410023696125a0" for 127.0.0.1 at 2015-12-08 16:13:07 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"07e88879733f684bb2a13c8c66547a9da778492bfbb03116babb3085ac202513", "state"=>"acc9546299bd11761ecf70249311759587410023696125a0"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]  (14.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 20ms (ActiveRecord: 14.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:07 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Connecting to database specified by database.yml Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:22 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.6ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:22 +0000 Started GET "/auth/gds/callback?code=202c3f1f0e7cd69262f194b4635c3d6dc6a030241eb9a5e4650910970b7703e2&state=ab72c57c793b45a3173e28060670c9944f055497d6319af8" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"202c3f1f0e7cd69262f194b4635c3d6dc6a030241eb9a5e4650910970b7703e2", "state"=>"ab72c57c793b45a3173e28060670c9944f055497d6319af8"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (18.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 1  (9.4ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 53.4ms (ActiveRecord: 29.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 6.7ms (Views: 5.1ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Started GET "/auth/gds/callback?code=955885bc8773fbee92737122a5fa8533d7d12191882fccc79d3afb95999a5246&state=379c5f7549f73535cbd8fbb7cf570ff677b0e676809fd614" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"955885bc8773fbee92737122a5fa8533d7d12191882fccc79d3afb95999a5246", "state"=>"379c5f7549f73535cbd8fbb7cf570ff677b0e676809fd614"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (13.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (15.0ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 34.0ms (ActiveRecord: 28.9ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.5ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Started GET "/auth/gds/callback?code=6f0bfb0bc3ea19e7f8521615ff781fafdafac2d1b84efdbb49d81512a874ed63&state=fdd22badebf46c65e3d32817efd3fcf691857da1671961ab" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6f0bfb0bc3ea19e7f8521615ff781fafdafac2d1b84efdbb49d81512a874ed63", "state"=>"fdd22badebf46c65e3d32817efd3fcf691857da1671961ab"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (16.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (18.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 42.4ms (ActiveRecord: 36.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 2.0ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.4ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:32 +0000 Started GET "/auth/gds/callback?code=9fe07258c2d95f6d22431805a295151096e2d70c2da1f0bc2aa1be7312e1c151&state=c7a0b88e726338b1264bf01c5242e5685b9654870883da96" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"9fe07258c2d95f6d22431805a295151096e2d70c2da1f0bc2aa1be7312e1c151", "state"=>"c7a0b88e726338b1264bf01c5242e5685b9654870883da96"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (13.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (11.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 29.9ms (ActiveRecord: 25.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Started GET "/auth/gds/callback?code=d0043ce60e813fd92d0988c9938477c92e5533a9ba5ae31e9c035deb11b10a9d&state=0127b251dfa8101ccaf54ba74709b46b80eab51688cd8d4b" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d0043ce60e813fd92d0988c9938477c92e5533a9ba5ae31e9c035deb11b10a9d", "state"=>"0127b251dfa8101ccaf54ba74709b46b80eab51688cd8d4b"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (14.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (12.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 32.7ms (ActiveRecord: 27.9ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 0.8ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.3ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Started GET "/auth/gds/callback?code=63e3466242fc82ba6473a8b6d18ba0a7a48bf6b6eb085c9f9d2c61e8fabf9822&state=cdc2dee9afb64b1d46ec97eee7f828f826c292287e9f2284" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"63e3466242fc82ba6473a8b6d18ba0a7a48bf6b6eb085c9f9d2c61e8fabf9822", "state"=>"cdc2dee9afb64b1d46ec97eee7f828f826c292287e9f2284"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (13.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (13.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 33.3ms (ActiveRecord: 28.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.2ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 1  (14.4ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Authenticating with gds_sso strategy Completed in 1.0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Started GET "/auth/gds/callback?code=4da1bd23f25d7b7d77635348986bc1eaf73ecf313862aeded5e3799909502f84&state=83f29a39cadf5923606864ca3afff1bb2f1482012fa8d291" for 127.0.0.1 at 2015-12-08 16:13:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"4da1bd23f25d7b7d77635348986bc1eaf73ecf313862aeded5e3799909502f84", "state"=>"83f29a39cadf5923606864ca3afff1bb2f1482012fa8d291"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (27.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 1  (30.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 62.9ms (ActiveRecord: 58.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Started GET "/auth/gds/callback?code=efa2cf747d0a328441e9bd03247fba61fd4453015ac851609e7cbbef2743e825&state=a43d2d8814147e9b6e72a31e8a02f81885f1505382f4e4d3" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"efa2cf747d0a328441e9bd03247fba61fd4453015ac851609e7cbbef2743e825", "state"=>"a43d2d8814147e9b6e72a31e8a02f81885f1505382f4e4d3"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (26.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (35.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 67.8ms (ActiveRecord: 62.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:18:34 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.3ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:18:34 +0000 Started GET "/auth/gds/callback?code=05d30c652ef3ea95c07c5e545ed2a415cbb22f952783d6d8abc167735ec4ff17&state=b5a11739592ce345fbacd7cb2c3b1eca53f9e27606df0e60" for 127.0.0.1 at 2015-12-09 12:18:34 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"05d30c652ef3ea95c07c5e545ed2a415cbb22f952783d6d8abc167735ec4ff17", "state"=>"b5a11739592ce345fbacd7cb2c3b1eca53f9e27606df0e60"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (50.8ms) commit transaction  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (52.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 108.8ms (ActiveRecord: 103.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:18:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 2.6ms (Views: 0.4ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.3ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Started GET "/auth/gds/callback?code=f909df4624fef1da007b6f87bd3191c6a9efa4b652caec6b7a483beacbc1ec96&state=66553a920587e1774f4ed6c7bec1350dac3079d2b8c09c5a" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f909df4624fef1da007b6f87bd3191c6a9efa4b652caec6b7a483beacbc1ec96", "state"=>"66553a920587e1774f4ed6c7bec1350dac3079d2b8c09c5a"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (50.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (32.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 88.7ms (ActiveRecord: 83.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:08:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by ExampleController#restricted as JSON Completed in 19.7ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:34 +0000 Processing by ExampleController#restricted as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "disabled" = NULL, "permissions" = '--- - signin ' WHERE "users"."id" = 1  (88.5ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (17.5ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (17.5ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (14.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (13.5ms) commit transaction Completed 200 OK in 236.9ms (Views: 0.6ms | ActiveRecord: 153.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:13:35 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (8.9ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (8.3ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (45.9ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (10.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 1  (18.1ms) commit transaction Completed 200 OK in 165.9ms (Views: 0.3ms | ActiveRecord: 94.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:35 +0000 Processing by ExampleController#restricted as JSON Completed in 15.6ms  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39535"]]  (8.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3473"]]  (12.2ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d39535"} Completed 403 Forbidden in 3.1ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38821"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d399"]]  (9.2ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d38821"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38821' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ', "organisation_slug" = 'justice-league', "organisation_content_id" = 'aae1319e-5788-4677-998c-f1a53af528d0' WHERE "users"."id" = 4  (17.5ms) commit transaction Completed 200 OK in 21.6ms (ActiveRecord: 18.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32433"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32863"]]  (8.0ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32433"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32433' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (9.5ms) commit transaction Completed 200 OK in 13.0ms (ActiveRecord: 10.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35169"]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33923"]]  (6.9ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1 Completed 200 OK in 0.9ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35451"]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34541"]]  (48.9ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d35451"} Completed 403 Forbidden in 1.4ms (Views: 1.0ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:13:50 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 15ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:13:50 +0000 Started GET "/auth/gds/callback?code=03687eeabe7e4d4252a911533e587ae43fa90465e927c0ef35ca7ebc8d3ff844&state=5bb44a2c1ff1359e540b57f12fcb0bfb21d513e82c70058f" for 127.0.0.1 at 2015-12-08 16:13:59 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"03687eeabe7e4d4252a911533e587ae43fa90465e927c0ef35ca7ebc8d3ff844", "state"=>"5bb44a2c1ff1359e540b57f12fcb0bfb21d513e82c70058f"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]  (12.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 50ms (ActiveRecord: 26.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Started GET "/auth/gds/callback?code=5dac48b7213f014fb7909e67883ba01ba0480decd86de626c0e2ee21fd321330&state=e15eb80f5262a44fe6b0b694024859d5e887fc8daf89f66f" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"5dac48b7213f014fb7909e67883ba01ba0480decd86de626c0e2ee21fd321330", "state"=>"e15eb80f5262a44fe6b0b694024859d5e887fc8daf89f66f"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (16.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 33ms (ActiveRecord: 28.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Started GET "/auth/gds/callback?code=886e02e494653b51f400bf0ffe431d5fcf5d9a8f3f95a274231f5c436c795d3a&state=02c357f0548133ac5840e57e02d3a78e9e2da65edfa2da1b" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"886e02e494653b51f400bf0ffe431d5fcf5d9a8f3f95a274231f5c436c795d3a", "state"=>"02c357f0548133ac5840e57e02d3a78e9e2da65edfa2da1b"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (8.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 24ms (ActiveRecord: 18.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Started GET "/auth/gds/callback?code=5e231231ae4c607604e51f337b2d5168d773dd3569b2668a1838b841617fda00&state=c2175c4fd78a2278042925dbe41298699a76b1e5cfa20bc1" for 127.0.0.1 at 2015-12-08 16:14:00 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"5e231231ae4c607604e51f337b2d5168d773dd3569b2668a1838b841617fda00", "state"=>"c2175c4fd78a2278042925dbe41298699a76b1e5cfa20bc1"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (9.5ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 33ms (ActiveRecord: 28.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Started GET "/auth/gds/callback?code=d0420c71616d1aef5108bb6718b4fa4b6db58288c10dd0019e03c921d8f8b9a1&state=98bbd4f4c1d59e905b6d3941c3354ae75c316af496787ac6" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d0420c71616d1aef5108bb6718b4fa4b6db58288c10dd0019e03c921d8f8b9a1", "state"=>"98bbd4f4c1d59e905b6d3941c3354ae75c316af496787ac6"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (24.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (10.8ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 42ms (ActiveRecord: 35.8ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Started GET "/auth/gds/callback?code=cd4142afdcab85a5b3b36a2b89726df9938aa2a87075163e588597d991494781&state=07cbab0e5fc35dcb94545ab122af2a7941ee382d6abc5ecc" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"cd4142afdcab85a5b3b36a2b89726df9938aa2a87075163e588597d991494781", "state"=>"07cbab0e5fc35dcb94545ab122af2a7941ee382d6abc5ecc"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.2ms) begin transaction SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (13.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 31ms (ActiveRecord: 24.9ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]  (12.1ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Started GET "/auth/gds/callback?code=af9e0ab0f6d6d3d05057954aa9a8c98d6a4f564469bd75aa6cd7df2fede3b091&state=d8caee5db46bf71ee4da985b0abfa170012c19e2e622014c" for 127.0.0.1 at 2015-12-08 16:14:01 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"af9e0ab0f6d6d3d05057954aa9a8c98d6a4f564469bd75aa6cd7df2fede3b091", "state"=>"d8caee5db46bf71ee4da985b0abfa170012c19e2e622014c"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (192.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]  (19.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 220ms (ActiveRecord: 213.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:02 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:02 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:02 +0000 Started GET "/auth/gds/callback?code=a2020d05c5e20f3e49ba78b8ce9d538e483cb4a53eb8ed289bcb1300d878a46c&state=a16d91b4b6398b0dd1d5ca8e3386c48fa451f9760910687c" for 127.0.0.1 at 2015-12-08 16:14:02 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a2020d05c5e20f3e49ba78b8ce9d538e483cb4a53eb8ed289bcb1300d878a46c", "state"=>"a16d91b4b6398b0dd1d5ca8e3386c48fa451f9760910687c"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (339.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (20.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 366ms (ActiveRecord: 360.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:02 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:19:02 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:19:02 +0000 Started GET "/auth/gds/callback?code=f6aa9b64e4f8cdc4143a0aad874184cb7c68f46c07e636f255354772d4638f08&state=a2fd2b246924d09f044f11289086ffa196081b495dae84ab" for 127.0.0.1 at 2015-12-09 12:19:02 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f6aa9b64e4f8cdc4143a0aad874184cb7c68f46c07e636f255354772d4638f08", "state"=>"a2fd2b246924d09f044f11289086ffa196081b495dae84ab"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (30.4ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (33.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 71ms (ActiveRecord: 64.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:19:03 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:03 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:03 +0000 Started GET "/auth/gds/callback?code=ebefc2dc5d92a09c0f3327c92b45c82934230e6b65c11138a630a067b4596be3&state=302441cad386aae98568d0e0c213424fc0e0f441954cdf84" for 127.0.0.1 at 2015-12-08 16:14:03 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ebefc2dc5d92a09c0f3327c92b45c82934230e6b65c11138a630a067b4596be3", "state"=>"302441cad386aae98568d0e0c213424fc0e0f441954cdf84"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (27.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (19.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 53ms (ActiveRecord: 47.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:03 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:09:03 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:03 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 1 [["disabled", nil], ["permissions", "---\n- signin\n"]]  (27.9ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (21.2ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (17.6ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (17.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (20.0ms) commit transaction Completed 200 OK in 186ms (Views: 0.6ms | ActiveRecord: 106.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:03 +0000 Processing by ExampleController#restricted as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (31.0ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (18.9ms) commit transaction User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (19.4ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (14.0ms) commit transaction Completed 200 OK in 180ms (Views: 0.4ms | ActiveRecord: 103.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:03 +0000 Processing by ExampleController#restricted as JSON Completed in 18ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:03 +0000 Processing by ExampleController#restricted as JSON Completed in 18ms  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39750"]]  (15.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d37113"]]  (16.3ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d39750"} Completed 403 Forbidden in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38945"]]  (18.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38245"]]  (16.4ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d38945"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38945' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = 4 [["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"]]  (18.0ms) commit transaction Completed 200 OK in 22ms (ActiveRecord: 18.5ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39533"]]  (18.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31539"]]  (13.9ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d39533"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39533' ORDER BY "users"."id" ASC LIMIT 1  (0.2ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 6 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]  (21.1ms) commit transaction Completed 200 OK in 25ms (ActiveRecord: 21.7ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33213"]]  (16.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3295"]]  (21.7ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 1ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35535"]]  (27.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33605"]]  (15.9ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d35535"} Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33848"]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d36922"]]  (11.2ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d33848"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.4ms) Completed 403 Forbidden in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3193"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d39018"]]  (17.1ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d3193"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3193' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 3 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]  (16.1ms) commit transaction Completed 200 OK in 25ms (ActiveRecord: 16.8ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32441"]]  (16.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d36765"]]  (25.8ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 1ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3136"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35390"]]  (9.8ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d3136"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3136' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_content_id" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 7 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]  (37.0ms) commit transaction Completed 200 OK in 41ms (ActiveRecord: 37.5ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33132"]]  (20.5ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35314"]]  (143.2ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d33132"} Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:19 +0000 Processing by ExampleController#restricted as JSON Completed in 150ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:19 +0000 Processing by ExampleController#restricted as JSON Completed in 47ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:19 +0000 Processing by ExampleController#restricted as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "permissions", "uid") VALUES (?, ?, ?, ?, ?) [["disabled", nil], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]  (13.5ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (9.0ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (11.1ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (7.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]  (7.2ms) commit transaction Completed 200 OK in 195ms (Views: 1.3ms | ActiveRecord: 50.9ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:19 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (10.0ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (12.0ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (16.9ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (15.9ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (13.5ms) commit transaction Completed 200 OK in 146ms (Views: 0.4ms | ActiveRecord: 70.6ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:14:19 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:19 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:19 +0000 Started GET "/auth/gds/callback?code=287a266067dba069f752ddc3d697f97834e3684fa5a6f9786fe33023bd532450&state=576930a270199616b943584009f0d7302fa90eb1a6a01877" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"287a266067dba069f752ddc3d697f97834e3684fa5a6f9786fe33023bd532450", "state"=>"576930a270199616b943584009f0d7302fa90eb1a6a01877"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", "f"], ["permissions", "---\n- signin\n"]]  (19.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (32.9ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 58ms (ActiveRecord: 52.9ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Started GET "/auth/gds/callback?code=d4d387eee7b562bafece10b8ce8ea19c849a4d85c6ac1255544067526859d83b&state=e0909c95880dd47a578d03ade063728dc43db79d004cfdc9" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d4d387eee7b562bafece10b8ce8ea19c849a4d85c6ac1255544067526859d83b", "state"=>"e0909c95880dd47a578d03ade063728dc43db79d004cfdc9"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (17.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (16.2ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 38ms (ActiveRecord: 34.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Started GET "/auth/gds/callback?code=ce498306071faf674470c5feb46365caad5608aa5239b3ba0e39fc70cfcb2b25&state=4422c1cf51c75e75c0632889b383f9c7439e8b588b7d6744" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ce498306071faf674470c5feb46365caad5608aa5239b3ba0e39fc70cfcb2b25", "state"=>"4422c1cf51c75e75c0632889b383f9c7439e8b588b7d6744"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (37.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (75.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 119ms (ActiveRecord: 113.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:30 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Started GET "/auth/gds/callback?code=8bc6b0028cba3b2642a11488d115f9f388bfe4dd56557931a68f9e387e1240cc&state=a3af1527b0a7a469f148710d06db722fd6af5a18cd76cde2" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8bc6b0028cba3b2642a11488d115f9f388bfe4dd56557931a68f9e387e1240cc", "state"=>"a3af1527b0a7a469f148710d06db722fd6af5a18cd76cde2"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (16.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (14.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 39ms (ActiveRecord: 32.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Started GET "/auth/gds/callback?code=8f68e9e097f318666b2c2aa336e831dc92c5b9621e10e41601c0697a099dfbab&state=990a7dcf0cec3291dbc72dac0f09f6d3b09f6e49c3a1b564" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8f68e9e097f318666b2c2aa336e831dc92c5b9621e10e41601c0697a099dfbab", "state"=>"990a7dcf0cec3291dbc72dac0f09f6d3b09f6e49c3a1b564"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (8.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 26ms (ActiveRecord: 21.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Started GET "/auth/gds/callback?code=68a99e796a6505bbda888f73e950b0458e0f7df5c8705ecad1b55e95578bca0c&state=e2e51ab2e3d223e0231bcba654861f676cfd0133723548fc" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"68a99e796a6505bbda888f73e950b0458e0f7df5c8705ecad1b55e95578bca0c", "state"=>"e2e51ab2e3d223e0231bcba654861f676cfd0133723548fc"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (24.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (12.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 42ms (ActiveRecord: 36.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:09:31 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:31 +0000 Started GET "/auth/gds/callback?code=3f7875472a9b8efa7536bb10c9495ec2bd46696d19406aefbcbb8109852f4044&state=c78f68d97b56a100859b21dd55abc80f64f08777fbf3836a" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"3f7875472a9b8efa7536bb10c9495ec2bd46696d19406aefbcbb8109852f4044", "state"=>"c78f68d97b56a100859b21dd55abc80f64f08777fbf3836a"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (14.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (11.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 32ms (ActiveRecord: 27.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:19:32 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:19:32 +0000 Started GET "/auth/gds/callback?code=c25765ac10278c74c6543825703d60ce7ea75a335ec7812493db7c6f5347ebea&state=71666155c2da4cb4b3e62ba1831e63d7c0db1b6473b10a10" for 127.0.0.1 at 2015-12-09 12:19:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c25765ac10278c74c6543825703d60ce7ea75a335ec7812493db7c6f5347ebea", "state"=>"71666155c2da4cb4b3e62ba1831e63d7c0db1b6473b10a10"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (20.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (11.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 38ms (ActiveRecord: 32.9ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:19:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Started GET "/auth/gds/callback?code=b6fc4e6361a008d136dd5ebcb61218ee54a64a70cf10f189294f3b9606c2151c&state=932dce9df83b7ed96bb1db7517c96c488b6495994482965e" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b6fc4e6361a008d136dd5ebcb61218ee54a64a70cf10f189294f3b9606c2151c", "state"=>"932dce9df83b7ed96bb1db7517c96c488b6495994482965e"} Authenticating with gds_sso strategy User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (24.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (17.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 49ms (ActiveRecord: 43.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.2ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]  (11.0ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Authenticating with gds_sso strategy Completed in 2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Started GET "/auth/gds/callback?code=01afaa187477168128e209ff382ded6502af9a1055da699c633c9b3adee7ea98&state=aed71410bb3f0c004949b848ad7fbb7bd82ab8b0f0c976c0" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"01afaa187477168128e209ff382ded6502af9a1055da699c633c9b3adee7ea98", "state"=>"aed71410bb3f0c004949b848ad7fbb7bd82ab8b0f0c976c0"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]  (10.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 26ms (ActiveRecord: 21.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:48 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 25ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:48 +0000 Started GET "/auth/gds/callback?code=f8c430e7f8465825f0aa107910a74fe32702471c5b82df8b5e84c6f843856bdc&state=5a091ed8dad6881786ba49da04b48027e8c51f3fd2699e7b" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f8c430e7f8465825f0aa107910a74fe32702471c5b82df8b5e84c6f843856bdc", "state"=>"5a091ed8dad6881786ba49da04b48027e8c51f3fd2699e7b"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "integration-uid"], ["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"]]  (20.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]  (21.8ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 77ms (ActiveRecord: 43.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.3ms) 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"]] Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Started GET "/auth/gds/callback?code=8d9561acd66df50780343f9b4ed029d56a2b2fb383ebab79be2edf07341e855f&state=49f9bf234b10a97b22302f7bafd9c8dce583f27786ff1daf" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8d9561acd66df50780343f9b4ed029d56a2b2fb383ebab79be2edf07341e855f", "state"=>"49f9bf234b10a97b22302f7bafd9c8dce583f27786ff1daf"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by ExampleController#this_requires_signin_permission as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Started GET "/auth/gds/callback?code=a376f82e06edbcaa937475b8edc8cc379c823093dc0c10170d07c11a36e46ad0&state=0d797121864b925d9de0543165aa760297e42e8a158db918" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a376f82e06edbcaa937475b8edc8cc379c823093dc0c10170d07c11a36e46ad0", "state"=>"0d797121864b925d9de0543165aa760297e42e8a158db918"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:58 +0000 Started GET "/auth/gds/callback?code=347017a037233f7982f2fea6ad5d117f0da0ff1879947139bc9dee9cbeb45101&state=0ef342f45179bfa2fa86d800f91955f7877264fd8f546400" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"347017a037233f7982f2fea6ad5d117f0da0ff1879947139bc9dee9cbeb45101", "state"=>"0ef342f45179bfa2fa86d800f91955f7877264fd8f546400"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by ExampleController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Started GET "/auth/gds/callback?code=85186f67673687a3fc8a1649b03a7834ef28ed257968dc848f7166a5dc4916a7&state=857ea9d609d2967402743f908fe28571e7fe48f3ae5d0e90" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"85186f67673687a3fc8a1649b03a7834ef28ed257968dc848f7166a5dc4916a7", "state"=>"857ea9d609d2967402743f908fe28571e7fe48f3ae5d0e90"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Started GET "/auth/gds/callback?code=7bd5a9b4e9c032a97f27fe9f48b318c4f5b19207ee643e2a0f57d5c598f0ad2a&state=eff6b60eb0d5b6fa56e7bacaa764b1f19b111a425d73bb11" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7bd5a9b4e9c032a97f27fe9f48b318c4f5b19207ee643e2a0f57d5c598f0ad2a", "state"=>"eff6b60eb0d5b6fa56e7bacaa764b1f19b111a425d73bb11"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 1]]  (24.7ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Processing by ExampleController#restricted as HTML 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"]] Authenticating with gds_sso strategy Completed in 2ms (ActiveRecord: 0.1ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:14:59 +0000 Started GET "/auth/gds/callback?code=a09a550c0552619472fa048a695dedbf1be8a282c0162355fe660bd1bba55e8b&state=96a2fcda348b789ce5e225c2377d44b947d3e6eb7ca66ba5" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a09a550c0552619472fa048a695dedbf1be8a282c0162355fe660bd1bba55e8b", "state"=>"96a2fcda348b789ce5e225c2377d44b947d3e6eb7ca66ba5"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 1]]  (14.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 21ms (ActiveRecord: 14.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) 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"]] Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Started GET "/auth/gds/callback?code=a14eceeab51682e7004885d51b09f6e8eded0cebb3af95b4bb1dd50b2c18836f&state=76f6d0e0717287d03b39c264d895db85ca427e578ecda892" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a14eceeab51682e7004885d51b09f6e8eded0cebb3af95b4bb1dd50b2c18836f", "state"=>"76f6d0e0717287d03b39c264d895db85ca427e578ecda892"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 7ms (ActiveRecord: 0.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:20:00 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:20:00 +0000 Started GET "/auth/gds/callback?code=983df270fae3b32601682444fc9dca77a693497f93304d3e2902f73055ee3383&state=e7488ec1cf4d6813ef258f84ac245e7e2e10346437683cd5" for 127.0.0.1 at 2015-12-09 12:20:00 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"983df270fae3b32601682444fc9dca77a693497f93304d3e2902f73055ee3383", "state"=>"e7488ec1cf4d6813ef258f84ac245e7e2e10346437683cd5"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:20:00 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Started GET "/auth/gds/callback?code=0568daeeb76809161adcdf9b568ad6b6f983d12a35c654bacaff6714bc5f8162&state=a3b7d6640141dd9674d8f3b0f5cc94e1c385fcbcb6c35640" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"0568daeeb76809161adcdf9b568ad6b6f983d12a35c654bacaff6714bc5f8162", "state"=>"a3b7d6640141dd9674d8f3b0f5cc94e1c385fcbcb6c35640"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:10:00 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by ExampleController#restricted as JSON Completed in 24ms (ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:00 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 1]]  (130.0ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 214ms (Views: 0.6ms | ActiveRecord: 131.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:01 +0000 Processing by ExampleController#restricted as JSON Completed in 29ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:01 +0000 Processing by ExampleController#restricted as JSON User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.2ms) begin transaction  (0.2ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.2ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 89ms (Views: 0.6ms | ActiveRecord: 1.6ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39171"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (26.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36990"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (15.6ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d39171"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.5ms) Completed 403 Forbidden in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39638"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (15.5ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33502"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (16.5ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d39638"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39638"]]  (0.1ms) begin transaction SQL (0.3ms) 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]]  (13.0ms) commit transaction Completed 200 OK in 19ms (ActiveRecord: 13.6ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d37086"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34351"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (13.3ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d37086"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d37086"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 6]]  (17.6ms) commit transaction Completed 200 OK in 21ms (ActiveRecord: 18.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31694"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (18.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d36389"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (9.7ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]] Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d35444"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (14.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33717"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (11.4ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d35444"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms) Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) Connecting to database specified by database.yml  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39516"]]  (180.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34942"]]  (100.2ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d39516"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms) Completed 403 Forbidden in 7.7ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38985"]]  (112.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32751"]]  (30.1ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d38985"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38985' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ', "organisation_slug" = 'justice-league', "organisation_content_id" = 'aae1319e-5788-4677-998c-f1a53af528d0' WHERE "users"."id" = 3  (19.8ms) commit transaction Completed 200 OK in 26.1ms (ActiveRecord: 20.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33092"]]  (15.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39365"]]  (15.6ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1 Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3652"]]  (26.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32088"]]  (18.5ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d3652"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3652' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 7  (23.2ms) commit transaction Completed 200 OK in 25.6ms (ActiveRecord: 23.5ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31468"]]  (33.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37221"]]  (25.6ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d31468"} Completed 403 Forbidden in 1.2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:18 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 2.5ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:18 +0000 Started GET "/auth/gds/callback?code=1f836dae83c77d98963c9a872e1c15a72233a96b81051eb117d22a9c5cd99da2&state=36190c6ca8898ad73f3e219bbed601a1d774898e7ecb937a" for 127.0.0.1 at 2015-12-08 16:15:27 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"1f836dae83c77d98963c9a872e1c15a72233a96b81051eb117d22a9c5cd99da2", "state"=>"36190c6ca8898ad73f3e219bbed601a1d774898e7ecb937a"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("disabled", "email", "name", "organisation_content_id", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["disabled", false], ["email", "test@example-client.com"], ["name", "Test User"], ["organisation_content_id", nil], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (58.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (46.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 110.4ms (ActiveRecord: 105.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:27 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 5.4ms (Views: 2.7ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:27 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:27 +0000 Started GET "/auth/gds/callback?code=ab656855413ce0e0dc5ce8632763f7a139b88426d5e7165604d02d0de0543bbe&state=ce2067743c760696f0119d4ac787b70183d82894b11241ea" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ab656855413ce0e0dc5ce8632763f7a139b88426d5e7165604d02d0de0543bbe", "state"=>"ce2067743c760696f0119d4ac787b70183d82894b11241ea"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (201.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (34.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 242.3ms (ActiveRecord: 237.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Started GET "/auth/gds/callback?code=555b7bd6c78c94d0a82c6827e052cf23d6bb1fea01682fa386c47dda73f0c8e2&state=4807eca12197bd9b99323e6f7868b3d9456d97f1c38bac84" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"555b7bd6c78c94d0a82c6827e052cf23d6bb1fea01682fa386c47dda73f0c8e2", "state"=>"4807eca12197bd9b99323e6f7868b3d9456d97f1c38bac84"} Authenticating with gds_sso strategy User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (67.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (38.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 111.6ms (ActiveRecord: 107.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 0.6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.4ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Started GET "/auth/gds/callback?code=a057492744752253ccf44ca4c18d08d17ce9bab3359076adace2f81605fd7bbd&state=ed552a888111eabbe3fecded61d213e37578bb894eb2dce7" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a057492744752253ccf44ca4c18d08d17ce9bab3359076adace2f81605fd7bbd", "state"=>"ed552a888111eabbe3fecded61d213e37578bb894eb2dce7"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (16.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (17.2ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 38.9ms (ActiveRecord: 34.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:28 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Started GET "/auth/gds/callback?code=9b06ba09ffc00b9ade48e8f42f315ebff1ee0b4f0756a5d8351c95833614b110&state=6330f9b559b3a478897ab2563a43d7e50d7a3e0362b78d1b" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"9b06ba09ffc00b9ade48e8f42f315ebff1ee0b4f0756a5d8351c95833614b110", "state"=>"6330f9b559b3a478897ab2563a43d7e50d7a3e0362b78d1b"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (18.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (19.2ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 43.2ms (ActiveRecord: 38.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Started GET "/auth/gds/callback?code=ecdab1e1ccd7bd8dae9e0e36cf5300640cc037bda62678d253b7a50deb016dd5&state=01f3a228579de57fe418aebb0bdb9e345b5b5921c8139091" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ecdab1e1ccd7bd8dae9e0e36cf5300640cc037bda62678d253b7a50deb016dd5", "state"=>"01f3a228579de57fe418aebb0bdb9e345b5b5921c8139091"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (22.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (7.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 36.9ms (ActiveRecord: 31.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.2ms | ActiveRecord: 0.2ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (17.5ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Authenticating with gds_sso strategy Completed in 1.0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Started GET "/auth/gds/callback?code=1232017344736a7807edefaadfd12f2ff67c51de5dcecd2e745ad34f413ff59f&state=f665c108ccf31f1d4ca0836c7a62052594e4d556d64b9993" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"1232017344736a7807edefaadfd12f2ff67c51de5dcecd2e745ad34f413ff59f", "state"=>"f665c108ccf31f1d4ca0836c7a62052594e4d556d64b9993"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (14.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (16.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 36.6ms (ActiveRecord: 31.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:29 +0000 Started GET "/auth/gds/callback?code=bf7b6f469786ec38db80a51e35fc9a62fe99cf8d8205ad5ec2a9110d4fa099f1&state=8907e8f36b38a3e3c0cc547adda10ec425ee0868a46a3d9b" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"bf7b6f469786ec38db80a51e35fc9a62fe99cf8d8205ad5ec2a9110d4fa099f1", "state"=>"8907e8f36b38a3e3c0cc547adda10ec425ee0868a46a3d9b"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (16.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (14.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 36.3ms (ActiveRecord: 31.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:20:30 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.4ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:20:30 +0000 Started GET "/auth/gds/callback?code=ebb85aa5c008c4d0e6a272adea5fa9d8dea147c3a6d3d1273f5c76ce77dbc18b&state=92ae307c2127901a619969e595f9c65a0d362c6603f3f003" for 127.0.0.1 at 2015-12-09 12:20:30 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ebb85aa5c008c4d0e6a272adea5fa9d8dea147c3a6d3d1273f5c76ce77dbc18b", "state"=>"92ae307c2127901a619969e595f9c65a0d362c6603f3f003"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (9.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (15.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 31.2ms (ActiveRecord: 25.9ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:20:30 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.7ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0.2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Started GET "/auth/gds/callback?code=df52743ebb85a3863c37ce84088f35e0eee6d3a4fcfb49c5c949fa79e24c3fe1&state=03066a7eec80173df5f0cb3699b923e431454183849b04be" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"df52743ebb85a3863c37ce84088f35e0eee6d3a4fcfb49c5c949fa79e24c3fe1", "state"=>"03066a7eec80173df5f0cb3699b923e431454183849b04be"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (17.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (10.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 33.3ms (ActiveRecord: 28.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:10:30 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1 Completed 200 OK in 1.2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Processing by ExampleController#restricted as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "disabled" = NULL, "permissions" = '--- - signin ' WHERE "users"."id" = 11  (26.5ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (15.6ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (18.1ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (12.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (11.3ms) commit transaction Completed 200 OK in 159.6ms (Views: 0.3ms | ActiveRecord: 86.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (10.8ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (12.2ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (14.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (13.8ms) commit transaction  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (9.4ms) commit transaction Completed 200 OK in 135.2ms (Views: 0.4ms | ActiveRecord: 63.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:30 +0000 Processing by ExampleController#restricted as JSON Completed in 18.1ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:31 +0000 Processing by ExampleController#restricted as JSON Completed in 20.5ms  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32128"]]  (137.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32169"]]  (83.0ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d32128"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms) Completed 403 Forbidden in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35231"]]  (110.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3177"]]  (24.1ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d35231"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35231' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = 3 [["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"]]  (32.1ms) commit transaction Completed 200 OK in 41ms (ActiveRecord: 32.8ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38534"]]  (32.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d34028"]]  (26.2ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d38534"} Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33582"]]  (25.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d34220"]]  (16.4ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d33582"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33582' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 7 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]  (14.7ms) commit transaction Completed 200 OK in 18ms (ActiveRecord: 15.2ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36333"]]  (22.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33484"]]  (39.6ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 1ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:15:46 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:46 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 17ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:46 +0000 Started GET "/auth/gds/callback?code=c54fe9b8fc93507d272ca1498e1e2a4acdc59d8d3cffe0a64c230615f0313c81&state=a295d7fd5ef02cae814a06030969e21790973ffec8c976c8" for 127.0.0.1 at 2015-12-08 16:15:56 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c54fe9b8fc93507d272ca1498e1e2a4acdc59d8d3cffe0a64c230615f0313c81", "state"=>"a295d7fd5ef02cae814a06030969e21790973ffec8c976c8"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]  (60.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]  (75.9ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 143ms (ActiveRecord: 137.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:56 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:56 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:56 +0000 Started GET "/auth/gds/callback?code=054c831d56b9a2b38085a02240dfc3bd93f700fad39e81e6a24180b5b4e60c68&state=dc9168dd8e4d5a254e715244af7da9d88758fc9a6db9b624" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"054c831d56b9a2b38085a02240dfc3bd93f700fad39e81e6a24180b5b4e60c68", "state"=>"dc9168dd8e4d5a254e715244af7da9d88758fc9a6db9b624"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (35.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (52.9ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 94ms (ActiveRecord: 89.6ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Started GET "/auth/gds/callback?code=f45fc2057773cf8eebfe70b02f56cb8d57ff0da2b60641b3e29676fce352659d&state=66411b71ea917dea743c801e801d8a37f22741f0c08cef69" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f45fc2057773cf8eebfe70b02f56cb8d57ff0da2b60641b3e29676fce352659d", "state"=>"66411b71ea917dea743c801e801d8a37f22741f0c08cef69"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (39.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (63.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 108ms (ActiveRecord: 103.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Started GET "/auth/gds/callback?code=5932fb9972acf9ec5728de09b568716a12b3e8532ae28bd1d6d3bb0334078872&state=5fdcbf164fc444d791c06f431c087401d066b6492a992ad0" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"5932fb9972acf9ec5728de09b568716a12b3e8532ae28bd1d6d3bb0334078872", "state"=>"5fdcbf164fc444d791c06f431c087401d066b6492a992ad0"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (57.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (63.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 127ms (ActiveRecord: 121.9ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:57 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Started GET "/auth/gds/callback?code=56fda97d2cfb0c11aa8fe93efa16276dc22bbba854aac621c6f8424c66112cf1&state=98c4c95f874793bddea7b8e7d2356cd9ce986ba6d843c1bd" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"56fda97d2cfb0c11aa8fe93efa16276dc22bbba854aac621c6f8424c66112cf1", "state"=>"98c4c95f874793bddea7b8e7d2356cd9ce986ba6d843c1bd"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (44.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (37.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 87ms (ActiveRecord: 82.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Started GET "/auth/gds/callback?code=d36e0ad67025ceaa847676533e476951f1e900d7921717eb6a7405b6abd4c115&state=cffa196c4ae8eb1eb0a990fb79d6cbb6c17768f2a83a4a31" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d36e0ad67025ceaa847676533e476951f1e900d7921717eb6a7405b6abd4c115", "state"=>"cffa196c4ae8eb1eb0a990fb79d6cbb6c17768f2a83a4a31"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (40.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (54.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 102ms (ActiveRecord: 96.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]  (93.1ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:58 +0000 Started GET "/auth/gds/callback?code=370dbed6129315359f4cab5792022a491678e80910899b33816773de9fec62a7&state=9106757dc62bc2e617e9f2f1fc980a9898167b8a3198891c" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"370dbed6129315359f4cab5792022a491678e80910899b33816773de9fec62a7", "state"=>"9106757dc62bc2e617e9f2f1fc980a9898167b8a3198891c"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (28.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]  (36.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 72ms (ActiveRecord: 66.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Started GET "/auth/gds/callback?code=6f99c9b46595c97dbfb1186aecb8730d939f8dedd909b9148d63cbf404606bf7&state=969f207080a86cc03d0507fa8613785e60c7abb010e04044" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6f99c9b46595c97dbfb1186aecb8730d939f8dedd909b9148d63cbf404606bf7", "state"=>"969f207080a86cc03d0507fa8613785e60c7abb010e04044"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (17.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 42ms (ActiveRecord: 36.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by ExampleController#restricted as HTML User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:20:59 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:20:59 +0000 Started GET "/auth/gds/callback?code=cdf3f6f9eb80190929940cd5ed705e08ffb9fff9bdcbd3d21d6879dafc041f4c&state=f14af8d0b11fea702b8e3f7a1892cf24ca4055c5b2aa8cf7" for 127.0.0.1 at 2015-12-09 12:20:59 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"cdf3f6f9eb80190929940cd5ed705e08ffb9fff9bdcbd3d21d6879dafc041f4c", "state"=>"f14af8d0b11fea702b8e3f7a1892cf24ca4055c5b2aa8cf7"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (26.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (18.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 52ms (ActiveRecord: 45.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:20:59 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Started GET "/auth/gds/callback?code=7be6ec12d000eaf4080dc9bf8946f50b2dc84b052840967b0c1cc6714642a5df&state=3198d5a3a15b4ce1e4ccebf4f09a9fa84d29af72583efd3c" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7be6ec12d000eaf4080dc9bf8946f50b2dc84b052840967b0c1cc6714642a5df", "state"=>"3198d5a3a15b4ce1e4ccebf4f09a9fa84d29af72583efd3c"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (52.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (43.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 103ms (ActiveRecord: 97.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:10:59 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:15:59 +0000 Processing by ExampleController#restricted as JSON Completed in 20ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:00 +0000 Processing by ExampleController#restricted as JSON Completed in 18ms Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:00 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 11 [["disabled", nil], ["permissions", "---\n- signin\n"]]  (34.0ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (37.8ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (19.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (63.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (64.4ms) commit transaction Completed 200 OK in 298ms (Views: 0.3ms | ActiveRecord: 221.8ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:00 +0000 Processing by ExampleController#restricted as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (53.4ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (28.7ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (182.4ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (32.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]  (39.2ms) commit transaction Completed 200 OK in 410ms (Views: 0.3ms | ActiveRecord: 338.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:16 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 15ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:16 +0000 Started GET "/auth/gds/callback?code=f3680e6cae07dc0cfc92536e561157860dc0484ab77459325aa014fcc528542b&state=a2b0541b9cdd98cddc320f5cec4841eedd38c97e5ed8b01b" for 127.0.0.1 at 2015-12-08 16:16:26 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f3680e6cae07dc0cfc92536e561157860dc0484ab77459325aa014fcc528542b", "state"=>"a2b0541b9cdd98cddc320f5cec4841eedd38c97e5ed8b01b"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]  (33.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]  (25.7ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 83ms (ActiveRecord: 60.6ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:26 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:26 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:26 +0000 Started GET "/auth/gds/callback?code=7255b0301b89dc646224578e8defe67c69c0bebbd202a8ddcf46480fbbf25eec&state=59fc85565374c199089068476adb13f5eb8af716a2bdff79" for 127.0.0.1 at 2015-12-08 16:16:26 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7255b0301b89dc646224578e8defe67c69c0bebbd202a8ddcf46480fbbf25eec", "state"=>"59fc85565374c199089068476adb13f5eb8af716a2bdff79"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (61.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (55.8ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 123ms (ActiveRecord: 118.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Started GET "/auth/gds/callback?code=13a739d8db384867bf2e80d302d5bb23e7352a18b0d42fd6428bcc3c7267d3fc&state=c75a1153192555a6826acffee516d3be366e5251d22b9d7d" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"13a739d8db384867bf2e80d302d5bb23e7352a18b0d42fd6428bcc3c7267d3fc", "state"=>"c75a1153192555a6826acffee516d3be366e5251d22b9d7d"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (46.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (67.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 120ms (ActiveRecord: 114.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Started GET "/auth/gds/callback?code=74479668069843ecf98b83b58ccd0ccf52e24566f40db0f46c195108e71128a5&state=2aa2ad1a5fe297851d8ae32eadfa557a3a81f8d93c11dc19" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"74479668069843ecf98b83b58ccd0ccf52e24566f40db0f46c195108e71128a5", "state"=>"2aa2ad1a5fe297851d8ae32eadfa557a3a81f8d93c11dc19"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (56.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (35.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 98ms (ActiveRecord: 92.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Started GET "/auth/gds/callback?code=d13de975dfbf557100d318ced660d9eaccedceaece21c45ed5f4f1a409807f02&state=273969948eef391ed0ec7e59dd3cb9f354699a81fc326e95" for 127.0.0.1 at 2015-12-08 16:16:27 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d13de975dfbf557100d318ced660d9eaccedceaece21c45ed5f4f1a409807f02", "state"=>"273969948eef391ed0ec7e59dd3cb9f354699a81fc326e95"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (45.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 69ms (ActiveRecord: 64.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Started GET "/auth/gds/callback?code=74012df9e60b3dd5ea2e32ce7df5431bf64dcdb9235eb00725b36f3155dbcde4&state=4b8822a965025602589d745ccbc169a0cb0812816bcc1948" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"74012df9e60b3dd5ea2e32ce7df5431bf64dcdb9235eb00725b36f3155dbcde4", "state"=>"4b8822a965025602589d745ccbc169a0cb0812816bcc1948"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (18.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (31.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 55ms (ActiveRecord: 50.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]  (29.1ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Authenticating with gds_sso strategy Completed in 2ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Started GET "/auth/gds/callback?code=f1eb8d5c147c07573d4e14631acd33d747bc889a3ddfb0049e327c89738e75ec&state=b57227925db5abdccce144672ecba5100757611c259d0b6c" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f1eb8d5c147c07573d4e14631acd33d747bc889a3ddfb0049e327c89738e75ec", "state"=>"b57227925db5abdccce144672ecba5100757611c259d0b6c"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]  (21.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 45ms (ActiveRecord: 39.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Started GET "/auth/gds/callback?code=3090a5a9b2e89da5d9e34857aafa53bf49a46b2923cde8179ed07d727406de4f&state=ae65fee9ab6119188a611da95ec761bda749c90a9a1a278d" for 127.0.0.1 at 2015-12-08 16:16:28 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"3090a5a9b2e89da5d9e34857aafa53bf49a46b2923cde8179ed07d727406de4f", "state"=>"ae65fee9ab6119188a611da95ec761bda749c90a9a1a278d"} Authenticating with gds_sso strategy User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (24.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (26.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 56ms (ActiveRecord: 51.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:21:29 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:21:29 +0000 Started GET "/auth/gds/callback?code=f3586adc4a29a6db3ebec863e6c5f44363e7b2666a051f1c680c33ae67d09273&state=e7a65805d214487b99b130e475e4b4a3435e84ae2c122838" for 127.0.0.1 at 2015-12-09 12:21:29 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f3586adc4a29a6db3ebec863e6c5f44363e7b2666a051f1c680c33ae67d09273", "state"=>"e7a65805d214487b99b130e475e4b4a3435e84ae2c122838"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (24.5ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (22.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 53ms (ActiveRecord: 47.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:21:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Started GET "/auth/gds/callback?code=43eabe242baf3dff1be0fb0670985db54631934fa20e4150db7bfa275052ad38&state=98ac0826942bf3e9306c6ec0e48ed5d6aa2267dcc74f311d" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"43eabe242baf3dff1be0fb0670985db54631934fa20e4150db7bfa275052ad38", "state"=>"98ac0826942bf3e9306c6ec0e48ed5d6aa2267dcc74f311d"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (42.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (26.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 75ms (ActiveRecord: 70.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:11:29 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Processing by ExampleController#restricted as JSON Completed in 19ms Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Processing by ExampleController#restricted as JSON Completed in 18ms Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "disabled" = ?, "permissions" = ? WHERE "users"."id" = 1 [["disabled", nil], ["permissions", "---\n- signin\n"]]  (13.6ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (18.3ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (26.8ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (42.2ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (34.1ms) commit transaction Completed 200 OK in 214ms (Views: 0.5ms | ActiveRecord: 137.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:29 +0000 Processing by ExampleController#restricted as JSON User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (34.3ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (24.6ms) commit transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (22.1ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (20.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]  (16.9ms) commit transaction Completed 200 OK in 201ms (Views: 0.3ms | ActiveRecord: 120.8ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d37467"]]  (23.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33484"]]  (28.2ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d37467"} Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d31087"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3716"]]  (14.6ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d31087"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31087' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_content_id" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 4 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]  (20.4ms) commit transaction Completed 200 OK in 24ms (ActiveRecord: 21.1ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36735"]]  (16.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38925"]]  (17.1ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d36735"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36735' ORDER BY "users"."id" ASC LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 6 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]  (39.4ms) commit transaction Completed 200 OK in 47ms (ActiveRecord: 40.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32287"]]  (61.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32136"]]  (31.3ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32287"} Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38471"]]  (25.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d34454"]]  (29.2ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1 Completed 200 OK in 1ms (ActiveRecord: 0.3ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3633"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39126"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (30.1ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d3633"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms) Completed 403 Forbidden in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3624"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (19.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33737"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (14.9ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d3624"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d3624"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ?, "organisation_content_id" = ? WHERE "users"."id" = ? [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"], ["organisation_content_id", "aae1319e-5788-4677-998c-f1a53af528d0"], ["id", 3]]  (24.3ms) commit transaction Completed 200 OK in 36ms (ActiveRecord: 24.9ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31094"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (23.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d33619"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (37.1ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d31094"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms) Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d34462"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (42.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d31560"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (25.6ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "nonexistent-user"]] Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d39021"], ["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"]]  (32.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("uid", "email", "name", "permissions") VALUES (?, ?, ?, ?) [["uid", "a1s2d3634"], ["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"]]  (36.2ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d39021"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "a1s2d39021"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 9]]  (30.7ms) commit transaction Completed 200 OK in 34ms (ActiveRecord: 31.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]] Started GET "/" for 127.0.0.1 at 2015-12-08 16:16:46 +0000 Processing by ExampleController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:46 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 15ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:46 +0000 Started GET "/auth/gds/callback?code=83b81df28bf8dd4f10669be304be09e549d331542c625703ac45d032e052b407&state=25c62a668dd0b021530c23d4e2b722375b40c5da172378bc" for 127.0.0.1 at 2015-12-08 16:16:55 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"83b81df28bf8dd4f10669be304be09e549d331542c625703ac45d032e052b407", "state"=>"25c62a668dd0b021530c23d4e2b722375b40c5da172378bc"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]  (0.1ms) begin transaction 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"]]  (14.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]  (13.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 36ms (ActiveRecord: 28.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) 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"]] Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Started GET "/auth/gds/callback?code=b797ea162919d291f47391b22135d6bd6ba3022c52aecc68bc090e03517c6484&state=e706494cf57d3a1460a8aec8ebc2cb1097fd87f473579e72" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b797ea162919d291f47391b22135d6bd6ba3022c52aecc68bc090e03517c6484", "state"=>"e706494cf57d3a1460a8aec8ebc2cb1097fd87f473579e72"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by ExampleController#this_requires_signin_permission as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Started GET "/auth/gds/callback?code=6a0904ee76329741333b99b9c465c4fc11e6338717bc0903919d5d36ffe832d1&state=49080669c964c189aa94e4c63b5b6db0b3f5a57ea87f6251" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6a0904ee76329741333b99b9c465c4fc11e6338717bc0903919d5d36ffe832d1", "state"=>"49080669c964c189aa94e4c63b5b6db0b3f5a57ea87f6251"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by ExampleController#this_requires_signin_permission as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Started GET "/auth/gds/callback?code=3e49bd1c469c402845e44e456e89aa0e053c181c803d55051ee93c681cebe7a9&state=2fff8c3b0daf1145d76757a35d47abef67bea712073e8435" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"3e49bd1c469c402845e44e456e89aa0e053c181c803d55051ee93c681cebe7a9", "state"=>"2fff8c3b0daf1145d76757a35d47abef67bea712073e8435"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:56 +0000 Started GET "/auth/gds/callback?code=8cceeda76990a1e640b23876ab08b8910ac31985f6dff152877920b8c06166e7&state=91563b6a58a71c71b2a074258e9a6b5cefaab8db385feff9" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8cceeda76990a1e640b23876ab08b8910ac31985f6dff152877920b8c06166e7", "state"=>"91563b6a58a71c71b2a074258e9a6b5cefaab8db385feff9"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 7ms (ActiveRecord: 0.6ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Started GET "/auth/gds/callback?code=a4e598793cda50d36e7f14424069504db37ab199d0c5a0e48c6936a5f67fea80&state=43665f5c1b59d4cab1cae3a8b4d020648c58fdb31f708954" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a4e598793cda50d36e7f14424069504db37ab199d0c5a0e48c6936a5f67fea80", "state"=>"43665f5c1b59d4cab1cae3a8b4d020648c58fdb31f708954"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "test@example-client.com"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "t"], ["id", 11]]  (23.9ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by ExampleController#restricted as HTML 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"]] Authenticating with gds_sso strategy Completed in 2ms (ActiveRecord: 0.2ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Started GET "/auth/gds/callback?code=e3856910c2729c68a2f6a4d9645e7cc267124a00b94b6e9a477e6e7b142fc1d9&state=a06d3c63e75be49964b1211abd141144a7145b83756e4f14" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"e3856910c2729c68a2f6a4d9645e7cc267124a00b94b6e9a477e6e7b142fc1d9", "state"=>"a06d3c63e75be49964b1211abd141144a7145b83756e4f14"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ? WHERE "users"."id" = ? [["remotely_signed_out", "f"], ["id", 11]]  (22.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 29ms (ActiveRecord: 23.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Started GET "/auth/gds/callback?code=ae80c8bd4ffc075a12b92afb5a9109ac9c50a77e50e2a4fe90b485f600246204&state=88fae39be7cbb35f4bb5455c3de8377bf06fdf3a9f17ef51" for 127.0.0.1 at 2015-12-08 16:16:57 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ae80c8bd4ffc075a12b92afb5a9109ac9c50a77e50e2a4fe90b485f600246204", "state"=>"88fae39be7cbb35f4bb5455c3de8377bf06fdf3a9f17ef51"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:21:58 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 1ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-09 12:21:58 +0000 Started GET "/auth/gds/callback?code=551e609f0bf16379830f4a474e33257a155f729c1e4bf5bc0ed06939d87d14c0&state=d6de8ed282f50afe17d40c7de035541dab421de89b3ec1f8" for 127.0.0.1 at 2015-12-09 12:21:58 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"551e609f0bf16379830f4a474e33257a155f729c1e4bf5bc0ed06939d87d14c0", "state"=>"d6de8ed282f50afe17d40c7de035541dab421de89b3ec1f8"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:21:58 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 0ms (ActiveRecord: 0.0ms) Started GET "/auth/gds" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Started GET "/auth/gds/callback?code=dc5c1299c3381c7cd79b9a4c7ffd27adb6d5729fa57c1590701261dbfb84d964&state=0f045b25a7f74ae8c9781b3bff74aa315ba86d04b6295544" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"dc5c1299c3381c7cd79b9a4c7ffd27adb6d5729fa57c1590701261dbfb84d964", "state"=>"0f045b25a7f74ae8c9781b3bff74aa315ba86d04b6295544"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-09 12:11:58 +0000 Processing by ExampleController#restricted as HTML 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"]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Processing by ExampleController#restricted as JSON Completed in 19ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Processing by ExampleController#restricted as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "users" SET "disabled" = ? WHERE "users"."id" = ? [["disabled", nil], ["id", 11]]  (17.1ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.3ms) begin transaction  (0.2ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 104ms (Views: 0.4ms | ActiveRecord: 18.7ms) Started GET "/restricted" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Processing by ExampleController#restricted as JSON Completed in 18ms (ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2015-12-08 16:16:58 +0000 Processing by ExampleController#this_requires_signin_permission as JSON User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.0ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."uid" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "integration-uid"]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction Rendered text template (0.0ms) Completed 200 OK in 73ms (Views: 0.5ms | ActiveRecord: 1.0ms)