Connecting to database specified by database.yml  (0.7ms) select sqlite_version(*)  (7.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31153"]]  (3.6ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d31153"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms) Completed 403 Forbidden in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3755"]]  (3.1ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d3755"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3755' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (3.7ms) commit transaction Completed 200 OK in 12ms (ActiveRecord: 4.1ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33273"]]  (2.8ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d33273"} Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37928"]]  (3.5ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1 Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32662"]]  (2.8ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32662"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32662' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (2.8ms) commit transaction Completed 200 OK in 7ms (ActiveRecord: 3.2ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Connecting to database specified by database.yml  (0.7ms) select sqlite_version(*)  (5.6ms) DROP TABLE "users"  (3.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31969"]]  (3.0ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d31969"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms) Completed 403 Forbidden in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36064"]]  (2.9ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d36064"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36064' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (3.0ms) commit transaction Completed 200 OK in 12ms (ActiveRecord: 3.4ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34297"]]  (3.7ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d34297"} Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35885"]]  (4.4ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1 Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39447"]]  (3.6ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d39447"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39447' LIMIT 1  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (3.1ms) commit transaction Completed 200 OK in 7ms (ActiveRecord: 3.4ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-09-16 13:43:51 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:51 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3ms Started GET "/auth/gds" for 127.0.0.1 at 2013-09-16 13:43:51 +0000 Started GET "/auth/gds/callback?code=4cd55425411f5f17191049bf5a5b0b88fb17587557e24b248875998935813c69&state=88e2aa542b830685b71793311d588c9fb868c49b063d6617" for 127.0.0.1 at 2013-09-16 13:43:52 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"4cd55425411f5f17191049bf5a5b0b88fb17587557e24b248875998935813c69", "state"=>"88e2aa542b830685b71793311d588c9fb868c49b063d6617"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (3.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 13ms (ActiveRecord: 7.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:52 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:52 +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 2013-09-16 13:43:52 +0000 Started GET "/auth/gds/callback?code=f540a8943ce23cc5af7291b757c22235707e603d5a5f561d6d837db04b99d7f8&state=4e1ed685832c88d85150aec0809fe136bc587590149ed46b" for 127.0.0.1 at 2013-09-16 13:43:52 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f540a8943ce23cc5af7291b757c22235707e603d5a5f561d6d837db04b99d7f8", "state"=>"4e1ed685832c88d85150aec0809fe136bc587590149ed46b"} 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" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 44ms (ActiveRecord: 7.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:52 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:52 +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 2013-09-16 13:43:52 +0000 Started GET "/auth/gds/callback?code=b796d9db1611e33c6f642258e238c1acbfcc20ca270a4d167fc3b8320859e562&state=108cbb9bcd9f995597cdf670f6c29304e2a023677c52f1c2" for 127.0.0.1 at 2013-09-16 13:43:53 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b796d9db1611e33c6f642258e238c1acbfcc20ca270a4d167fc3b8320859e562", "state"=>"108cbb9bcd9f995597cdf670f6c29304e2a023677c52f1c2"} 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" = 6  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 8.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:53 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:53 +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 2013-09-16 13:43:53 +0000 Started GET "/auth/gds/callback?code=d97d65756eb1e88462c295525367febf92e10b5d30cafa8ed486211fa6d83742&state=e6d8e85324bab268370a322643ac4145aecd15e2813b7e87" for 127.0.0.1 at 2013-09-16 13:43:53 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d97d65756eb1e88462c295525367febf92e10b5d30cafa8ed486211fa6d83742", "state"=>"e6d8e85324bab268370a322643ac4145aecd15e2813b7e87"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 15ms (ActiveRecord: 7.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:53 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:53 +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 2013-09-16 13:43:53 +0000 Started GET "/auth/gds/callback?code=55bd5f47a39b8ec4e6258331208190d0c888ee1016c67f24ef5011b3f011b811&state=29b7c8f8436a98cf04140436d32a2a0dbac1fde0d1d631ec" for 127.0.0.1 at 2013-09-16 13:43:53 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"55bd5f47a39b8ec4e6258331208190d0c888ee1016c67f24ef5011b3f011b811", "state"=>"29b7c8f8436a98cf04140436d32a2a0dbac1fde0d1d631ec"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (3.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 14ms (ActiveRecord: 7.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:53 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:53 +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 2013-09-16 13:43:53 +0000 Started GET "/auth/gds/callback?code=ca935d837cf7b6d476023db86acbf743a187e97c4771d246a4a3b9c1e74ba772&state=0cd65d47b189d50037b1e0f44fa8098cf5de72f8234cb390" for 127.0.0.1 at 2013-09-16 13:43:54 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ca935d837cf7b6d476023db86acbf743a187e97c4771d246a4a3b9c1e74ba772", "state"=>"0cd65d47b189d50037b1e0f44fa8098cf5de72f8234cb390"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16ms (ActiveRecord: 8.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.0ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-16 13:43:54 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +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 2013-09-16 13:43:54 +0000 Started GET "/auth/gds/callback?code=14b4757002e4edec2988e34d70e04c5a6668d8de1f707ed69715b8a7b0b277e0&state=f83f76a95d9d502514e8b18ef26e5c5633fa201735582379" for 127.0.0.1 at 2013-09-16 13:43:54 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"14b4757002e4edec2988e34d70e04c5a6668d8de1f707ed69715b8a7b0b277e0", "state"=>"f83f76a95d9d502514e8b18ef26e5c5633fa201735582379"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (5.4ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16ms (ActiveRecord: 8.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +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 2013-09-16 13:43:54 +0000 Started GET "/auth/gds/callback?code=de6654fc8171cdde1193e757faf0d123bf19da9f222f3a10a0bbf76c612bd2af&state=5fca6928f35151486626a2c964b69906658e222439a0448b" for 127.0.0.1 at 2013-09-16 13:43:54 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"de6654fc8171cdde1193e757faf0d123bf19da9f222f3a10a0bbf76c612bd2af", "state"=>"5fca6928f35151486626a2c964b69906658e222439a0448b"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-17 09:48:54 +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 2013-09-17 09:48:54 +0000 Started GET "/auth/gds/callback?code=210fe92b3031924190d42cac8ae62872432a561c37db5b949c6c401151a640a1&state=9d88db5b8bc8173164ee381d06ba0a0014edf2b038277951" for 127.0.0.1 at 2013-09-17 09:48:54 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"210fe92b3031924190d42cac8ae62872432a561c37db5b949c6c401151a640a1", "state"=>"9d88db5b8bc8173164ee381d06ba0a0014edf2b038277951"} Authenticating with gds_sso strategy User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.4ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 46ms (ActiveRecord: 7.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-17 09:48:54 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:54 +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 2013-09-16 13:43:54 +0000 Started GET "/auth/gds/callback?code=7435f598318f6156aef6f49a3890c45b1c3590461698af63d3403dcf5b4f0e2f&state=4563da7f010b0a616b1f2e63414581cc5d055df8a431f06d" for 127.0.0.1 at 2013-09-16 13:43:55 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7435f598318f6156aef6f49a3890c45b1c3590461698af63d3403dcf5b4f0e2f", "state"=>"4563da7f010b0a616b1f2e63414581cc5d055df8a431f06d"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-17 09:38:55 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2ms Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:55 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 7ms Started GET "/restricted" for 127.0.0.1 at 2013-09-16 13:43:55 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy 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" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Completed 200 OK in 35ms (Views: 0.2ms | ActiveRecord: 7.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-16 13:43:55 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token strategy User Load (0.1ms) 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" = 6  (3.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.4ms) commit transaction Completed 200 OK in 35ms (Views: 0.2ms | ActiveRecord: 7.2ms) Connecting to database specified by database.yml  (0.7ms) select sqlite_version(*)  (14.3ms) DROP TABLE "users"  (11.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39228"]]  (10.7ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d39228"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms) Completed 403 Forbidden in 21ms (Views: 20.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34759"]]  (11.3ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d34759"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34759' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (11.9ms) commit transaction Completed 200 OK in 20ms (ActiveRecord: 12.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36361"]]  (32.4ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d36361"} Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32615"]]  (11.5ms) 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 1ms (ActiveRecord: 0.2ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39189"]]  (12.0ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d39189"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39189' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (12.0ms) commit transaction Completed 200 OK in 16ms (ActiveRecord: 12.4ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-09-23 11:30:45 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:45 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 2ms Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 11:30:45 +0000 Started GET "/auth/gds/callback?code=bdee3e71c9f2f13d411966be940130266e796aab92a2b4e2b21252d868dda087&state=dfebadce4a162af9389ba8874be6579ce1b711176de75971" for 127.0.0.1 at 2013-09-23 11:30:46 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"bdee3e71c9f2f13d411966be940130266e796aab92a2b4e2b21252d868dda087", "state"=>"dfebadce4a162af9389ba8874be6579ce1b711176de75971"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (3.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14ms (ActiveRecord: 6.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:46 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:46 +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 2013-09-23 11:30:46 +0000 Started GET "/auth/gds/callback?code=ead45bb6be335fbd5c0e6189e912ddc74622c31dd13aa0fdbfd8d064cef55fad&state=3c4b825384b5576836abc0eb698312b41eb20ff0e291c7b4" for 127.0.0.1 at 2013-09-23 11:30:46 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ead45bb6be335fbd5c0e6189e912ddc74622c31dd13aa0fdbfd8d064cef55fad", "state"=>"3c4b825384b5576836abc0eb698312b41eb20ff0e291c7b4"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 45ms (ActiveRecord: 8.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:46 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:46 +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 2013-09-23 11:30:46 +0000 Started GET "/auth/gds/callback?code=609fcdc1a2297ee45c2a60e54efc93b0f7de9f608c6c463b52cd01a4d8869525&state=cfc88f934b9f9b00d3dadeeda67c3db641988c63df97b47e" for 127.0.0.1 at 2013-09-23 11:30:47 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"609fcdc1a2297ee45c2a60e54efc93b0f7de9f608c6c463b52cd01a4d8869525", "state"=>"cfc88f934b9f9b00d3dadeeda67c3db641988c63df97b47e"} 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" = 6  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16ms (ActiveRecord: 9.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:47 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:47 +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 2013-09-23 11:30:47 +0000 Started GET "/auth/gds/callback?code=6f2be0abb02c49562330b9cc643173e8f81daf92e985ca1482ea1054104a024f&state=0b7cae04d7db420a81f7a96c4018f7de7595bf43f6ad052a" for 127.0.0.1 at 2013-09-23 11:30:47 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6f2be0abb02c49562330b9cc643173e8f81daf92e985ca1482ea1054104a024f", "state"=>"0b7cae04d7db420a81f7a96c4018f7de7595bf43f6ad052a"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (5.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.5ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 17ms (ActiveRecord: 9.6ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:47 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:47 +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 2013-09-23 11:30:47 +0000 Started GET "/auth/gds/callback?code=ac955142e56830c27a94ef2a82563e46d2325cfee4bdfa95f4307d36767f436c&state=f77a1c0438590e2eeb8615ec7d5ffca3d19ab548b57ba9ed" for 127.0.0.1 at 2013-09-23 11:30:47 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ac955142e56830c27a94ef2a82563e46d2325cfee4bdfa95f4307d36767f436c", "state"=>"f77a1c0438590e2eeb8615ec7d5ffca3d19ab548b57ba9ed"} 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" = 6  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 16ms (ActiveRecord: 9.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:47 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:47 +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 2013-09-23 11:30:47 +0000 Started GET "/auth/gds/callback?code=05d3e5b0dd2b3dfe7171a66b8c5962549bee156c8a9976b74841641d8385d7b8&state=eb6e4ae8f6ef2c9dd607917e0fed0cfe5c7099508d8f573a" for 127.0.0.1 at 2013-09-23 11:30:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"05d3e5b0dd2b3dfe7171a66b8c5962549bee156c8a9976b74841641d8385d7b8", "state"=>"eb6e4ae8f6ef2c9dd607917e0fed0cfe5c7099508d8f573a"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17ms (ActiveRecord: 9.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-23 11:30:48 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +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 2013-09-23 11:30:48 +0000 Started GET "/auth/gds/callback?code=8448e7fe5f7a7953e45de6fc9acf910e47aa26eaf5358a30e3c161993129fb60&state=a8e8575a54e33efff78fda39f092646b1b8f8338e2b7f3a6" for 127.0.0.1 at 2013-09-23 11:30:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8448e7fe5f7a7953e45de6fc9acf910e47aa26eaf5358a30e3c161993129fb60", "state"=>"a8e8575a54e33efff78fda39f092646b1b8f8338e2b7f3a6"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17ms (ActiveRecord: 10.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +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 2013-09-23 11:30:48 +0000 Started GET "/auth/gds/callback?code=8d6a586ed25f31979a6882b59fbf1b16f3a5c867a55c5dcd3535c8c877ace626&state=b9c54448a1c07decba8f60ffe97bc07f523ead372e9b8045" for 127.0.0.1 at 2013-09-23 11:30:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8d6a586ed25f31979a6882b59fbf1b16f3a5c867a55c5dcd3535c8c877ace626", "state"=>"b9c54448a1c07decba8f60ffe97bc07f523ead372e9b8045"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17ms (ActiveRecord: 9.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-24 07:35:48 +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 2013-09-24 07:35:48 +0000 Started GET "/auth/gds/callback?code=fa39c2668673b8005193ff4b2dd82df3c95bfa71f25a5acab21a1c4446fe23f4&state=4c494cabb99675828db85230c1b041df8d9525354d4f969e" for 127.0.0.1 at 2013-09-24 07:35:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"fa39c2668673b8005193ff4b2dd82df3c95bfa71f25a5acab21a1c4446fe23f4", "state"=>"4c494cabb99675828db85230c1b041df8d9525354d4f969e"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (4.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 9.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-24 07:35:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:48 +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 2013-09-23 11:30:48 +0000 Started GET "/auth/gds/callback?code=9da24ac5af0bc125433ecc9524db2068ff3549eeadf2a22a78177dfafadebbb3&state=2be262b2d2ed96e507a8908b23ba2c554e6e9b1dbec84be5" for 127.0.0.1 at 2013-09-23 11:30:49 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"9da24ac5af0bc125433ecc9524db2068ff3549eeadf2a22a78177dfafadebbb3", "state"=>"2be262b2d2ed96e507a8908b23ba2c554e6e9b1dbec84be5"} 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" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16ms (ActiveRecord: 9.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-24 07:25:49 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2ms Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:49 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 7ms Started GET "/restricted" for 127.0.0.1 at 2013-09-23 11:30:49 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy 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" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.8ms) commit transaction Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 9.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 11:30:49 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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" = 6  (5.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 8.4ms) Connecting to database specified by database.yml  (0.8ms) select sqlite_version(*)  (13.3ms) DROP TABLE "users"  (31.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3884"]]  (10.3ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d3884"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms) Completed 403 Forbidden in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35734"]]  (37.5ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d35734"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35734' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (17.0ms) commit transaction Completed 200 OK in 25ms (ActiveRecord: 17.4ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34199"]]  (18.8ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d34199"} Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31081"]]  (8.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 1ms (ActiveRecord: 0.2ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32250"]]  (3.6ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32250"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32250' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (2.7ms) commit transaction Completed 200 OK in 6ms (ActiveRecord: 3.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-09-23 12:37:30 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:30 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 2ms Started GET "/auth/gds" for 127.0.0.1 at 2013-09-23 12:37:30 +0000 Started GET "/auth/gds/callback?code=055c5e5115e535a3c909d62315c3a6db0a7e15ffcde8e329fc71ea9a170be736&state=d8a52901859ffbc4a2c48a2e109b6ff5cbc3a832b3c4bbf9" for 127.0.0.1 at 2013-09-23 12:37:31 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"055c5e5115e535a3c909d62315c3a6db0a7e15ffcde8e329fc71ea9a170be736", "state"=>"d8a52901859ffbc4a2c48a2e109b6ff5cbc3a832b3c4bbf9"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14ms (ActiveRecord: 8.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:31 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37: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 2013-09-23 12:37:31 +0000 Started GET "/auth/gds/callback?code=9884bd0f7c963f4c38422c50e6283674378e49a7c38d54e296b1433ebe99b03b&state=3181d316ff573488c20bda39399d6ea5063e89380d6f3143" for 127.0.0.1 at 2013-09-23 12:37:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"9884bd0f7c963f4c38422c50e6283674378e49a7c38d54e296b1433ebe99b03b", "state"=>"3181d316ff573488c20bda39399d6ea5063e89380d6f3143"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 45ms (ActiveRecord: 8.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37: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 2013-09-23 12:37:32 +0000 Started GET "/auth/gds/callback?code=80d8dc624d65622878e4c3c1eb174e4d28c9b1d9e7319c83335f0eaf572e313d&state=e5a89af3fa88ea720177be4b7946de40693fb0096820a0ac" for 127.0.0.1 at 2013-09-23 12:37:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"80d8dc624d65622878e4c3c1eb174e4d28c9b1d9e7319c83335f0eaf572e313d", "state"=>"e5a89af3fa88ea720177be4b7946de40693fb0096820a0ac"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14ms (ActiveRecord: 7.7ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:32 +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 2013-09-23 12:37:32 +0000 Started GET "/auth/gds/callback?code=da4935f3727a513cfcd258d36bd769a429bba53972f7c6ab59c68892616aa513&state=dcfc1695bf5b9a894de6b703a7f69b4ebe772a9b03a07a5d" for 127.0.0.1 at 2013-09-23 12:37:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"da4935f3727a513cfcd258d36bd769a429bba53972f7c6ab59c68892616aa513", "state"=>"dcfc1695bf5b9a894de6b703a7f69b4ebe772a9b03a07a5d"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.6ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 14ms (ActiveRecord: 7.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:32 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:32 +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 2013-09-23 12:37:32 +0000 Started GET "/auth/gds/callback?code=7c321cd30d0c43ab2851a7cc3d6687ab5bbe3afd7847cafd6fad512cb8e2d6e2&state=2bddf3a79f4b65e60bbb5c565430b36326a9d0fa94816b20" for 127.0.0.1 at 2013-09-23 12:37:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7c321cd30d0c43ab2851a7cc3d6687ab5bbe3afd7847cafd6fad512cb8e2d6e2", "state"=>"2bddf3a79f4b65e60bbb5c565430b36326a9d0fa94816b20"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (12.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (11.9ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 31ms (ActiveRecord: 24.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:33 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +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 2013-09-23 12:37:33 +0000 Started GET "/auth/gds/callback?code=0c3b23240b97cb7d99126dd2c3397a06fc3f8c531a47fabaf9e39ab7f9d9a001&state=59102a409f214d76343f2ce4108ae7ebe90d6ee8b20f2893" for 127.0.0.1 at 2013-09-23 12:37:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"0c3b23240b97cb7d99126dd2c3397a06fc3f8c531a47fabaf9e39ab7f9d9a001", "state"=>"59102a409f214d76343f2ce4108ae7ebe90d6ee8b20f2893"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (12.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (12.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 32ms (ActiveRecord: 25.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (10.2ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-23 12:37:33 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +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 2013-09-23 12:37:33 +0000 Started GET "/auth/gds/callback?code=4aa78db028388035a6cfee00434bd3310848e6a5c4a368f779f40522b1a04979&state=58e4edf72f862d640aa271c8e9d89ce0a8353d20ce87c272" for 127.0.0.1 at 2013-09-23 12:37:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"4aa78db028388035a6cfee00434bd3310848e6a5c4a368f779f40522b1a04979", "state"=>"58e4edf72f862d640aa271c8e9d89ce0a8353d20ce87c272"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (3.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14ms (ActiveRecord: 7.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:33 +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 2013-09-23 12:37:33 +0000 Started GET "/auth/gds/callback?code=b7d909b346c327e4bf227637f560ed19c90ae5e712188df5a1ae8b52d5046405&state=f5d58cc9029dc6607e7899f4e3dd7e87b0532d8a63b7599e" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b7d909b346c327e4bf227637f560ed19c90ae5e712188df5a1ae8b52d5046405", "state"=>"f5d58cc9029dc6607e7899f4e3dd7e87b0532d8a63b7599e"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14ms (ActiveRecord: 7.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-24 08:42:34 +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 2013-09-24 08:42:34 +0000 Started GET "/auth/gds/callback?code=6b11da83c5d76f81708ed1270ff93c01018676674569959874aed9665f7c7e82&state=230300d21864fdb6e3a47558d0fb7882da07dac4e6f23ed7" for 127.0.0.1 at 2013-09-24 08:42:34 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6b11da83c5d76f81708ed1270ff93c01018676674569959874aed9665f7c7e82", "state"=>"230300d21864fdb6e3a47558d0fb7882da07dac4e6f23ed7"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (3.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 13ms (ActiveRecord: 7.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-24 08:42:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +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 2013-09-23 12:37:34 +0000 Started GET "/auth/gds/callback?code=1ef0a5ea47e0d6b21764f34294b0c4801f007d0cfd868196677ed5504b5b7fe2&state=d94b355bbd641f86ce4a1749a6df73097dccc4f83dc0cab1" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"1ef0a5ea47e0d6b21764f34294b0c4801f007d0cfd868196677ed5504b5b7fe2", "state"=>"d94b355bbd641f86ce4a1749a6df73097dccc4f83dc0cab1"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-24 08:32:34 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2ms Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 7ms Started GET "/restricted" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy 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" = 6  (3.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction Completed 200 OK in 34ms (Views: 0.2ms | ActiveRecord: 7.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-23 12:37:34 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token strategy User Load (0.1ms) 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" = 6  (3.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 7.1ms) Connecting to database specified by database.yml  (0.8ms) select sqlite_version(*)  (24.4ms) DROP TABLE "users"  (11.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37458"]]  (18.8ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d37458"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.0ms) Completed 403 Forbidden in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32480"]]  (19.3ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d32480"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32480' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (32.4ms) commit transaction Completed 200 OK in 98ms (ActiveRecord: 32.8ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32629"]]  (15.3ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32629"} Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37907"]]  (23.5ms) 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 1ms (ActiveRecord: 0.2ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33618"]]  (37.5ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d33618"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33618' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (13.8ms) commit transaction Completed 200 OK in 18ms (ActiveRecord: 14.2ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-09-30 12:48:18 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:18 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3ms Started GET "/auth/gds" for 127.0.0.1 at 2013-09-30 12:48:18 +0000 Started GET "/auth/gds/callback?code=d484013d97e38f16404fc0b9c63d8cd742a8d99cf1d84d1f9b064066d028a420&state=b4c00acff89a7cb5ce2174417668700c4382dc3e73e8bb9e" for 127.0.0.1 at 2013-09-30 12:48:19 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d484013d97e38f16404fc0b9c63d8cd742a8d99cf1d84d1f9b064066d028a420", "state"=>"b4c00acff89a7cb5ce2174417668700c4382dc3e73e8bb9e"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (4.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14ms (ActiveRecord: 7.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:19 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:19 +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 2013-09-30 12:48:19 +0000 Started GET "/auth/gds/callback?code=f1f7d684f3b2ee4a232c6a1a1f0b047ec671a2c989f6e4a3511493c143ffdf23&state=a2b093684d5cae367f7a8f53ba37a4f7afbffd063701fc81" for 127.0.0.1 at 2013-09-30 12:48:20 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f1f7d684f3b2ee4a232c6a1a1f0b047ec671a2c989f6e4a3511493c143ffdf23", "state"=>"a2b093684d5cae367f7a8f53ba37a4f7afbffd063701fc81"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction  (0.0ms) begin transaction  (0.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 48ms (ActiveRecord: 8.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:20 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:20 +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 2013-09-30 12:48:20 +0000 Started GET "/auth/gds/callback?code=bac9627d46507ebb2f947e603592f753b0bf746e9595b438463c968ee2f222e3&state=d0b9b796ce713b154d0eacadba38d2f6de8bd94f6cc204d0" for 127.0.0.1 at 2013-09-30 12:48:20 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"bac9627d46507ebb2f947e603592f753b0bf746e9595b438463c968ee2f222e3", "state"=>"d0b9b796ce713b154d0eacadba38d2f6de8bd94f6cc204d0"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (3.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14ms (ActiveRecord: 7.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:20 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:20 +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 2013-09-30 12:48:20 +0000 Started GET "/auth/gds/callback?code=d1df3abf2b5a516a4febdc2e1159d3a20e033a0817f43c7061895f7aa82b1985&state=5a5a0416a0aaa51cb6ec52a1ff4f13dca69579076610c963" for 127.0.0.1 at 2013-09-30 12:48:20 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d1df3abf2b5a516a4febdc2e1159d3a20e033a0817f43c7061895f7aa82b1985", "state"=>"5a5a0416a0aaa51cb6ec52a1ff4f13dca69579076610c963"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 16ms (ActiveRecord: 7.6ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:20 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:20 +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 2013-09-30 12:48:20 +0000 Started GET "/auth/gds/callback?code=1560bb6c2536efa132f1b279c9687bdfca58ff36ff263be0e30d4996798a091e&state=882f3aff87783aef08fc533e8b08722a852112256b248753" for 127.0.0.1 at 2013-09-30 12:48:20 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"1560bb6c2536efa132f1b279c9687bdfca58ff36ff263be0e30d4996798a091e", "state"=>"882f3aff87783aef08fc533e8b08722a852112256b248753"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.4ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 30ms (ActiveRecord: 8.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:21 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +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 2013-09-30 12:48:21 +0000 Started GET "/auth/gds/callback?code=79eeefafa5ba2723361a415e9a90261a57aaba45793a711b2783bf6d11c60f5e&state=8df4f2ec3f7940d348fa004eb56bed7e3a38768376631c24" for 127.0.0.1 at 2013-09-30 12:48:21 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"79eeefafa5ba2723361a415e9a90261a57aaba45793a711b2783bf6d11c60f5e", "state"=>"8df4f2ec3f7940d348fa004eb56bed7e3a38768376631c24"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (16.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 28ms (ActiveRecord: 20.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-09-30 12:48:21 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +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 2013-09-30 12:48:21 +0000 Started GET "/auth/gds/callback?code=d2f3535c89a462e478c76136a836413487510740cc6400f942163be5f9dd4d37&state=47bb6b00c720cb4c552b258f8010598e3c401ae5c456d4b2" for 127.0.0.1 at 2013-09-30 12:48:21 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d2f3535c89a462e478c76136a836413487510740cc6400f942163be5f9dd4d37", "state"=>"47bb6b00c720cb4c552b258f8010598e3c401ae5c456d4b2"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (21.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 32ms (ActiveRecord: 25.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:21 +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 2013-09-30 12:48:21 +0000 Started GET "/auth/gds/callback?code=2682deac4667cce26808ee90e880ab6bc6455e8f585fadd1401a436f657e36c0&state=2982124f0b79ec5783a634b5bddeb2a7b6eb251db7dc3a00" for 127.0.0.1 at 2013-09-30 12:48:22 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"2682deac4667cce26808ee90e880ab6bc6455e8f585fadd1401a436f657e36c0", "state"=>"2982124f0b79ec5783a634b5bddeb2a7b6eb251db7dc3a00"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17ms (ActiveRecord: 8.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-01 08:53:22 +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 2013-10-01 08:53:22 +0000 Started GET "/auth/gds/callback?code=6cf1c043bdd35b99a550550e17abfb9a4ea606bb37efb4733db0fe5acb9e22af&state=0639a411cf813df9283c79cf0db70c7669476d1e018dc93d" for 127.0.0.1 at 2013-10-01 08:53:22 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6cf1c043bdd35b99a550550e17abfb9a4ea606bb37efb4733db0fe5acb9e22af", "state"=>"0639a411cf813df9283c79cf0db70c7669476d1e018dc93d"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (23.4ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (20.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 52ms (ActiveRecord: 44.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-01 08:53:22 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +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 2013-09-30 12:48:22 +0000 Started GET "/auth/gds/callback?code=f7759babbc6cdea65fee47ee0424df5f1605d0706e70c345133211bd323101ef&state=32573a9fc99b5ceae14cce6a793620ace6e2e008033ebc73" for 127.0.0.1 at 2013-09-30 12:48:22 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f7759babbc6cdea65fee47ee0424df5f1605d0706e70c345133211bd323101ef", "state"=>"32573a9fc99b5ceae14cce6a793620ace6e2e008033ebc73"} 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" = 6  (4.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16ms (ActiveRecord: 8.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-01 08:43:22 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2ms Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:22 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:22 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 7ms Started GET "/restricted" for 127.0.0.1 at 2013-09-30 12:48:23 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token 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" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.9ms) commit transaction Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 8.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-09-30 12:48:23 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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" = 6  (7.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Completed 200 OK in 52ms (Views: 0.2ms | ActiveRecord: 11.2ms) Connecting to database specified by database.yml  (1.0ms) select sqlite_version(*)  (7.9ms) DROP TABLE "users"  (3.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33503"]]  (3.2ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d33503"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.2ms) Completed 403 Forbidden in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37801"]]  (3.6ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d37801"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37801' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (3.2ms) commit transaction Completed 200 OK in 12ms (ActiveRecord: 3.5ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38543"]]  (3.5ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d38543"} Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32466"]]  (3.5ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"nonexistent-user"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1 Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38600"]]  (2.9ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d38600"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38600' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (2.7ms) commit transaction Completed 200 OK in 7ms (ActiveRecord: 3.0ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-10-02 15:26:12 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:12 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-02 15:26:12 +0000 Started GET "/auth/gds/callback?code=7d15e1520c4dda96d8658b721b6902d7f79e59bd9011f6256320b484f2c7b980&state=84d29007268fb84523e04a0ef2dc3d9796634e7dec2a5a32" for 127.0.0.1 at 2013-10-02 15:26:13 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7d15e1520c4dda96d8658b721b6902d7f79e59bd9011f6256320b484f2c7b980", "state"=>"84d29007268fb84523e04a0ef2dc3d9796634e7dec2a5a32"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (3.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 12ms (ActiveRecord: 6.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +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 2013-10-02 15:26:14 +0000 Started GET "/auth/gds/callback?code=08bb64663aef878a49f6a4dbdd5e6fd1a4a8dabbece06b09f3af900604674745&state=dd24d6bc43769a17fcaee9a83a269a4548e875e1463ab159" for 127.0.0.1 at 2013-10-02 15:26:14 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"08bb64663aef878a49f6a4dbdd5e6fd1a4a8dabbece06b09f3af900604674745", "state"=>"dd24d6bc43769a17fcaee9a83a269a4548e875e1463ab159"} 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.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 47ms (ActiveRecord: 8.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +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 2013-10-02 15:26:14 +0000 Started GET "/auth/gds/callback?code=fd3cb17aabfd5fd329298c80492d9c5e1edca43098f629cbd25267d1c7ef22ff&state=f371d9d4389b16937d81d39a9c2083ceeba444fa63686084" for 127.0.0.1 at 2013-10-02 15:26:14 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"fd3cb17aabfd5fd329298c80492d9c5e1edca43098f629cbd25267d1c7ef22ff", "state"=>"f371d9d4389b16937d81d39a9c2083ceeba444fa63686084"} 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" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:14 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:14 +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 2013-10-02 15:26:14 +0000 Started GET "/auth/gds/callback?code=a40b525e5ba17e73fdbe6b5d206b0505908e4bf9dbf656c04acf00249f0eca49&state=5afd1b2d20fd3f7b958d2f05faedf85f25b4e6a0396ce1ca" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a40b525e5ba17e73fdbe6b5d206b0505908e4bf9dbf656c04acf00249f0eca49", "state"=>"5afd1b2d20fd3f7b958d2f05faedf85f25b4e6a0396ce1ca"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 16ms (ActiveRecord: 8.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:15 +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 2013-10-02 15:26:15 +0000 Started GET "/auth/gds/callback?code=12762211dd795628ada82bf246ffd0d1837f3245d645982937d4aa2a23a5524e&state=d15f37cd1a1f10e73ace34f7df2f51390367e09e491cd9b7" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"12762211dd795628ada82bf246ffd0d1837f3245d645982937d4aa2a23a5524e", "state"=>"d15f37cd1a1f10e73ace34f7df2f51390367e09e491cd9b7"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (3.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.5ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 14ms (ActiveRecord: 7.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:15 +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 2013-10-02 15:26:15 +0000 Started GET "/auth/gds/callback?code=729168400275b7ed95cd7d87495234f962ced9f39a494f194315a463b261b207&state=d3ee9a84fac64d20e25bf97c76b4911ab62ded0862a28450" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"729168400275b7ed95cd7d87495234f962ced9f39a494f194315a463b261b207", "state"=>"d3ee9a84fac64d20e25bf97c76b4911ab62ded0862a28450"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:15 +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 2013-10-02 15:26:15 +0000 Started GET "/auth/gds/callback?code=ccc88fc69647c69a53f872aee0c3d21c0ce01599b8c5bcfe4ae79207dc016752&state=efec1487654ea1c636c503ed9f5cb0730b11692621dd4215" for 127.0.0.1 at 2013-10-02 15:26:15 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ccc88fc69647c69a53f872aee0c3d21c0ce01599b8c5bcfe4ae79207dc016752", "state"=>"efec1487654ea1c636c503ed9f5cb0730b11692621dd4215"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (3.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 8.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +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 2013-10-02 15:26:16 +0000 Started GET "/auth/gds/callback?code=faef8624a6b69371cf7e207af1b215f16dda59e7a8f669938a4ec555fbf0b153&state=804798fc4266b2e588149e9b51e4f1176699febf620301a1" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"faef8624a6b69371cf7e207af1b215f16dda59e7a8f669938a4ec555fbf0b153", "state"=>"804798fc4266b2e588149e9b51e4f1176699febf620301a1"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-03 11:31:16 +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 2013-10-03 11:31:16 +0000 Started GET "/auth/gds/callback?code=253b26881b71c3d54a29f58a4b10aa0c651d70e80f19b1615f3da6b41ed89202&state=deeb55564cc8cdbd526b56d17eff67e8c37959c9da283d9b" for 127.0.0.1 at 2013-10-03 11:31:16 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"253b26881b71c3d54a29f58a4b10aa0c651d70e80f19b1615f3da6b41ed89202", "state"=>"deeb55564cc8cdbd526b56d17eff67e8c37959c9da283d9b"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 47ms (ActiveRecord: 7.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-03 11:31:16 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +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 2013-10-02 15:26:16 +0000 Started GET "/auth/gds/callback?code=75cca67039ce35bfaa00bf812b968e049d8d3e9387f305703df19a024873f11e&state=4ea070cb7db43a9118eb51c9920e3959ac96dbb83205628d" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"75cca67039ce35bfaa00bf812b968e049d8d3e9387f305703df19a024873f11e", "state"=>"4ea070cb7db43a9118eb51c9920e3959ac96dbb83205628d"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-03 11:21:16 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 4ms Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:16 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 7ms Started GET "/restricted" for 127.0.0.1 at 2013-10-02 15:26:17 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy 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" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Completed 200 OK in 37ms (Views: 0.2ms | ActiveRecord: 7.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-02 15:26:17 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.3ms) commit transaction Completed 200 OK in 71ms (Views: 0.2ms | ActiveRecord: 7.9ms) Connecting to database specified by database.yml  (0.7ms) select sqlite_version(*)  (6.8ms) DROP TABLE "users"  (3.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36132"]]  (4.1ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d36132"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms) Completed 403 Forbidden in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3823"]]  (3.2ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d3823"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3823' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (4.0ms) commit transaction Completed 200 OK in 12ms (ActiveRecord: 4.3ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32729"]]  (3.0ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32729"} Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32211"]]  (2.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 1ms (ActiveRecord: 0.2ms)  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39814"]]  (3.5ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d39814"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39814' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (3.3ms) commit transaction Completed 200 OK in 7ms (ActiveRecord: 3.6ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-10-04 11:53:03 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:03 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-04 11:53:03 +0000 Started GET "/auth/gds/callback?code=420c8437e87daaed288186ffe45158464c83dbc97735000353e0895b1130c2cf&state=e499c377bc1d3cc446906afe1da47cc62faec253f94228db" for 127.0.0.1 at 2013-10-04 11:53:04 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"420c8437e87daaed288186ffe45158464c83dbc97735000353e0895b1130c2cf", "state"=>"e499c377bc1d3cc446906afe1da47cc62faec253f94228db"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (4.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14ms (ActiveRecord: 7.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +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 2013-10-04 11:53:04 +0000 Started GET "/auth/gds/callback?code=0beefafe73571b828d506e314137c383b3d9668dc2de2932bffb85df95833f2b&state=282e9bd73eff42035b8745db4110e69a9d8ddff70061d142" for 127.0.0.1 at 2013-10-04 11:53:04 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"0beefafe73571b828d506e314137c383b3d9668dc2de2932bffb85df95833f2b", "state"=>"282e9bd73eff42035b8745db4110e69a9d8ddff70061d142"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 46ms (ActiveRecord: 8.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +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 2013-10-04 11:53:04 +0000 Started GET "/auth/gds/callback?code=792120e6a364952401684794fa5ea62930c961998d1938b894a8add846d45404&state=09de51349003ab34c874771932f31a3141578e7c0aa50e8b" for 127.0.0.1 at 2013-10-04 11:53:04 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"792120e6a364952401684794fa5ea62930c961998d1938b894a8add846d45404", "state"=>"09de51349003ab34c874771932f31a3141578e7c0aa50e8b"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (5.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16ms (ActiveRecord: 9.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:04 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:05 +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 2013-10-04 11:53:05 +0000 Started GET "/auth/gds/callback?code=804bbe29d7672dcf529c2cf5e1970b419c2c33ade6206583c82f3b9b27417ee7&state=e6ebcaf670c31cec3f168991124dbabcf8456ea4bb0ceade" for 127.0.0.1 at 2013-10-04 11:53:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"804bbe29d7672dcf529c2cf5e1970b419c2c33ade6206583c82f3b9b27417ee7", "state"=>"e6ebcaf670c31cec3f168991124dbabcf8456ea4bb0ceade"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 15ms (ActiveRecord: 7.8ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:05 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:05 +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 2013-10-04 11:53:05 +0000 Started GET "/auth/gds/callback?code=1e02e7105ebdecd3c8ee938a9b8b2f1813affbd5717747ff567aef58a3e46724&state=9fc7cdfa8b0876d4ea180c8d7cea3dbaab9248465ed112fb" for 127.0.0.1 at 2013-10-04 11:53:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"1e02e7105ebdecd3c8ee938a9b8b2f1813affbd5717747ff567aef58a3e46724", "state"=>"9fc7cdfa8b0876d4ea180c8d7cea3dbaab9248465ed112fb"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 14ms (ActiveRecord: 7.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:05 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:05 +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 2013-10-04 11:53:05 +0000 Started GET "/auth/gds/callback?code=c79fe0cd5919c3eba88e4c02817e9d608da079f39456cf918179222f2faa8bd6&state=c1d3da5b0ea9e07c111c0a00ed9c33b223dd00ebcdae05c3" for 127.0.0.1 at 2013-10-04 11:53:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c79fe0cd5919c3eba88e4c02817e9d608da079f39456cf918179222f2faa8bd6", "state"=>"c1d3da5b0ea9e07c111c0a00ed9c33b223dd00ebcdae05c3"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:05 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:05 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-04 11:53:05 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +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 2013-10-04 11:53:06 +0000 Started GET "/auth/gds/callback?code=a445b0f78f7fcb96c5f67df707bdda18c8d6f8e255402eb5fdb3fdd4f7107a4e&state=069acacf2707ee34ee8c62fe146e04e956ebe33d63499378" for 127.0.0.1 at 2013-10-04 11:53:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a445b0f78f7fcb96c5f67df707bdda18c8d6f8e255402eb5fdb3fdd4f7107a4e", "state"=>"069acacf2707ee34ee8c62fe146e04e956ebe33d63499378"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (4.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +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 2013-10-04 11:53:06 +0000 Started GET "/auth/gds/callback?code=b36ebf97e8f46ff74a4b4e299cd0b7ec137a9ac1da1d16ff61678ae9fbabbf2c&state=1c2f476c38445734195139417c19d2e9b73ee430defb57c8" for 127.0.0.1 at 2013-10-04 11:53:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b36ebf97e8f46ff74a4b4e299cd0b7ec137a9ac1da1d16ff61678ae9fbabbf2c", "state"=>"1c2f476c38445734195139417c19d2e9b73ee430defb57c8"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-05 07:58:06 +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 2013-10-05 07:58:06 +0000 Started GET "/auth/gds/callback?code=c8c9d9275c5b5560573226ea5d01eef7595e50346e92839e991596802f8d790b&state=393045a693c13525b75877dd89eae5cc724385a28399104d" for 127.0.0.1 at 2013-10-05 07:58:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c8c9d9275c5b5560573226ea5d01eef7595e50346e92839e991596802f8d790b", "state"=>"393045a693c13525b75877dd89eae5cc724385a28399104d"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 46ms (ActiveRecord: 8.7ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-05 07:58:06 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +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 2013-10-04 11:53:06 +0000 Started GET "/auth/gds/callback?code=bcfadc014c245982fc8a7e1095c083500c27bd2410f1ad4f035fea95489c65f7&state=3a11f2dda7d8a9fb049b21bde7a49664e6cbff428a8d1e0d" for 127.0.0.1 at 2013-10-04 11:53:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"bcfadc014c245982fc8a7e1095c083500c27bd2410f1ad4f035fea95489c65f7", "state"=>"3a11f2dda7d8a9fb049b21bde7a49664e6cbff428a8d1e0d"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15ms (ActiveRecord: 7.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:06 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-05 07:48:07 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:07 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2ms Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:07 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:07 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:07 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 7ms Started GET "/restricted" for 127.0.0.1 at 2013-10-04 11:53:07 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy 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" = 6  (4.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Completed 200 OK in 36ms (Views: 0.2ms | ActiveRecord: 7.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-04 11:53:07 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token strategy User Load (0.1ms) 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" = 6  (3.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Completed 200 OK in 37ms (Views: 0.2ms | ActiveRecord: 6.7ms) Connecting to database specified by database.yml  (0.7ms) select sqlite_version(*)  (16.2ms) DROP TABLE "users"  (10.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39466"]]  (11.0ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d39466"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms) Completed 403 Forbidden in 5.7ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3645"]]  (13.0ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d3645"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3645' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (10.6ms) commit transaction Completed 200 OK in 17.7ms (ActiveRecord: 10.9ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31950"]]  (9.6ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d31950"} Completed 403 Forbidden in 1.5ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32120"]]  (10.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 0.9ms (ActiveRecord: 0.2ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31170"]]  (8.5ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d31170"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31170' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (7.7ms) commit transaction Completed 200 OK in 11.3ms (ActiveRecord: 8.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-10-21 08:59:36 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:36 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3.3ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-21 08:59:36 +0000 Started GET "/auth/gds/callback?code=9e4a7c53d9d79a13544760f76b1cac7205cbfac73b00d482dfb3600979635971&state=f1240fbbdb3835d15211c5bb2670afa3d9dcddefaa6f2581" for 127.0.0.1 at 2013-10-21 08:59:37 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"9e4a7c53d9d79a13544760f76b1cac7205cbfac73b00d482dfb3600979635971", "state"=>"f1240fbbdb3835d15211c5bb2670afa3d9dcddefaa6f2581"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14.2ms (ActiveRecord: 7.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:37 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:38 +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 2013-10-21 08:59:38 +0000 Started GET "/auth/gds/callback?code=acf9b7b1bd87cda6b6c89084ecbf678bf212173cdab1abf3807bb843f5a44723&state=497cb4bb8a4498b035bc0404bee7583d6950a0b360f044e2" for 127.0.0.1 at 2013-10-21 08:59:38 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"acf9b7b1bd87cda6b6c89084ecbf678bf212173cdab1abf3807bb843f5a44723", "state"=>"497cb4bb8a4498b035bc0404bee7583d6950a0b360f044e2"} 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" = 6  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.1ms (ActiveRecord: 8.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:38 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:38 +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 2013-10-21 08:59:38 +0000 Started GET "/auth/gds/callback?code=08137148f6a030dcade8fc1c7df6aaace857d94ef1e1763edf8283d732a11ecc&state=c8023e5955ab4278f87310670fcca4eaf03bfb30a1e2c032" for 127.0.0.1 at 2013-10-21 08:59:38 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"08137148f6a030dcade8fc1c7df6aaace857d94ef1e1763edf8283d732a11ecc", "state"=>"c8023e5955ab4278f87310670fcca4eaf03bfb30a1e2c032"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14.5ms (ActiveRecord: 7.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:38 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:38 +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 2013-10-21 08:59:38 +0000 Started GET "/auth/gds/callback?code=7be251ef7b108391155bbc351de1350e8977a89897b04b67f965ef2057d46729&state=5a8faaeaddde3ee3bc2fecf27ad00a0f1a0ed90e01dea17b" for 127.0.0.1 at 2013-10-21 08:59:38 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7be251ef7b108391155bbc351de1350e8977a89897b04b67f965ef2057d46729", "state"=>"5a8faaeaddde3ee3bc2fecf27ad00a0f1a0ed90e01dea17b"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (5.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.7ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 18.2ms (ActiveRecord: 10.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:38 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:38 +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 2013-10-21 08:59:38 +0000 Started GET "/auth/gds/callback?code=f84048344d9191d02a01569374e42a08dee9cb6955f58664e2f6d21335502d4f&state=dd641334695cfd3cc1077afbb0b729cf985bc659c8f4ede6" for 127.0.0.1 at 2013-10-21 08:59:39 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f84048344d9191d02a01569374e42a08dee9cb6955f58664e2f6d21335502d4f", "state"=>"dd641334695cfd3cc1077afbb0b729cf985bc659c8f4ede6"} 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" = 6  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 16.7ms (ActiveRecord: 9.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:39 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +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 2013-10-21 08:59:39 +0000 Started GET "/auth/gds/callback?code=b543b9ea990a206e79a6897eb1932a9b98279d3bc932a9b14e38e8c6f65b2731&state=544ce6e653ec06a528a7b12f680eb099729f4a6569715fe2" for 127.0.0.1 at 2013-10-21 08:59:39 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b543b9ea990a206e79a6897eb1932a9b98279d3bc932a9b14e38e8c6f65b2731", "state"=>"544ce6e653ec06a528a7b12f680eb099729f4a6569715fe2"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (6.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.6ms (ActiveRecord: 10.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 2.5ms (Views: 1.7ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-21 08:59:39 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +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 2013-10-21 08:59:39 +0000 Started GET "/auth/gds/callback?code=c414167674321a74ad1460a9fcc4c24b8ecfd612bf209e9c160249c51b02b05c&state=6d4b192a4b2304818d63a0ac5511f3967ba29f9275e35d0d" for 127.0.0.1 at 2013-10-21 08:59:39 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c414167674321a74ad1460a9fcc4c24b8ecfd612bf209e9c160249c51b02b05c", "state"=>"6d4b192a4b2304818d63a0ac5511f3967ba29f9275e35d0d"} 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" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.4ms (ActiveRecord: 8.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:39 +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 2013-10-21 08:59:39 +0000 Started GET "/auth/gds/callback?code=0981412c345ec339d41ab7a71727ffb918f19d9d96b39e88d4efa448ab4ddc5b&state=a21c3ff3622ebd028d390eaf4604874b36a4918312bf0708" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"0981412c345ec339d41ab7a71727ffb918f19d9d96b39e88d4efa448ab4ddc5b", "state"=>"a21c3ff3622ebd028d390eaf4604874b36a4918312bf0708"} 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" = 6  (6.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 50.6ms (ActiveRecord: 9.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-22 05:04:40 +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 2013-10-22 05:04:40 +0000 Started GET "/auth/gds/callback?code=7208885479dedf545807ed283aec1513bb62d9094b6a32ed2d8f8c2f9142f1e1&state=45b0115e837090bbf47e9faec63c064c0f2fd640a454af24" for 127.0.0.1 at 2013-10-22 05:04:40 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7208885479dedf545807ed283aec1513bb62d9094b6a32ed2d8f8c2f9142f1e1", "state"=>"45b0115e837090bbf47e9faec63c064c0f2fd640a454af24"} 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" = 6  (6.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.8ms (ActiveRecord: 10.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-22 05:04:40 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +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 2013-10-21 08:59:40 +0000 Started GET "/auth/gds/callback?code=4317672d83fe2e79f460d6e347e5e1b7420970edc7386c8a665ddb6de0322854&state=644d45d39ee8eda36f6486f0b22821e0159a0ce0c613983a" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"4317672d83fe2e79f460d6e347e5e1b7420970edc7386c8a665ddb6de0322854", "state"=>"644d45d39ee8eda36f6486f0b22821e0159a0ce0c613983a"} 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.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.1ms (ActiveRecord: 7.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-22 04:54:40 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2.1ms Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 0.9ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 0.7ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 7.1ms Started GET "/restricted" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy 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" = 6  (3.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Completed 200 OK in 35.9ms (Views: 0.2ms | ActiveRecord: 7.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-21 08:59:40 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token strategy User Load (0.1ms) 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" = 6  (4.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.6ms) commit transaction Completed 200 OK in 36.5ms (Views: 0.2ms | ActiveRecord: 7.0ms) Connecting to database specified by database.yml  (0.9ms) select sqlite_version(*)  (9.5ms) DROP TABLE "users"  (3.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37932"]]  (5.5ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d37932"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.9ms) Completed 403 Forbidden in 7.7ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36842"]]  (5.6ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d36842"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36842' LIMIT 1  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (4.2ms) commit transaction Completed 200 OK in 42.0ms (ActiveRecord: 4.7ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31391"]]  (4.2ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d31391"} Completed 403 Forbidden in 1.9ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38574"]]  (5.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' LIMIT 1 Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3671"]]  (6.2ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d3671"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3671' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (5.4ms) commit transaction Completed 200 OK in 10.0ms (ActiveRecord: 5.8ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-10-29 22:06:47 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2.4ms (Views: 1.9ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:47 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3.0ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:47 +0000 Started GET "/auth/gds/callback?code=bfad229443ad7f7c502d74dd1855733f173dece7f39002680a485f6de3530cdc&state=fc0b308a709a3db43e2be9c3a6199dcabae1321711cffbaf" for 127.0.0.1 at 2013-10-29 22:06:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"bfad229443ad7f7c502d74dd1855733f173dece7f39002680a485f6de3530cdc", "state"=>"fc0b308a709a3db43e2be9c3a6199dcabae1321711cffbaf"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (4.5ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.3ms (ActiveRecord: 8.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:48 +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 2013-10-29 22:06:48 +0000 Started GET "/auth/gds/callback?code=c2c08bb86316bb1761eeb0541653a936428c95b3a3a8851505d98d118ffcfcc5&state=09328c483f66a296fe1ddad1daabedc98cb879092dfc0a87" for 127.0.0.1 at 2013-10-29 22:06:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c2c08bb86316bb1761eeb0541653a936428c95b3a3a8851505d98d118ffcfcc5", "state"=>"09328c483f66a296fe1ddad1daabedc98cb879092dfc0a87"} 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" = 6  (5.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 19.6ms (ActiveRecord: 10.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:48 +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 2013-10-29 22:06:48 +0000 Started GET "/auth/gds/callback?code=505af0ae594cc55882709086d0cc7ee978a4db8c0b1a746ea75f8e92502e8562&state=3c8d9960c716970b360f9731211ace4e9132e163f0e5404a" for 127.0.0.1 at 2013-10-29 22:06:49 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"505af0ae594cc55882709086d0cc7ee978a4db8c0b1a746ea75f8e92502e8562", "state"=>"3c8d9960c716970b360f9731211ace4e9132e163f0e5404a"} 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" = 6  (4.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.8ms (ActiveRecord: 8.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:49 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:49 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.8ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-29 22:06:49 +0000 Started GET "/auth/gds/callback?code=ea532f74d907a78bedf124318d2ecf6786cff724fc7452359397fae5521cfa18&state=417e3e0a955e869d810faade85b70fd2a161428d15f186b7" for 127.0.0.1 at 2013-10-29 22:06:49 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ea532f74d907a78bedf124318d2ecf6786cff724fc7452359397fae5521cfa18", "state"=>"417e3e0a955e869d810faade85b70fd2a161428d15f186b7"} 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" = 6  (5.3ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.0ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 20.0ms (ActiveRecord: 10.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:49 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.5ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:49 +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 2013-10-29 22:06:49 +0000 Started GET "/auth/gds/callback?code=07eaba147159a74f8e48e1d1533c3094c0834ea078b062a7c7f93ac6d02a1e05&state=398859ae46c844aceac2371aa2d17491b72de59865a9f0cd" for 127.0.0.1 at 2013-10-29 22:06:49 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"07eaba147159a74f8e48e1d1533c3094c0834ea078b062a7c7f93ac6d02a1e05", "state"=>"398859ae46c844aceac2371aa2d17491b72de59865a9f0cd"} 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" = 6  (5.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 18.5ms (ActiveRecord: 10.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:49 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:49 +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 2013-10-29 22:06:49 +0000 Started GET "/auth/gds/callback?code=3c6ddfcc33e241accd76bf8e5663763e7031c8d5ca4c31ca2273ce6c34f5e4da&state=feb1babd82029749d6ea5030b197c904572c49399d069e72" for 127.0.0.1 at 2013-10-29 22:06:50 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"3c6ddfcc33e241accd76bf8e5663763e7031c8d5ca4c31ca2273ce6c34f5e4da", "state"=>"feb1babd82029749d6ea5030b197c904572c49399d069e72"} 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" = 6  (5.6ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 20.1ms (ActiveRecord: 10.7ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3.3ms (Views: 2.3ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-29 22:06:50 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +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 2013-10-29 22:06:50 +0000 Started GET "/auth/gds/callback?code=e5ee885e58a23fdb741d66ccda0acd550bf1fef0aa0984b1be736fb167cbca1b&state=33b9619b5f2478d1c3165a30ef2695df3e838372d9dc9e1f" for 127.0.0.1 at 2013-10-29 22:06:50 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"e5ee885e58a23fdb741d66ccda0acd550bf1fef0aa0984b1be736fb167cbca1b", "state"=>"33b9619b5f2478d1c3165a30ef2695df3e838372d9dc9e1f"} Authenticating with gds_sso strategy User Load (0.1ms) 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" = 6  (5.7ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (11.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 25.8ms (ActiveRecord: 17.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +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 2013-10-29 22:06:50 +0000 Started GET "/auth/gds/callback?code=806a4d1546badf92bd4d9c338bac570aed4ff00f0bcdbaf2d4578d1dd02a6ee3&state=9116220569a839ba8c9a2af26a1a0d63057e9a16dfe43b63" for 127.0.0.1 at 2013-10-29 22:06:50 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"806a4d1546badf92bd4d9c338bac570aed4ff00f0bcdbaf2d4578d1dd02a6ee3", "state"=>"9116220569a839ba8c9a2af26a1a0d63057e9a16dfe43b63"} 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" = 6  (5.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 20.0ms (ActiveRecord: 10.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:50 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 18:11:50 +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 2013-10-30 18:11:50 +0000 Started GET "/auth/gds/callback?code=728ce244ce0e13097e1aa5f096e8746469f6045aaf961039bfe9a7c67a9b1a38&state=16466f821199d0f710ad7806aec57d8c14bc3cd03d048ff9" for 127.0.0.1 at 2013-10-30 18:11:50 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"728ce244ce0e13097e1aa5f096e8746469f6045aaf961039bfe9a7c67a9b1a38", "state"=>"16466f821199d0f710ad7806aec57d8c14bc3cd03d048ff9"} 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" = 6  (4.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.4ms (ActiveRecord: 9.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 18:11:51 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +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 2013-10-29 22:06:51 +0000 Started GET "/auth/gds/callback?code=d0f7eb08a6e6da864bf58de465cc8dd2a616aedd16e26a0679c3c568d17bb50e&state=5d4789d94f85b07cf5f7cf2af16858959f9003d148b330d1" for 127.0.0.1 at 2013-10-29 22:06:51 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d0f7eb08a6e6da864bf58de465cc8dd2a616aedd16e26a0679c3c568d17bb50e", "state"=>"5d4789d94f85b07cf5f7cf2af16858959f9003d148b330d1"} 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" = 6  (4.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.3ms (ActiveRecord: 8.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 18:01:51 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2.4ms Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:51 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 0.8ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 42.7ms Started GET "/restricted" for 127.0.0.1 at 2013-10-29 22:06:51 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token 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" = 6  (3.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.5ms) commit transaction Completed 200 OK in 42.0ms (Views: 0.3ms | ActiveRecord: 8.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-29 22:06:51 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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" = 6  (4.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction Completed 200 OK in 46.6ms (Views: 0.3ms | ActiveRecord: 9.9ms) Connecting to database specified by database.yml  (0.8ms) select sqlite_version(*)  (28.5ms) DROP TABLE "users"  (25.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38009"]]  (3.3ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d38009"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms) Completed 403 Forbidden in 7.1ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32094"]]  (3.9ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d32094"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32094' LIMIT 1  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (3.3ms) commit transaction Completed 200 OK in 42.6ms (ActiveRecord: 3.9ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33167"]]  (3.1ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d33167"} Completed 403 Forbidden in 2.0ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32494"]]  (3.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' LIMIT 1 Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32783"]]  (3.0ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32783"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32783' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (3.2ms) commit transaction Completed 200 OK in 7.4ms (ActiveRecord: 3.5ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-10-30 12:47:02 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2.3ms (Views: 1.9ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:02 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3.1ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:02 +0000 Started GET "/auth/gds/callback?code=d2f5403fbc91ea3030e53899d8a5cdcdb00b87b8b2cdec0fbf4249e2bd024911&state=30364844d59592c7093d9bbf8795357f145a45e0f583e290" for 127.0.0.1 at 2013-10-30 12:47:03 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"d2f5403fbc91ea3030e53899d8a5cdcdb00b87b8b2cdec0fbf4249e2bd024911", "state"=>"30364844d59592c7093d9bbf8795357f145a45e0f583e290"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (4.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.1ms (ActiveRecord: 8.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:03 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:03 +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 2013-10-30 12:47:03 +0000 Started GET "/auth/gds/callback?code=10c380b3098e063a19552a045434a5d5f1384cb65c412249496d960988780946&state=6951e93169ce9ef0156481380c0fa9a1b64d6bfb32d5f2e4" for 127.0.0.1 at 2013-10-30 12:47:04 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"10c380b3098e063a19552a045434a5d5f1384cb65c412249496d960988780946", "state"=>"6951e93169ce9ef0156481380c0fa9a1b64d6bfb32d5f2e4"} 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" = 6  (4.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.4ms (ActiveRecord: 7.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:04 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:04 +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 2013-10-30 12:47:04 +0000 Started GET "/auth/gds/callback?code=b141d5daa63c247d164243df3a76c95e34893bfec3df01636af65a29f3fd0bfd&state=dcc2465af505ba91aaa2bd6aadc8893d21750d1f414dc2c0" for 127.0.0.1 at 2013-10-30 12:47:04 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b141d5daa63c247d164243df3a76c95e34893bfec3df01636af65a29f3fd0bfd", "state"=>"dcc2465af505ba91aaa2bd6aadc8893d21750d1f414dc2c0"} 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" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.1ms (ActiveRecord: 7.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:04 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:04 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.8ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:47:04 +0000 Started GET "/auth/gds/callback?code=53b9bbe99988ae378e821ec29cc433f80c53b2de8f8fc501b34f944ec918e046&state=2fa8465b79e1b1f1db534d3fdbfc3b32557109306b933477" for 127.0.0.1 at 2013-10-30 12:47:04 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"53b9bbe99988ae378e821ec29cc433f80c53b2de8f8fc501b34f944ec918e046", "state"=>"2fa8465b79e1b1f1db534d3fdbfc3b32557109306b933477"} 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" = 6  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 16.7ms (ActiveRecord: 7.9ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:04 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:04 +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 2013-10-30 12:47:04 +0000 Started GET "/auth/gds/callback?code=b6702c1af8e5d3ccc2b026c4926cc28bba039cd2e383c5521c19677713b27f26&state=241c3a65bc43b766632a0fe4ca00b8bbab798a7e1e2ef509" for 127.0.0.1 at 2013-10-30 12:47:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b6702c1af8e5d3ccc2b026c4926cc28bba039cd2e383c5521c19677713b27f26", "state"=>"241c3a65bc43b766632a0fe4ca00b8bbab798a7e1e2ef509"} 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" = 6  (3.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 16.1ms (ActiveRecord: 8.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:05 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 2.8ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +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 2013-10-30 12:47:05 +0000 Started GET "/auth/gds/callback?code=8aae158a8bfcc0f7c4399be14e452f67c9bb49b2a93fcbc29b71fa7764ff4837&state=7205e6da505664c8bc0f7019b1f69d2831510db6a5ac8098" for 127.0.0.1 at 2013-10-30 12:47:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8aae158a8bfcc0f7c4399be14e452f67c9bb49b2a93fcbc29b71fa7764ff4837", "state"=>"7205e6da505664c8bc0f7019b1f69d2831510db6a5ac8098"} 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" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.1ms (ActiveRecord: 7.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.6ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3.3ms (Views: 2.4ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-30 12:47:05 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0.6ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +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 2013-10-30 12:47:05 +0000 Started GET "/auth/gds/callback?code=fdf7b8895211cb1b1457c8546a7549dd3d567e5ee1bd4e9e4b506148f50ad31b&state=c3ae6df21e93f250a51ee1fb53453aa1e31e5ec5e2e61ca3" for 127.0.0.1 at 2013-10-30 12:47:05 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"fdf7b8895211cb1b1457c8546a7549dd3d567e5ee1bd4e9e4b506148f50ad31b", "state"=>"c3ae6df21e93f250a51ee1fb53453aa1e31e5ec5e2e61ca3"} 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" = 6  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.9ms (ActiveRecord: 9.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:05 +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 2013-10-30 12:47:05 +0000 Started GET "/auth/gds/callback?code=14c75c8302e3908eacf51a6736b4ca9611c7106141cdf51672b09fd68e181211&state=5841214313ea61f08b54dbdb072d16dc7faef82030144e06" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"14c75c8302e3908eacf51a6736b4ca9611c7106141cdf51672b09fd68e181211", "state"=>"5841214313ea61f08b54dbdb072d16dc7faef82030144e06"} 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" = 6  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.4ms (ActiveRecord: 8.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 08:52:06 +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 2013-10-31 08:52:06 +0000 Started GET "/auth/gds/callback?code=31e78b521f37d104ee2851c279fd8b9d1f5017f70684c2365fc39cfb5238921e&state=32d9aede2fa12a9e6326080464df63ee312d00eaac51e9ef" for 127.0.0.1 at 2013-10-31 08:52:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"31e78b521f37d104ee2851c279fd8b9d1f5017f70684c2365fc39cfb5238921e", "state"=>"32d9aede2fa12a9e6326080464df63ee312d00eaac51e9ef"} 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" = 6  (5.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.9ms (ActiveRecord: 9.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 08:52:06 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +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 2013-10-30 12:47:06 +0000 Started GET "/auth/gds/callback?code=7c18d522b58c786c23b3b277b822f2f65f7c3adc7a8f5a16590cb78276e59ed5&state=2d11faaff51a8ba15fc650d30270244d1ca650411d72a7d3" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7c18d522b58c786c23b3b277b822f2f65f7c3adc7a8f5a16590cb78276e59ed5", "state"=>"2d11faaff51a8ba15fc650d30270244d1ca650411d72a7d3"} 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" = 6  (4.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.4ms (ActiveRecord: 9.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 08:42:06 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2.3ms Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1.2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 8.4ms Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:47:06 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token 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" = 6  (3.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction Completed 200 OK in 39.9ms (Views: 0.3ms | ActiveRecord: 7.6ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:47:07 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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" = 6  (4.4ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Completed 200 OK in 43.3ms (Views: 0.3ms | ActiveRecord: 7.8ms) Connecting to database specified by database.yml  (0.9ms) select sqlite_version(*)  (13.5ms) DROP TABLE "users"  (2.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31967"]]  (6.9ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d31967"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms) Completed 403 Forbidden in 7.0ms (Views: 6.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31453"]]  (3.8ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d31453"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31453' LIMIT 1  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (3.5ms) commit transaction Completed 200 OK in 40.9ms (ActiveRecord: 4.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38552"]]  (4.6ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d38552"} Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33909"]]  (3.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' LIMIT 1 Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33546"]]  (4.3ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d33546"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33546' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (4.7ms) commit transaction Completed 200 OK in 9.2ms (ActiveRecord: 5.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-10-30 12:55:14 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2.3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:14 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3.0ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:14 +0000 Started GET "/auth/gds/callback?code=5901e6e152958ee53e2eb6ffba820367b7a69d61a225bffaa46c73da31f3e039&state=2fd438af5eb8ce854b275ee647af9c752834e134a09107eb" for 127.0.0.1 at 2013-10-30 12:55:15 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"5901e6e152958ee53e2eb6ffba820367b7a69d61a225bffaa46c73da31f3e039", "state"=>"2fd438af5eb8ce854b275ee647af9c752834e134a09107eb"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (5.5ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (5.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.9ms (ActiveRecord: 11.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:15 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:15 +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 2013-10-30 12:55:15 +0000 Started GET "/auth/gds/callback?code=71ac7202d4a3f0d357b4839140896cda41c7e2d0764d3eb3e4bf8693947e8e2f&state=0d933dc87568c431e8fcfb945c9380b3d90af4a94becc179" for 127.0.0.1 at 2013-10-30 12:55:15 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"71ac7202d4a3f0d357b4839140896cda41c7e2d0764d3eb3e4bf8693947e8e2f", "state"=>"0d933dc87568c431e8fcfb945c9380b3d90af4a94becc179"} 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" = 6  (3.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.7ms (ActiveRecord: 8.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:15 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:15 +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 2013-10-30 12:55:15 +0000 Started GET "/auth/gds/callback?code=9370da5b9f42d91b56ad137f474838dca008dc3aa23d45e3397cda0be627542f&state=86f69f92ec120f24ada08329ad44c52a211726584fd2e308" for 127.0.0.1 at 2013-10-30 12:55:16 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"9370da5b9f42d91b56ad137f474838dca008dc3aa23d45e3397cda0be627542f", "state"=>"86f69f92ec120f24ada08329ad44c52a211726584fd2e308"} 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" = 6  (3.7ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.8ms (ActiveRecord: 8.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:16 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:16 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.8ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 12:55:16 +0000 Started GET "/auth/gds/callback?code=40ca3dcb4718907ae3baa404ac4aa1e35cc9fbd9b056640a42c61b22f89ada2b&state=a82151a8df4bc4c7c2af4c533b01938c44a44e75b2044f9d" for 127.0.0.1 at 2013-10-30 12:55:16 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"40ca3dcb4718907ae3baa404ac4aa1e35cc9fbd9b056640a42c61b22f89ada2b", "state"=>"a82151a8df4bc4c7c2af4c533b01938c44a44e75b2044f9d"} 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" = 6  (11.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (8.7ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 29.8ms (ActiveRecord: 21.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:16 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.2ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:16 +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 2013-10-30 12:55:16 +0000 Started GET "/auth/gds/callback?code=24dc1f1ceb425bf0acc6a73cb3ceecd6fb90158b7aa035a61e6b499ab2aa02b3&state=729b7beb80411872899bd1d0e46956b6868cbfb90dcc9385" for 127.0.0.1 at 2013-10-30 12:55:16 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"24dc1f1ceb425bf0acc6a73cb3ceecd6fb90158b7aa035a61e6b499ab2aa02b3", "state"=>"729b7beb80411872899bd1d0e46956b6868cbfb90dcc9385"} 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" = 6  (3.5ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.2ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 14.9ms (ActiveRecord: 7.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:16 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 2.9ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:16 +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 2013-10-30 12:55:16 +0000 Started GET "/auth/gds/callback?code=0100042293d2c7e830a22822ea65c6c6045e34fbef4ebd8f8d88900d94677ed5&state=35369200bcf68adca750c5387ec2efb330930ce3e41dfd4e" for 127.0.0.1 at 2013-10-30 12:55:17 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"0100042293d2c7e830a22822ea65c6c6045e34fbef4ebd8f8d88900d94677ed5", "state"=>"35369200bcf68adca750c5387ec2efb330930ce3e41dfd4e"} 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" = 6  (6.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 20.6ms (ActiveRecord: 11.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.0ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3.3ms (Views: 2.3ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-30 12:55:17 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +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 2013-10-30 12:55:17 +0000 Started GET "/auth/gds/callback?code=a3b475f892300048894a8b116edab59c69d39a58aac4f1d297419cda30e2e60c&state=a5ff23d1b5c671314788e32c879ec3e4ce61d3465a883d24" for 127.0.0.1 at 2013-10-30 12:55:17 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a3b475f892300048894a8b116edab59c69d39a58aac4f1d297419cda30e2e60c", "state"=>"a5ff23d1b5c671314788e32c879ec3e4ce61d3465a883d24"} 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" = 6  (4.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.3ms (ActiveRecord: 7.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +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 2013-10-30 12:55:17 +0000 Started GET "/auth/gds/callback?code=ef7df9ebfd94d40488a4b90a70e4a57fd1c8dffa96e60f8cc7891ae65e08005b&state=11080402cb476cbdb88b0c752a670b801d691a590645d524" for 127.0.0.1 at 2013-10-30 12:55:17 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ef7df9ebfd94d40488a4b90a70e4a57fd1c8dffa96e60f8cc7891ae65e08005b", "state"=>"11080402cb476cbdb88b0c752a670b801d691a590645d524"} 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" = 6  (3.7ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.1ms (ActiveRecord: 7.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 09:00:17 +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 2013-10-31 09:00:17 +0000 Started GET "/auth/gds/callback?code=55da2103f3f0fc1bb5fb9476d5ecd9dc5370c305ec4e28886be730e8998b631a&state=66ae85366ba15dd6051f7fcf6ad2ce09b204f539f86b17b6" for 127.0.0.1 at 2013-10-31 09:00:17 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"55da2103f3f0fc1bb5fb9476d5ecd9dc5370c305ec4e28886be730e8998b631a", "state"=>"66ae85366ba15dd6051f7fcf6ad2ce09b204f539f86b17b6"} 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" = 6  (4.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 14.5ms (ActiveRecord: 7.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 09:00:17 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:17 +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 2013-10-30 12:55:17 +0000 Started GET "/auth/gds/callback?code=8949021d8c6fbf8f8338e319dfb4c7cca794182f1f36b94d1c9ce2eebb8c714c&state=031d45faeb2e45b63d82911c526fc9ddeb1918a2096e4ea7" for 127.0.0.1 at 2013-10-30 12:55:18 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"8949021d8c6fbf8f8338e319dfb4c7cca794182f1f36b94d1c9ce2eebb8c714c", "state"=>"031d45faeb2e45b63d82911c526fc9ddeb1918a2096e4ea7"} 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" = 6  (6.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 19.2ms (ActiveRecord: 10.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 08:50:18 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2.3ms Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:18 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 8.4ms Started GET "/restricted" for 127.0.0.1 at 2013-10-30 12:55:18 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token 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" = 6  (5.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.0ms) commit transaction Completed 200 OK in 42.4ms (Views: 0.4ms | ActiveRecord: 9.3ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 12:55:18 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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" = 6  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.7ms) commit transaction Completed 200 OK in 76.1ms (Views: 0.3ms | ActiveRecord: 7.6ms) Connecting to database specified by database.yml  (0.9ms) select sqlite_version(*)  (6.4ms) DROP TABLE "users"  (2.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38120"]]  (3.3ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d38120"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.9ms) Completed 403 Forbidden in 7.7ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37442"]]  (3.7ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d37442"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37442' LIMIT 1  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 2  (3.6ms) commit transaction Completed 200 OK in 41.5ms (ActiveRecord: 4.2ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35316"]]  (3.7ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d35316"} Completed 403 Forbidden in 1.9ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32129"]]  (3.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.1ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32312"]]  (3.4ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32312"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32312' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 5  (3.1ms) commit transaction Completed 200 OK in 7.7ms (ActiveRecord: 3.5ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Started GET "/" for 127.0.0.1 at 2013-10-30 14:58:39 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2.4ms (Views: 1.9ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:39 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3.1ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 14:58:39 +0000 Started GET "/auth/gds/callback?code=21546b2d9ad4eac9af531e441d189e32374b72b07fa4595ccdc90e26f06bf5bc&state=4e2c3a74c3e20574e39358e44bb801e5fa2d82b0812546c6" for 127.0.0.1 at 2013-10-30 14:58:40 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"21546b2d9ad4eac9af531e441d189e32374b72b07fa4595ccdc90e26f06bf5bc", "state"=>"4e2c3a74c3e20574e39358e44bb801e5fa2d82b0812546c6"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (4.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.5ms (ActiveRecord: 8.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:41 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:41 +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 2013-10-30 14:58:41 +0000 Started GET "/auth/gds/callback?code=b502c94aa9f9e6a5c22c8232bbdb33e45ffa417003478602d9431a701021e7f5&state=d4d6b16cf6ec8214fa1472c1e08f51e085490bcd4d767886" for 127.0.0.1 at 2013-10-30 14:58:41 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"b502c94aa9f9e6a5c22c8232bbdb33e45ffa417003478602d9431a701021e7f5", "state"=>"d4d6b16cf6ec8214fa1472c1e08f51e085490bcd4d767886"} 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" = 6  (3.4ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.9ms (ActiveRecord: 6.6ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:41 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:41 +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 2013-10-30 14:58:41 +0000 Started GET "/auth/gds/callback?code=cb181f89b3f5f0a5cf01ed58b0fa6d9a19d6103681566112ff2e9b5c291fb435&state=463eea390a459f0b3bc6c396f3440194a74f09fe360d7942" for 127.0.0.1 at 2013-10-30 14:58:41 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"cb181f89b3f5f0a5cf01ed58b0fa6d9a19d6103681566112ff2e9b5c291fb435", "state"=>"463eea390a459f0b3bc6c396f3440194a74f09fe360d7942"} 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" = 6  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.0ms (ActiveRecord: 9.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:41 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 14:58:41 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.9ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-30 14:58:41 +0000 Started GET "/auth/gds/callback?code=0abbf3732068ec26d861f589015b48d9a47a052307122a8333cae758fcf50df8&state=5a63670716405b23224915160b440ace463901bfae234e3b" for 127.0.0.1 at 2013-10-30 14:58:42 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"0abbf3732068ec26d861f589015b48d9a47a052307122a8333cae758fcf50df8", "state"=>"5a63670716405b23224915160b440ace463901bfae234e3b"} 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" = 6  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (11.7ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 26.0ms (ActiveRecord: 16.8ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 14:58:42 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.3ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 14:58:42 +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 2013-10-30 14:58:42 +0000 Started GET "/auth/gds/callback?code=4393d4eb5d4056deb04e22601d9d750f197ff2f67dadafd2e1e28a6cf811ff85&state=b8cab794093fd92b46e8d39c63dffffdc523af2f770860a2" for 127.0.0.1 at 2013-10-30 14:58:42 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"4393d4eb5d4056deb04e22601d9d750f197ff2f67dadafd2e1e28a6cf811ff85", "state"=>"b8cab794093fd92b46e8d39c63dffffdc523af2f770860a2"} 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" = 6  (5.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.3ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 18.7ms (ActiveRecord: 10.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 14:58:42 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:42 +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 2013-10-30 14:58:42 +0000 Started GET "/auth/gds/callback?code=e7dd5b6ce99dde23d4e201fe072581c16f6ec38f18dca14912e2f99d21723ef8&state=d1fb30062bf4605aa9e69cf627352c1b5bcac088374a98b2" for 127.0.0.1 at 2013-10-30 14:58:42 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"e7dd5b6ce99dde23d4e201fe072581c16f6ec38f18dca14912e2f99d21723ef8", "state"=>"d1fb30062bf4605aa9e69cf627352c1b5bcac088374a98b2"} 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" = 6  (7.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 23.0ms (ActiveRecord: 12.7ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:42 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 2.4ms (Views: 0.5ms | ActiveRecord: 0.2ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (8.9ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:42 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 5.8ms (Views: 3.9ms | ActiveRecord: 0.2ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-30 14:58:42 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:43 +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 2013-10-30 14:58:43 +0000 Started GET "/auth/gds/callback?code=87bc7d06f9e52b5040f78d5ff86fbb263582b33244bed765d729002aac8001d7&state=1fbfeba924b1b068322d0fbef2b4da4d53fb74a256364324" for 127.0.0.1 at 2013-10-30 14:58:43 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"87bc7d06f9e52b5040f78d5ff86fbb263582b33244bed765d729002aac8001d7", "state"=>"1fbfeba924b1b068322d0fbef2b4da4d53fb74a256364324"} 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" = 6  (7.2ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 6  (4.1ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 20.1ms (ActiveRecord: 11.9ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:43 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:43 +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 2013-10-30 14:58:43 +0000 Started GET "/auth/gds/callback?code=e1bd6f888ef37e5f44cc5a61ce36d141c51fc0208846c2718ae49def19e5f1f5&state=b4bf18736e24adef0702b62688f117ab0368826e88a41dda" for 127.0.0.1 at 2013-10-30 14:58:43 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"e1bd6f888ef37e5f44cc5a61ce36d141c51fc0208846c2718ae49def19e5f1f5", "state"=>"b4bf18736e24adef0702b62688f117ab0368826e88a41dda"} 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" = 6  (12.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.5ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 30.4ms (ActiveRecord: 16.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:43 +0000 Processing by ExampleController#restricted as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 2.6ms (Views: 0.7ms | ActiveRecord: 0.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:03:43 +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 2013-10-31 11:03:43 +0000 Started GET "/auth/gds/callback?code=973f0fa8a743e55c374e166c86c0da2753453e40b0994b02e576e9799d65c6cf&state=ce5a5d8001cced1f32f81a71982b7ae354697d1e80e108a3" for 127.0.0.1 at 2013-10-31 11:03:43 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"973f0fa8a743e55c374e166c86c0da2753453e40b0994b02e576e9799d65c6cf", "state"=>"ce5a5d8001cced1f32f81a71982b7ae354697d1e80e108a3"} 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" = 6  (4.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.0ms (ActiveRecord: 9.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:03:43 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:43 +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 2013-10-30 14:58:43 +0000 Started GET "/auth/gds/callback?code=e05906c7d82b5d9daf4a495c55296ad7159eb4ff81223f9082414307ba86758d&state=52504b0b1d107ce958c4f76ca1ee4643be771726c2544e3e" for 127.0.0.1 at 2013-10-30 14:58:44 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"e05906c7d82b5d9daf4a495c55296ad7159eb4ff81223f9082414307ba86758d", "state"=>"52504b0b1d107ce958c4f76ca1ee4643be771726c2544e3e"} 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" = 6  (6.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 20.8ms (ActiveRecord: 11.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:44 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 10:53:44 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:44 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed in 2.3ms Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:44 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1.3ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 14:58:44 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_sso_api_access strategy Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:44 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 8.2ms Started GET "/restricted" for 127.0.0.1 at 2013-10-30 14:58:44 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token 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" = 6  (5.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (3.4ms) commit transaction Completed 200 OK in 41.7ms (Views: 0.3ms | ActiveRecord: 9.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-30 14:58:44 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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" = 6  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 6  (2.8ms) commit transaction Completed 200 OK in 40.3ms (Views: 0.3ms | ActiveRecord: 7.8ms) Connecting to database specified by database.yml  (0.9ms) select sqlite_version(*)  (9.6ms) DROP TABLE "users"  (3.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3613"]]  (4.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39406"]]  (3.1ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d3613"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.9ms) Completed 403 Forbidden in 7.3ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31738"]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39354"]]  (3.7ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d31738"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31738' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 3  (3.4ms) commit transaction Completed 200 OK in 13.5ms (ActiveRecord: 4.0ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33165"]]  (3.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31198"]]  (3.6ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d33165"} Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39677"]]  (3.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37547"]]  (2.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 1.2ms (ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32000"]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34762"]]  (3.5ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d32000"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32000' LIMIT 1  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 9  (3.0ms) commit transaction Completed 200 OK in 7.7ms (ActiveRecord: 3.4ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]] Started GET "/" for 127.0.0.1 at 2013-10-31 11:29:45 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2.4ms (Views: 1.9ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:45 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 2.9ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-31 11:29:45 +0000 Started GET "/auth/gds/callback?code=ea334fb3f4df36c7eff38383bec4d2da86f369e516c7896d81474995968f178b&state=d67b7b12aff13a8cea87ebf60dd9aefaf48c33b2cbd4c714" for 127.0.0.1 at 2013-10-31 11:29:46 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"ea334fb3f4df36c7eff38383bec4d2da86f369e516c7896d81474995968f178b", "state"=>"d67b7b12aff13a8cea87ebf60dd9aefaf48c33b2cbd4c714"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (5.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (4.2ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.7ms (ActiveRecord: 10.7ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:46 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:46 +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 2013-10-31 11:29:46 +0000 Started GET "/auth/gds/callback?code=7a505bdc1b787708ade7037c58aaa9515efc32cc3eca3f1dc839c77fca810bb7&state=3de4c55203f7ac53b7f1f125f3f9289f04e113ec763ffc56" for 127.0.0.1 at 2013-10-31 11:29:46 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7a505bdc1b787708ade7037c58aaa9515efc32cc3eca3f1dc839c77fca810bb7", "state"=>"3de4c55203f7ac53b7f1f125f3f9289f04e113ec763ffc56"} 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  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (4.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.7ms (ActiveRecord: 9.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:46 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:46 +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 2013-10-31 11:29:46 +0000 Started GET "/auth/gds/callback?code=f07c04e96868fd3c6c5bb2c39badad39dd08a634599c0fa95170ee5d4efb7329&state=64ce1792109d2001ee22c503eaeb791031d87ebc03c0c2a9" for 127.0.0.1 at 2013-10-31 11:29:47 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f07c04e96868fd3c6c5bb2c39badad39dd08a634599c0fa95170ee5d4efb7329", "state"=>"64ce1792109d2001ee22c503eaeb791031d87ebc03c0c2a9"} 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  (7.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (4.4ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 20.2ms (ActiveRecord: 12.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:47 +0000 Processing by ExampleController#restricted as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:29:47 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 0.9ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-31 11:29:47 +0000 Started GET "/auth/gds/callback?code=eb48b4542e41de858cb1401917bd3b45b5310dfe41d58559e313d07c9d9bbead&state=fb0c181bcb7e5c4dc4e04cbdceb84dccf2c9ae04cb312be1" for 127.0.0.1 at 2013-10-31 11:29:47 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"eb48b4542e41de858cb1401917bd3b45b5310dfe41d58559e313d07c9d9bbead", "state"=>"fb0c181bcb7e5c4dc4e04cbdceb84dccf2c9ae04cb312be1"} 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" = 11  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (4.6ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 20.7ms (ActiveRecord: 10.5ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:29:47 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.4ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:29:47 +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 2013-10-31 11:29:47 +0000 Started GET "/auth/gds/callback?code=bbad64af30b3ceb0f0bea70f55c5cdfc9b944597b0c5f895898ce7aae891d2fa&state=062b39ebbf6cadda37ad07b6d4d97cb3ecfb9c860385c083" for 127.0.0.1 at 2013-10-31 11:29:47 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"bbad64af30b3ceb0f0bea70f55c5cdfc9b944597b0c5f895898ce7aae891d2fa", "state"=>"062b39ebbf6cadda37ad07b6d4d97cb3ecfb9c860385c083"} 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  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.5ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 16.7ms (ActiveRecord: 8.8ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:29:47 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 2.9ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:47 +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 2013-10-31 11:29:47 +0000 Started GET "/auth/gds/callback?code=70eb8cc2821db0bdb529fd3426c94b99d68c7e4eb12b778e61dd50403acf6aad&state=fe739fcb50889b85a8af8277a420601f13d7ae36ba79f0a3" for 127.0.0.1 at 2013-10-31 11:29:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"70eb8cc2821db0bdb529fd3426c94b99d68c7e4eb12b778e61dd50403acf6aad", "state"=>"fe739fcb50889b85a8af8277a420601f13d7ae36ba79f0a3"} 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  (4.8ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 19.0ms (ActiveRecord: 8.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.1ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3.4ms (Views: 2.4ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-31 11:29:48 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0.6ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:48 +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 2013-10-31 11:29:48 +0000 Started GET "/auth/gds/callback?code=6df0c015afd6823152c95acc2031d9a240fdbb888069625907109d173c99cbb6&state=d75a201ebc3157d9862f91a78fcfbe4bf2a49e5d16cced59" for 127.0.0.1 at 2013-10-31 11:29:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"6df0c015afd6823152c95acc2031d9a240fdbb888069625907109d173c99cbb6", "state"=>"d75a201ebc3157d9862f91a78fcfbe4bf2a49e5d16cced59"} 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  (7.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (4.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 20.8ms (ActiveRecord: 12.4ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:48 +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 2013-10-31 11:29:48 +0000 Started GET "/auth/gds/callback?code=f9288ca55b8e6cf4db6c2be2206da8f652cd5e3cdb057317d58b77e9498291de&state=20ec2c50661c7b68bc24e7eae4f9ae9dff2dfeac734f46df" for 127.0.0.1 at 2013-10-31 11:29:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"f9288ca55b8e6cf4db6c2be2206da8f652cd5e3cdb057317d58b77e9498291de", "state"=>"20ec2c50661c7b68bc24e7eae4f9ae9dff2dfeac734f46df"} 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  (4.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.3ms (ActiveRecord: 8.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:48 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-11-01 07:34:48 +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 2013-11-01 07:34:48 +0000 Started GET "/auth/gds/callback?code=a7bbe8723628cc9643b443aeec6d01f157a551459487c75b9d736bed893bc79d&state=4e9244f89282b1883c5ac4453277f0ba1a5c98b362538f12" for 127.0.0.1 at 2013-11-01 07:34:48 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"a7bbe8723628cc9643b443aeec6d01f157a551459487c75b9d736bed893bc79d", "state"=>"4e9244f89282b1883c5ac4453277f0ba1a5c98b362538f12"} 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  (4.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 16.8ms (ActiveRecord: 8.7ms) Started GET "/restricted" for 127.0.0.1 at 2013-11-01 07:34:49 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:49 +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 2013-10-31 11:29:49 +0000 Started GET "/auth/gds/callback?code=52fcbae45155f9d60188eb3972067cdb696f2aa0ae878829bf8b8875269407ec&state=00957b3c7b8f4bede1e4b64beda98279a6d7e5aed69274eb" for 127.0.0.1 at 2013-10-31 11:29:49 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"52fcbae45155f9d60188eb3972067cdb696f2aa0ae878829bf8b8875269407ec", "state"=>"00957b3c7b8f4bede1e4b64beda98279a6d7e5aed69274eb"} 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  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (4.3ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 19.3ms (ActiveRecord: 10.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:49 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-11-01 07:24:49 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:49 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 8.3ms Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:29:49 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token 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  (5.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (5.0ms) commit transaction Completed 200 OK in 44.5ms (Views: 0.3ms | ActiveRecord: 10.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:29:49 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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" = 11  (3.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (2.8ms) commit transaction Completed 200 OK in 42.5ms (Views: 0.3ms | ActiveRecord: 7.0ms) Connecting to database specified by database.yml  (0.9ms) select sqlite_version(*)  (7.1ms) DROP TABLE "users"  (4.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)   (0.1ms) begin transaction SQL (2.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34045"]]  (4.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34401"]]  (3.8ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d34045"} Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.0ms) Completed 403 Forbidden in 7.1ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37401"]]  (4.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38417"]]  (5.1ms) commit transaction Processing by Api::UserController#update as HTML Parameters: {"uid"=>"a1s2d37401"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37401' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '--- - signin - new permission ' WHERE "users"."id" = 3  (4.1ms) commit transaction Completed 200 OK in 14.6ms (ActiveRecord: 4.6ms) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3357"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35680"]]  (9.0ms) commit transaction WARNING: Can't mass-assign protected attributes: uid, name, permissions Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d3357"} Completed 403 Forbidden in 2.1ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33521"]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34941"]]  (3.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' LIMIT 1 Completed 200 OK in 1.3ms (ActiveRecord: 0.3ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31774"]]  (5.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31106"]]  (5.0ms) commit transaction Processing by Api::UserController#reauth as HTML Parameters: {"uid"=>"a1s2d31774"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31774' LIMIT 1  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 9  (4.7ms) commit transaction Completed 200 OK in 9.7ms (ActiveRecord: 5.2ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]] Started GET "/" for 127.0.0.1 at 2013-10-31 11:38:29 +0000 Processing by ExampleController#index as HTML Completed 200 OK in 2.5ms (Views: 2.0ms | ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:29 +0000 Processing by ExampleController#restricted as HTML Authenticating with gds_sso strategy Completed in 3.1ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-31 11:38:29 +0000 Started GET "/auth/gds/callback?code=7076c155ba2e6b897d4be0cea184f3ee669c54789ff8df4f3ec6303689e63f25&state=770ee508b2b88449dc584a5e510d496412f38273cc5e1f93" for 127.0.0.1 at 2013-10-31 11:38:30 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7076c155ba2e6b897d4be0cea184f3ee669c54789ff8df4f3ec6303689e63f25", "state"=>"770ee508b2b88449dc584a5e510d496412f38273cc5e1f93"} Authenticating with gds_sso strategy User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (2.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.9ms (ActiveRecord: 7.8ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:30 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:30 +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 2013-10-31 11:38:30 +0000 Started GET "/auth/gds/callback?code=c7ca4d809f924ea396e11557a456d3592df744c59f19cb35c58d12d85296f9ce&state=0df587715601a2f68981a64f74b971390937487447e4cb8f" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"c7ca4d809f924ea396e11557a456d3592df744c59f19cb35c58d12d85296f9ce", "state"=>"0df587715601a2f68981a64f74b971390937487447e4cb8f"} 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  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.1ms (ActiveRecord: 8.7ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:31 +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 2013-10-31 11:38:31 +0000 Started GET "/auth/gds/callback?code=344801e2fa7aa06cb1ad37f59897de3c9f94b02e46dc5b58803f2d72e5f4e36b&state=ef509060c15900e987de31eed7b4dce7f2608cdd06cf04c8" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"344801e2fa7aa06cb1ad37f59897de3c9f94b02e46dc5b58803f2d72e5f4e36b", "state"=>"ef509060c15900e987de31eed7b4dce7f2608cdd06cf04c8"} 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  (3.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (2.9ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.7ms (ActiveRecord: 7.2ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Processing by ExampleController#this_requires_signin_permission as HTML Authenticating with gds_sso strategy Completed in 1.0ms Started GET "/auth/gds" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Started GET "/auth/gds/callback?code=e4d456776e183ac16c1a488fee5d37f0ef73b83eaab6babd84dcaba64b9a6de8&state=33a12d41614b3c0471c76c47a87dfb1c1d9d0e669947b31e" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"e4d456776e183ac16c1a488fee5d37f0ef73b83eaab6babd84dcaba64b9a6de8", "state"=>"33a12d41614b3c0471c76c47a87dfb1c1d9d0e669947b31e"} 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  (3.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.6ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 17.0ms (ActiveRecord: 8.0ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.6ms (Views: 0.6ms | ActiveRecord: 0.1ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:38:31 +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 2013-10-31 11:38:31 +0000 Started GET "/auth/gds/callback?code=06e4a236c113f2b9a712766532fbd02b4d0c5c988050e6e8588cae14fea1973b&state=a66a4cc2b23620d9d6e6737f5e68925c79530f1af0732b94" for 127.0.0.1 at 2013-10-31 11:38:31 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"06e4a236c113f2b9a712766532fbd02b4d0c5c988050e6e8588cae14fea1973b", "state"=>"a66a4cc2b23620d9d6e6737f5e68925c79530f1af0732b94"} 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  (4.7ms) commit transaction  (0.0ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.1ms) commit transaction Redirected to http://www.example-client.com/this_requires_signin_permission Completed 302 Found in 16.8ms (ActiveRecord: 8.4ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:38:32 +0000 Processing by ExampleController#this_requires_signin_permission as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 3.2ms (Views: 0.3ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:32 +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 2013-10-31 11:38:32 +0000 Started GET "/auth/gds/callback?code=e8aeebb3e2ba1909323787104940651c8a0981647bdf64a760e147e86ffbfefc&state=f79820d13a2122a8d3ac5f2c2ebc85ac261c47947c51585f" for 127.0.0.1 at 2013-10-31 11:38:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"e8aeebb3e2ba1909323787104940651c8a0981647bdf64a760e147e86ffbfefc", "state"=>"f79820d13a2122a8d3ac5f2c2ebc85ac261c47947c51585f"} 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" = 11  (5.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (2.8ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.0ms (ActiveRecord: 8.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (2.9ms) commit transaction Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 403 Forbidden in 3.5ms (Views: 2.4ms | ActiveRecord: 0.1ms) Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-10-31 11:38:32 +0000 Processing by AuthenticationsController#sign_out as HTML Redirected to http://localhost:4567/users/sign_out Completed 302 Found in 0.6ms (ActiveRecord: 0.0ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:32 +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 2013-10-31 11:38:32 +0000 Started GET "/auth/gds/callback?code=7f24c5a305c90af77ec7cec351c5984876b2972f95f9e2bdeeddb39b07aa1157&state=7cb3208f25ead37892e645398274299dbe4d08fc0bae32d4" for 127.0.0.1 at 2013-10-31 11:38:32 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7f24c5a305c90af77ec7cec351c5984876b2972f95f9e2bdeeddb39b07aa1157", "state"=>"7cb3208f25ead37892e645398274299dbe4d08fc0bae32d4"} 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  (4.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 17.3ms (ActiveRecord: 8.7ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:32 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:32 +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 2013-10-31 11:38:32 +0000 Started GET "/auth/gds/callback?code=7389b2655a69297e389913caf43fce07399e10de4e9b3d1b8aeeaeacb12541ff&state=6e1887d565e93ad7e6d2455ca48002569502e3d1c76c9584" for 127.0.0.1 at 2013-10-31 11:38:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"7389b2655a69297e389913caf43fce07399e10de4e9b3d1b8aeeaeacb12541ff", "state"=>"6e1887d565e93ad7e6d2455ca48002569502e3d1c76c9584"} 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  (4.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.0ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.3ms (ActiveRecord: 8.5ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-11-01 07:43: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 2013-11-01 07:43:33 +0000 Started GET "/auth/gds/callback?code=dda00818864f4f1f758d17f7270a2ae70004a6424993c00b950396e2fb66d455&state=f2b7c6d249227239f0df33b4f919530cd13e7a5583230cb7" for 127.0.0.1 at 2013-11-01 07:43:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"dda00818864f4f1f758d17f7270a2ae70004a6424993c00b950396e2fb66d455", "state"=>"f2b7c6d249227239f0df33b4f919530cd13e7a5583230cb7"} 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  (4.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (2.7ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 15.0ms (ActiveRecord: 7.3ms) Started GET "/restricted" for 127.0.0.1 at 2013-11-01 07:43:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38: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 2013-10-31 11:38:33 +0000 Started GET "/auth/gds/callback?code=163ff71d8a13eea08b9e061f7bc78c1acf07117cfbd653020e43ed56e2ad642f&state=cc7649abe8fa5d4abaf5ff934b0b39c99d336a1ee509b053" for 127.0.0.1 at 2013-10-31 11:38:33 +0000 Processing by AuthenticationsController#callback as HTML Parameters: {"code"=>"163ff71d8a13eea08b9e061f7bc78c1acf07117cfbd653020e43ed56e2ad642f", "state"=>"cc7649abe8fa5d4abaf5ff934b0b39c99d336a1ee509b053"} 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  (3.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.6ms) commit transaction Redirected to http://www.example-client.com/restricted Completed 302 Found in 18.0ms (ActiveRecord: 8.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.5ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-11-01 07:33:33 +0000 Processing by ExampleController#restricted as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1 Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms) Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:33 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token strategy Completed in 7.9ms Started GET "/restricted" for 127.0.0.1 at 2013-10-31 11:38:33 +0000 Processing by ExampleController#restricted as JSON Authenticating with gds_bearer_token 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  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (3.7ms) commit transaction Completed 200 OK in 42.1ms (Views: 0.3ms | ActiveRecord: 8.7ms) Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-10-31 11:38:33 +0000 Processing by ExampleController#this_requires_signin_permission as JSON Authenticating with gds_bearer_token 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  (5.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) UPDATE "users" SET "permissions" = '--- - signin ' WHERE "users"."id" = 11  (4.3ms) commit transaction Completed 200 OK in 46.0ms (Views: 0.3ms | ActiveRecord: 10.4ms)