gds-sso 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -38,16 +38,15 @@ It should have the following fields:
38
38
  string "name"
39
39
  string "email"
40
40
  string "uid"
41
+ string "organisation"
41
42
  array "permissions"
42
- array "organisations"
43
43
  boolean "remotely_signed_out", :default => false
44
44
 
45
45
  You also need to include `GDS::SSO::ControllerMethods` in your ApplicationController
46
46
 
47
- For ActiveRecord, you probably want to declare permissions and organisations as "serialized" like this:
47
+ For ActiveRecord, you probably want to declare permissions as "serialized" like this:
48
48
 
49
49
  serialize :permissions, Array
50
- serialize :organisations, Array
51
50
 
52
51
 
53
52
  ## Use in development mode
@@ -33,7 +33,7 @@ class Api::UserController < ApplicationController
33
33
  extra: {
34
34
  user: {
35
35
  permissions: user_json['permissions'],
36
- organisations: user_json['organisations'],
36
+ organisation: user_json['organisation'],
37
37
  }
38
38
  })
39
39
  end
data/lib/gds-sso/user.rb CHANGED
@@ -4,7 +4,7 @@ module GDS
4
4
  module SSO
5
5
  module User
6
6
  def included(base)
7
- attr_accessible :uid, :email, :name, :permissions, :organisations, as: :oauth
7
+ attr_accessible :uid, :email, :name, :permissions, :organisation, as: :oauth
8
8
  end
9
9
 
10
10
  def has_permission?(permission)
@@ -19,7 +19,7 @@ module GDS
19
19
  'email' => auth_hash['info']['email'],
20
20
  'name' => auth_hash['info']['name'],
21
21
  'permissions' => auth_hash['extra']['user']['permissions'],
22
- 'organisations' => auth_hash['extra']['user']['organisations'],
22
+ 'organisation' => auth_hash['extra']['user']['organisation'],
23
23
  }
24
24
  end
25
25
 
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "5.0.0"
3
+ VERSION = "6.0.0"
4
4
  end
5
5
  end
@@ -110,7 +110,7 @@ Warden::Strategies.add(:gds_bearer_token) do
110
110
  'extra' => {
111
111
  'user' => {
112
112
  'permissions' => input['permissions'],
113
- 'organisations' => input['organisations'],
113
+ 'organisation' => input['organisation'],
114
114
  }
115
115
  }
116
116
  }
@@ -7,7 +7,7 @@ def user_update_json
7
7
  "name" => "Joshua Marshall",
8
8
  "email" => "user@domain.com",
9
9
  "permissions" => ["signin", "new permission"],
10
- "organisations" => ["justice-league"]
10
+ "organisation" => "justice-league"
11
11
  }
12
12
  }.to_json
13
13
  end
@@ -60,8 +60,8 @@ describe Api::UserController, type: :controller do
60
60
  assert_equal "user@domain.com", @user_to_update.email
61
61
  expected_permissions = ["signin", "new permission"]
62
62
  assert_equal expected_permissions, @user_to_update.permissions
63
- expected_organisations = ["justice-league"]
64
- assert_equal expected_organisations, @user_to_update.organisations
63
+ expected_organisation = "justice-league"
64
+ assert_equal expected_organisation, @user_to_update.organisation
65
65
  end
66
66
  end
67
67
 
@@ -2,7 +2,6 @@ class User < ActiveRecord::Base
2
2
  include GDS::SSO::User
3
3
 
4
4
  serialize :permissions, Array
5
- serialize :organisations, Array
6
5
 
7
- attr_accessible :uid, :email, :name, :permissions, :organisations, as: :oauth
6
+ attr_accessible :uid, :email, :name, :permissions, :organisation, as: :oauth
8
7
  end
@@ -5,6 +5,6 @@ ActiveRecord::Schema.define do
5
5
  t.string "email", :null => false
6
6
  t.boolean "remotely_signed_out"
7
7
  t.text "permissions"
8
- t.text "organisations"
8
+ t.string "organisation"
9
9
  end
10
10
  end
@@ -5803,3 +5803,2387 @@ Authenticating with gds_bearer_token strategy
5803
5803
  ' WHERE "users"."id" = 11
5804
5804
   (3.2ms) commit transaction
5805
5805
  Completed 200 OK in 52.9ms (Views: 0.2ms | ActiveRecord: 15.2ms)
5806
+ Connecting to database specified by database.yml
5807
+  (0.7ms) select sqlite_version(*)
5808
+  (5.4ms) DROP TABLE "users"
5809
+  (2.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, "organisations" text) 
5810
+  (0.1ms) begin transaction
5811
+ SQL (2.1ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37997"]]
5812
+  (5.0ms) commit transaction
5813
+  (0.1ms) begin transaction
5814
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38980"]]
5815
+  (4.2ms) commit transaction
5816
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
5817
+ Processing by Api::UserController#update as HTML
5818
+ Parameters: {"uid"=>"a1s2d37997"}
5819
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.9ms)
5820
+ Completed 403 Forbidden in 6.7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
5821
+  (0.1ms) begin transaction
5822
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38131"]]
5823
+  (4.1ms) commit transaction
5824
+  (0.0ms) begin transaction
5825
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37630"]]
5826
+  (4.2ms) commit transaction
5827
+ Processing by Api::UserController#update as HTML
5828
+ Parameters: {"uid"=>"a1s2d38131"}
5829
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38131' LIMIT 1
5830
+  (0.0ms) begin transaction
5831
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
5832
+ - signin
5833
+ - new permission
5834
+ ', "organisations" = '---
5835
+ - justice-league
5836
+ ' WHERE "users"."id" = 3
5837
+  (3.8ms) commit transaction
5838
+ Completed 200 OK in 14.4ms (ActiveRecord: 4.3ms)
5839
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
5840
+  (0.1ms) begin transaction
5841
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37589"]]
5842
+  (3.8ms) commit transaction
5843
+  (0.0ms) begin transaction
5844
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37011"]]
5845
+  (3.4ms) commit transaction
5846
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
5847
+ Processing by Api::UserController#reauth as HTML
5848
+ Parameters: {"uid"=>"a1s2d37589"}
5849
+ Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)
5850
+  (0.1ms) begin transaction
5851
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39992"]]
5852
+  (3.2ms) commit transaction
5853
+  (0.0ms) begin transaction
5854
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34549"]]
5855
+  (4.5ms) commit transaction
5856
+ Processing by Api::UserController#reauth as HTML
5857
+ Parameters: {"uid"=>"nonexistent-user"}
5858
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
5859
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
5860
+  (0.1ms) begin transaction
5861
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38686"]]
5862
+  (4.2ms) commit transaction
5863
+  (0.0ms) begin transaction
5864
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36824"]]
5865
+  (4.4ms) commit transaction
5866
+ Processing by Api::UserController#reauth as HTML
5867
+ Parameters: {"uid"=>"a1s2d38686"}
5868
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38686' LIMIT 1
5869
+  (0.0ms) begin transaction
5870
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
5871
+ - signin
5872
+ ', "organisations" = '--- []
5873
+ ' WHERE "users"."id" = 9
5874
+  (3.7ms) commit transaction
5875
+ Completed 200 OK in 8.2ms (ActiveRecord: 4.2ms)
5876
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
5877
+ Started GET "/" for 127.0.0.1 at 2013-11-01 10:22:44 +0000
5878
+ Processing by ExampleController#index as HTML
5879
+ Completed 200 OK in 2.1ms (Views: 1.7ms | ActiveRecord: 0.0ms)
5880
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:44 +0000
5881
+ Processing by ExampleController#restricted as HTML
5882
+ Authenticating with gds_sso strategy
5883
+ Completed in 2.5ms
5884
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:44 +0000
5885
+ Started GET "/auth/gds/callback?code=19cef20cb286a2ff7b4de41c4a2856936a71efcfe97f62b74d1ac15b4fbd8a47&state=6b736556fc2c41f6d0bebcc1aeb10410b1415e756f9731b0" for 127.0.0.1 at 2013-11-01 10:22:45 +0000
5886
+ Processing by AuthenticationsController#callback as HTML
5887
+ Parameters: {"code"=>"19cef20cb286a2ff7b4de41c4a2856936a71efcfe97f62b74d1ac15b4fbd8a47", "state"=>"6b736556fc2c41f6d0bebcc1aeb10410b1415e756f9731b0"}
5888
+ Authenticating with gds_sso strategy
5889
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5890
+  (0.1ms) begin transaction
5891
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisations", "--- []\n"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
5892
+  (4.8ms) commit transaction
5893
+  (0.0ms) begin transaction
5894
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
5895
+ - signin
5896
+ ', "organisations" = '--- []
5897
+ ' WHERE "users"."id" = 11
5898
+  (2.9ms) commit transaction
5899
+ Redirected to http://www.example-client.com/restricted
5900
+ Completed 302 Found in 16.2ms (ActiveRecord: 8.2ms)
5901
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:45 +0000
5902
+ Processing by ExampleController#restricted as HTML
5903
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5904
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
5905
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:45 +0000
5906
+ Processing by ExampleController#restricted as HTML
5907
+ Authenticating with gds_sso strategy
5908
+ Completed in 0.2ms
5909
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:45 +0000
5910
+ Started GET "/auth/gds/callback?code=3d3b93cfc9d21d02de05eabbf2b4202b18ec4cba473467c7a8899b44cb61a3ce&state=f24a2ec7e37c4511cc52e566a067a06125e84040b06e3ede" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5911
+ Processing by AuthenticationsController#callback as HTML
5912
+ Parameters: {"code"=>"3d3b93cfc9d21d02de05eabbf2b4202b18ec4cba473467c7a8899b44cb61a3ce", "state"=>"f24a2ec7e37c4511cc52e566a067a06125e84040b06e3ede"}
5913
+ Authenticating with gds_sso strategy
5914
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5915
+  (0.1ms) begin transaction
5916
+  (0.1ms) UPDATE "users" SET "permissions" = '---
5917
+ - signin
5918
+ ', "organisations" = '--- []
5919
+ ' WHERE "users"."id" = 11
5920
+  (4.7ms) commit transaction
5921
+  (0.0ms) begin transaction
5922
+  (0.1ms) UPDATE "users" SET "permissions" = '---
5923
+ - signin
5924
+ ', "organisations" = '--- []
5925
+ ' WHERE "users"."id" = 11
5926
+  (2.7ms) commit transaction
5927
+ Redirected to http://www.example-client.com/restricted
5928
+ Completed 302 Found in 19.1ms (ActiveRecord: 8.0ms)
5929
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5930
+ Processing by ExampleController#restricted as HTML
5931
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5932
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
5933
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5934
+ Processing by ExampleController#restricted as HTML
5935
+ Authenticating with gds_sso strategy
5936
+ Completed in 0.1ms
5937
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5938
+ Started GET "/auth/gds/callback?code=59aabfa79506ddc2bee2274974b612be2d4009de0e20b612c51e1e60128468f5&state=4944aac86f8eaecf0b17135970c398f11d140ca6d78b87f3" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5939
+ Processing by AuthenticationsController#callback as HTML
5940
+ Parameters: {"code"=>"59aabfa79506ddc2bee2274974b612be2d4009de0e20b612c51e1e60128468f5", "state"=>"4944aac86f8eaecf0b17135970c398f11d140ca6d78b87f3"}
5941
+ Authenticating with gds_sso strategy
5942
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5943
+  (0.0ms) begin transaction
5944
+  (0.2ms) UPDATE "users" SET "permissions" = '---
5945
+ - signin
5946
+ ', "organisations" = '--- []
5947
+ ' WHERE "users"."id" = 11
5948
+  (3.6ms) commit transaction
5949
+  (0.1ms) begin transaction
5950
+  (0.1ms) UPDATE "users" SET "permissions" = '---
5951
+ - signin
5952
+ ', "organisations" = '--- []
5953
+ ' WHERE "users"."id" = 11
5954
+  (3.4ms) commit transaction
5955
+ Redirected to http://www.example-client.com/restricted
5956
+ Completed 302 Found in 17.7ms (ActiveRecord: 7.5ms)
5957
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5958
+ Processing by ExampleController#restricted as HTML
5959
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5960
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
5961
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5962
+ Processing by ExampleController#this_requires_signin_permission as HTML
5963
+ Authenticating with gds_sso strategy
5964
+ Completed in 0.6ms
5965
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5966
+ Started GET "/auth/gds/callback?code=f49cd39986b224f1c5a27707a75477cdfbc7d26ebc3599af0adb40905ab22fbf&state=9037843d24c2e9f4c1f6790829cd43c6da24d79a8ddef812" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5967
+ Processing by AuthenticationsController#callback as HTML
5968
+ Parameters: {"code"=>"f49cd39986b224f1c5a27707a75477cdfbc7d26ebc3599af0adb40905ab22fbf", "state"=>"9037843d24c2e9f4c1f6790829cd43c6da24d79a8ddef812"}
5969
+ Authenticating with gds_sso strategy
5970
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5971
+  (0.1ms) begin transaction
5972
+  (0.1ms) UPDATE "users" SET "permissions" = '---
5973
+ - signin
5974
+ ', "organisations" = '--- []
5975
+ ' WHERE "users"."id" = 11
5976
+  (4.1ms) commit transaction
5977
+  (0.0ms) begin transaction
5978
+  (0.1ms) UPDATE "users" SET "permissions" = '---
5979
+ - signin
5980
+ ', "organisations" = '--- []
5981
+ ' WHERE "users"."id" = 11
5982
+  (3.3ms) commit transaction
5983
+ Redirected to http://www.example-client.com/this_requires_signin_permission
5984
+ Completed 302 Found in 18.4ms (ActiveRecord: 7.9ms)
5985
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5986
+ Processing by ExampleController#this_requires_signin_permission as HTML
5987
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5988
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
5989
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5990
+ Processing by ExampleController#this_requires_signin_permission as HTML
5991
+ Authenticating with gds_sso strategy
5992
+ Completed in 0.1ms
5993
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5994
+ Started GET "/auth/gds/callback?code=08386c1211961032856d3e5acef34fbb4a52155a0d8893341417b60cc4b54924&state=6c66bcb259de8ac93d6bdc30eb50c90e024cb4a414612719" for 127.0.0.1 at 2013-11-01 10:22:46 +0000
5995
+ Processing by AuthenticationsController#callback as HTML
5996
+ Parameters: {"code"=>"08386c1211961032856d3e5acef34fbb4a52155a0d8893341417b60cc4b54924", "state"=>"6c66bcb259de8ac93d6bdc30eb50c90e024cb4a414612719"}
5997
+ Authenticating with gds_sso strategy
5998
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
5999
+  (0.0ms) begin transaction
6000
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6001
+ - signin
6002
+ ', "organisations" = '--- []
6003
+ ' WHERE "users"."id" = 11
6004
+  (3.9ms) commit transaction
6005
+  (0.0ms) begin transaction
6006
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6007
+ - signin
6008
+ ', "organisations" = '--- []
6009
+ ' WHERE "users"."id" = 11
6010
+  (11.6ms) commit transaction
6011
+ Redirected to http://www.example-client.com/this_requires_signin_permission
6012
+ Completed 302 Found in 26.3ms (ActiveRecord: 16.0ms)
6013
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6014
+ Processing by ExampleController#this_requires_signin_permission as HTML
6015
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6016
+ Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6017
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6018
+ Processing by ExampleController#restricted as HTML
6019
+ Authenticating with gds_sso strategy
6020
+ Completed in 0.2ms
6021
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6022
+ Started GET "/auth/gds/callback?code=59c38590490837d6a2d48b1a0ba2b464aed00a17e9bf25972ed1f73fb5040a91&state=d28cf0af4aad3eeab77870f6973633d8a7574983119703cd" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6023
+ Processing by AuthenticationsController#callback as HTML
6024
+ Parameters: {"code"=>"59c38590490837d6a2d48b1a0ba2b464aed00a17e9bf25972ed1f73fb5040a91", "state"=>"d28cf0af4aad3eeab77870f6973633d8a7574983119703cd"}
6025
+ Authenticating with gds_sso strategy
6026
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6027
+  (0.1ms) begin transaction
6028
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6029
+ - signin
6030
+ ', "organisations" = '--- []
6031
+ ' WHERE "users"."id" = 11
6032
+  (4.7ms) commit transaction
6033
+  (0.0ms) begin transaction
6034
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6035
+ - signin
6036
+ ', "organisations" = '--- []
6037
+ ' WHERE "users"."id" = 11
6038
+  (3.7ms) commit transaction
6039
+ Redirected to http://www.example-client.com/restricted
6040
+ Completed 302 Found in 19.7ms (ActiveRecord: 9.0ms)
6041
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6042
+ Processing by ExampleController#restricted as HTML
6043
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6044
+ Completed 200 OK in 1.1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
6045
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6046
+  (0.0ms) begin transaction
6047
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
6048
+ - signin
6049
+ ', "organisations" = '--- []
6050
+ ' WHERE "users"."id" = 11
6051
+  (2.9ms) commit transaction
6052
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6053
+ Processing by ExampleController#restricted as HTML
6054
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6055
+ Filter chain halted as :authenticate_user! rendered or redirected
6056
+ Completed 403 Forbidden in 2.6ms (Views: 1.8ms | ActiveRecord: 0.1ms)
6057
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6058
+ Processing by AuthenticationsController#sign_out as HTML
6059
+ Redirected to http://localhost:4567/users/sign_out
6060
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
6061
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6062
+ Processing by ExampleController#restricted as HTML
6063
+ Authenticating with gds_sso strategy
6064
+ Completed in 0.2ms
6065
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6066
+ Started GET "/auth/gds/callback?code=5d37a488b73eb055168e88714076e408407f6d15ad9fc67404c24e4d3cd98962&state=d21d673b2fa4350c231a7c68d19d89a9b2aa24bd1cac7721" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6067
+ Processing by AuthenticationsController#callback as HTML
6068
+ Parameters: {"code"=>"5d37a488b73eb055168e88714076e408407f6d15ad9fc67404c24e4d3cd98962", "state"=>"d21d673b2fa4350c231a7c68d19d89a9b2aa24bd1cac7721"}
6069
+ Authenticating with gds_sso strategy
6070
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6071
+  (0.0ms) begin transaction
6072
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6073
+ - signin
6074
+ ', "organisations" = '--- []
6075
+ ' WHERE "users"."id" = 11
6076
+  (3.9ms) commit transaction
6077
+  (0.0ms) begin transaction
6078
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
6079
+ - signin
6080
+ ', "organisations" = '--- []
6081
+ ' WHERE "users"."id" = 11
6082
+  (3.2ms) commit transaction
6083
+ Redirected to http://www.example-client.com/restricted
6084
+ Completed 302 Found in 17.9ms (ActiveRecord: 7.6ms)
6085
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6086
+ Processing by ExampleController#restricted as HTML
6087
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6088
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6089
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6090
+ Processing by ExampleController#restricted as HTML
6091
+ Authenticating with gds_sso strategy
6092
+ Completed in 0.2ms
6093
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6094
+ Started GET "/auth/gds/callback?code=52d0ff9b3efe8abde60d3e9e6dfae8f04d67e78818c088bdc0dde0d75f0ba8c2&state=42d5515d89d93bcdc9f7f1c9487dc3749d448d91b8009d06" for 127.0.0.1 at 2013-11-01 10:22:47 +0000
6095
+ Processing by AuthenticationsController#callback as HTML
6096
+ Parameters: {"code"=>"52d0ff9b3efe8abde60d3e9e6dfae8f04d67e78818c088bdc0dde0d75f0ba8c2", "state"=>"42d5515d89d93bcdc9f7f1c9487dc3749d448d91b8009d06"}
6097
+ Authenticating with gds_sso strategy
6098
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6099
+  (0.1ms) begin transaction
6100
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6101
+ - signin
6102
+ ', "organisations" = '--- []
6103
+ ' WHERE "users"."id" = 11
6104
+  (4.0ms) commit transaction
6105
+  (0.0ms) begin transaction
6106
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6107
+ - signin
6108
+ ', "organisations" = '--- []
6109
+ ' WHERE "users"."id" = 11
6110
+  (2.5ms) commit transaction
6111
+ Redirected to http://www.example-client.com/restricted
6112
+ Completed 302 Found in 19.0ms (ActiveRecord: 7.1ms)
6113
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
6114
+ Processing by ExampleController#restricted as HTML
6115
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6116
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
6117
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-02 06:27:48 +0000
6118
+ Processing by ExampleController#restricted as HTML
6119
+ Authenticating with gds_sso strategy
6120
+ Completed in 0.2ms
6121
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-02 06:27:48 +0000
6122
+ Started GET "/auth/gds/callback?code=902097aabfd85b3c61d45350c2878d9528eb09549a158bf85134e0b64cad5ad0&state=879f144564d8bb18e8639558df153002f84db8e2a2f5098c" for 127.0.0.1 at 2013-11-02 06:27:48 +0000
6123
+ Processing by AuthenticationsController#callback as HTML
6124
+ Parameters: {"code"=>"902097aabfd85b3c61d45350c2878d9528eb09549a158bf85134e0b64cad5ad0", "state"=>"879f144564d8bb18e8639558df153002f84db8e2a2f5098c"}
6125
+ Authenticating with gds_sso strategy
6126
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6127
+  (0.1ms) begin transaction
6128
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6129
+ - signin
6130
+ ', "organisations" = '--- []
6131
+ ' WHERE "users"."id" = 11
6132
+  (3.4ms) commit transaction
6133
+  (0.0ms) begin transaction
6134
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6135
+ - signin
6136
+ ', "organisations" = '--- []
6137
+ ' WHERE "users"."id" = 11
6138
+  (3.1ms) commit transaction
6139
+ Redirected to http://www.example-client.com/restricted
6140
+ Completed 302 Found in 16.9ms (ActiveRecord: 7.0ms)
6141
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-02 06:27:48 +0000
6142
+ Processing by ExampleController#restricted as HTML
6143
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6144
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
6145
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
6146
+ Processing by ExampleController#restricted as HTML
6147
+ Authenticating with gds_sso strategy
6148
+ Completed in 0.2ms
6149
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
6150
+ Started GET "/auth/gds/callback?code=851fe8f0c7f5481b3e0a01a84fa76ab1690bf2d819941467a9bc3e2b95bfe84e&state=8e3d6b258ad1e3b1865946ad1042d688376e8b370124cec5" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
6151
+ Processing by AuthenticationsController#callback as HTML
6152
+ Parameters: {"code"=>"851fe8f0c7f5481b3e0a01a84fa76ab1690bf2d819941467a9bc3e2b95bfe84e", "state"=>"8e3d6b258ad1e3b1865946ad1042d688376e8b370124cec5"}
6153
+ Authenticating with gds_sso strategy
6154
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6155
+  (0.1ms) begin transaction
6156
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6157
+ - signin
6158
+ ', "organisations" = '--- []
6159
+ ' WHERE "users"."id" = 11
6160
+  (4.6ms) commit transaction
6161
+  (0.0ms) begin transaction
6162
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6163
+ - signin
6164
+ ', "organisations" = '--- []
6165
+ ' WHERE "users"."id" = 11
6166
+  (3.4ms) commit transaction
6167
+ Redirected to http://www.example-client.com/restricted
6168
+ Completed 302 Found in 19.7ms (ActiveRecord: 8.6ms)
6169
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
6170
+ Processing by ExampleController#restricted as HTML
6171
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6172
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6173
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-02 06:17:48 +0000
6174
+ Processing by ExampleController#restricted as HTML
6175
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6176
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
6177
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
6178
+ Processing by ExampleController#restricted as JSON
6179
+ Authenticating with gds_bearer_token strategy
6180
+ Completed in 7.3ms
6181
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
6182
+ Processing by ExampleController#restricted as JSON
6183
+ Authenticating with gds_bearer_token strategy
6184
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6185
+  (0.0ms) begin transaction
6186
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6187
+ - signin
6188
+ ', "organisations" = '--- []
6189
+ ' WHERE "users"."id" = 11
6190
+  (4.1ms) commit transaction
6191
+  (0.0ms) begin transaction
6192
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6193
+ - signin
6194
+ ', "organisations" = '--- []
6195
+ ' WHERE "users"."id" = 11
6196
+  (2.8ms) commit transaction
6197
+ Completed 200 OK in 41.6ms (Views: 0.2ms | ActiveRecord: 7.5ms)
6198
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 10:22:48 +0000
6199
+ Processing by ExampleController#this_requires_signin_permission as JSON
6200
+ Authenticating with gds_bearer_token strategy
6201
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6202
+  (0.0ms) begin transaction
6203
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6204
+ - signin
6205
+ ', "organisations" = '--- []
6206
+ ' WHERE "users"."id" = 11
6207
+  (4.3ms) commit transaction
6208
+  (0.0ms) begin transaction
6209
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6210
+ - signin
6211
+ ', "organisations" = '--- []
6212
+ ' WHERE "users"."id" = 11
6213
+  (2.8ms) commit transaction
6214
+ Completed 200 OK in 43.1ms (Views: 0.2ms | ActiveRecord: 7.7ms)
6215
+ Connecting to database specified by database.yml
6216
+  (0.7ms) select sqlite_version(*)
6217
+  (28.4ms) DROP TABLE "users"
6218
+  (13.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, "organisations" text) 
6219
+  (0.1ms) begin transaction
6220
+ SQL (1.9ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39893"]]
6221
+  (20.2ms) commit transaction
6222
+  (0.1ms) begin transaction
6223
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35649"]]
6224
+  (48.1ms) commit transaction
6225
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
6226
+ Processing by Api::UserController#update as HTML
6227
+ Parameters: {"uid"=>"a1s2d39893"}
6228
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
6229
+ Completed 403 Forbidden in 16.4ms (Views: 5.6ms | ActiveRecord: 0.0ms)
6230
+  (0.1ms) begin transaction
6231
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31171"]]
6232
+  (16.8ms) commit transaction
6233
+  (0.1ms) begin transaction
6234
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37785"]]
6235
+  (20.1ms) commit transaction
6236
+ Processing by Api::UserController#update as HTML
6237
+ Parameters: {"uid"=>"a1s2d31171"}
6238
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31171' LIMIT 1
6239
+  (0.1ms) begin transaction
6240
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
6241
+ - signin
6242
+ - new permission
6243
+ ', "organisations" = '---
6244
+ - justice-league
6245
+ ' WHERE "users"."id" = 3
6246
+  (16.1ms) commit transaction
6247
+ Completed 200 OK in 35.8ms (ActiveRecord: 16.5ms)
6248
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
6249
+  (0.1ms) begin transaction
6250
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38789"]]
6251
+  (17.4ms) commit transaction
6252
+  (0.1ms) begin transaction
6253
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32212"]]
6254
+  (13.2ms) commit transaction
6255
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
6256
+ Processing by Api::UserController#reauth as HTML
6257
+ Parameters: {"uid"=>"a1s2d38789"}
6258
+ Completed 403 Forbidden in 1.9ms (Views: 1.0ms | ActiveRecord: 0.0ms)
6259
+  (0.1ms) begin transaction
6260
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3419"]]
6261
+  (16.7ms) commit transaction
6262
+  (0.1ms) begin transaction
6263
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38493"]]
6264
+  (26.4ms) commit transaction
6265
+ Processing by Api::UserController#reauth as HTML
6266
+ Parameters: {"uid"=>"nonexistent-user"}
6267
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
6268
+ Completed 200 OK in 1.7ms (ActiveRecord: 0.2ms)
6269
+  (0.1ms) begin transaction
6270
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31001"]]
6271
+  (20.9ms) commit transaction
6272
+  (0.1ms) begin transaction
6273
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33036"]]
6274
+  (11.9ms) commit transaction
6275
+ Processing by Api::UserController#reauth as HTML
6276
+ Parameters: {"uid"=>"a1s2d31001"}
6277
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31001' LIMIT 1
6278
+  (0.0ms) begin transaction
6279
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
6280
+ - signin
6281
+ ', "organisations" = '--- []
6282
+ ' WHERE "users"."id" = 9
6283
+  (21.4ms) commit transaction
6284
+ Completed 200 OK in 53.9ms (ActiveRecord: 21.8ms)
6285
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
6286
+ Started GET "/" for 127.0.0.1 at 2013-11-01 17:03:56 +0000
6287
+ Processing by ExampleController#index as HTML
6288
+ Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
6289
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:56 +0000
6290
+ Processing by ExampleController#restricted as HTML
6291
+ Authenticating with gds_sso strategy
6292
+ Completed in 2.4ms
6293
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:56 +0000
6294
+ Started GET "/auth/gds/callback?code=783e3b3d0a3ddb2cc1adbf81a4c5577d3151c5dfd5430c93ea92e11c41db39d0&state=d002c1df400ea2ab8550b77b474c5ab2727b475fdcd45a0c" for 127.0.0.1 at 2013-11-01 17:03:57 +0000
6295
+ Processing by AuthenticationsController#callback as HTML
6296
+ Parameters: {"code"=>"783e3b3d0a3ddb2cc1adbf81a4c5577d3151c5dfd5430c93ea92e11c41db39d0", "state"=>"d002c1df400ea2ab8550b77b474c5ab2727b475fdcd45a0c"}
6297
+ Authenticating with gds_sso strategy
6298
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6299
+  (0.1ms) begin transaction
6300
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisations", "--- []\n"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
6301
+  (11.4ms) commit transaction
6302
+  (0.0ms) begin transaction
6303
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
6304
+ - signin
6305
+ ', "organisations" = '--- []
6306
+ ' WHERE "users"."id" = 11
6307
+  (2.7ms) commit transaction
6308
+ Redirected to http://www.example-client.com/restricted
6309
+ Completed 302 Found in 22.2ms (ActiveRecord: 14.6ms)
6310
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:57 +0000
6311
+ Processing by ExampleController#restricted as HTML
6312
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6313
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6314
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:57 +0000
6315
+ Processing by ExampleController#restricted as HTML
6316
+ Authenticating with gds_sso strategy
6317
+ Completed in 0.2ms
6318
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:57 +0000
6319
+ Started GET "/auth/gds/callback?code=73f1527c59d3efcac3eb14321cea19b5307e50feeb12e5348bf2732fe6f2d4a0&state=afe2ab60b511ef06e29654ad6cccdf7366254dd87003d5e0" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
6320
+ Processing by AuthenticationsController#callback as HTML
6321
+ Parameters: {"code"=>"73f1527c59d3efcac3eb14321cea19b5307e50feeb12e5348bf2732fe6f2d4a0", "state"=>"afe2ab60b511ef06e29654ad6cccdf7366254dd87003d5e0"}
6322
+ Authenticating with gds_sso strategy
6323
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6324
+  (0.1ms) begin transaction
6325
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6326
+ - signin
6327
+ ', "organisations" = '--- []
6328
+ ' WHERE "users"."id" = 11
6329
+  (5.4ms) commit transaction
6330
+  (0.0ms) begin transaction
6331
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6332
+ - signin
6333
+ ', "organisations" = '--- []
6334
+ ' WHERE "users"."id" = 11
6335
+  (4.7ms) commit transaction
6336
+ Redirected to http://www.example-client.com/restricted
6337
+ Completed 302 Found in 22.0ms (ActiveRecord: 10.7ms)
6338
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
6339
+ Processing by ExampleController#restricted as HTML
6340
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6341
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6342
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
6343
+ Processing by ExampleController#restricted as HTML
6344
+ Authenticating with gds_sso strategy
6345
+ Completed in 0.1ms
6346
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
6347
+ Started GET "/auth/gds/callback?code=b58c58c80f8dbc7f27635cd17034fc7d8dd713c3b215f8527e4a3a1df9fd3f3d&state=5b700227a2439edeaf116c502d3f18c7a52a75a53410eeb5" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
6348
+ Processing by AuthenticationsController#callback as HTML
6349
+ Parameters: {"code"=>"b58c58c80f8dbc7f27635cd17034fc7d8dd713c3b215f8527e4a3a1df9fd3f3d", "state"=>"5b700227a2439edeaf116c502d3f18c7a52a75a53410eeb5"}
6350
+ Authenticating with gds_sso strategy
6351
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6352
+  (0.0ms) begin transaction
6353
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6354
+ - signin
6355
+ ', "organisations" = '--- []
6356
+ ' WHERE "users"."id" = 11
6357
+  (14.8ms) commit transaction
6358
+  (0.0ms) begin transaction
6359
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6360
+ - signin
6361
+ ', "organisations" = '--- []
6362
+ ' WHERE "users"."id" = 11
6363
+  (12.6ms) commit transaction
6364
+ Redirected to http://www.example-client.com/restricted
6365
+ Completed 302 Found in 37.8ms (ActiveRecord: 27.9ms)
6366
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
6367
+ Processing by ExampleController#restricted as HTML
6368
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6369
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
6370
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
6371
+ Processing by ExampleController#this_requires_signin_permission as HTML
6372
+ Authenticating with gds_sso strategy
6373
+ Completed in 0.5ms
6374
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:58 +0000
6375
+ Started GET "/auth/gds/callback?code=5561e9afe84d3e4c8ef3538e547cf682cb9fcf7278e7bd3635966a1dbe1262f6&state=902086e3bdfcad9629273f070fd8ff5a9ddc763ffee127d1" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6376
+ Processing by AuthenticationsController#callback as HTML
6377
+ Parameters: {"code"=>"5561e9afe84d3e4c8ef3538e547cf682cb9fcf7278e7bd3635966a1dbe1262f6", "state"=>"902086e3bdfcad9629273f070fd8ff5a9ddc763ffee127d1"}
6378
+ Authenticating with gds_sso strategy
6379
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6380
+  (0.1ms) begin transaction
6381
+  (2.6ms) UPDATE "users" SET "permissions" = '---
6382
+ - signin
6383
+ ', "organisations" = '--- []
6384
+ ' WHERE "users"."id" = 11
6385
+  (13.8ms) commit transaction
6386
+  (0.0ms) begin transaction
6387
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6388
+ - signin
6389
+ ', "organisations" = '--- []
6390
+ ' WHERE "users"."id" = 11
6391
+  (12.1ms) commit transaction
6392
+ Redirected to http://www.example-client.com/this_requires_signin_permission
6393
+ Completed 302 Found in 45.3ms (ActiveRecord: 28.9ms)
6394
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6395
+ Processing by ExampleController#this_requires_signin_permission as HTML
6396
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6397
+ Completed 200 OK in 2.5ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6398
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6399
+ Processing by ExampleController#this_requires_signin_permission as HTML
6400
+ Authenticating with gds_sso strategy
6401
+ Completed in 0.1ms
6402
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6403
+ Started GET "/auth/gds/callback?code=dbd272eb65fb3376d60373f9f25bc0f61b3dfe5d0f4a9d3cf708ece5c7fc2048&state=eb61df8ff7f3a508d16a83447e73dda12a11c423fb0a22ac" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6404
+ Processing by AuthenticationsController#callback as HTML
6405
+ Parameters: {"code"=>"dbd272eb65fb3376d60373f9f25bc0f61b3dfe5d0f4a9d3cf708ece5c7fc2048", "state"=>"eb61df8ff7f3a508d16a83447e73dda12a11c423fb0a22ac"}
6406
+ Authenticating with gds_sso strategy
6407
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6408
+  (0.0ms) begin transaction
6409
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6410
+ - signin
6411
+ ', "organisations" = '--- []
6412
+ ' WHERE "users"."id" = 11
6413
+  (13.0ms) commit transaction
6414
+  (0.0ms) begin transaction
6415
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6416
+ - signin
6417
+ ', "organisations" = '--- []
6418
+ ' WHERE "users"."id" = 11
6419
+  (10.2ms) commit transaction
6420
+ Redirected to http://www.example-client.com/this_requires_signin_permission
6421
+ Completed 302 Found in 33.8ms (ActiveRecord: 23.7ms)
6422
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6423
+ Processing by ExampleController#this_requires_signin_permission as HTML
6424
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6425
+ Completed 200 OK in 2.5ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6426
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6427
+ Processing by ExampleController#restricted as HTML
6428
+ Authenticating with gds_sso strategy
6429
+ Completed in 0.2ms
6430
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6431
+ Started GET "/auth/gds/callback?code=f6c5de21f80bb0e6cb0b9ed3de22e27c53bf23cd06d409cfd16e3603a9bda6ed&state=da77b372e42e46ee3203caa239e4a5a0741496628b8d2d86" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6432
+ Processing by AuthenticationsController#callback as HTML
6433
+ Parameters: {"code"=>"f6c5de21f80bb0e6cb0b9ed3de22e27c53bf23cd06d409cfd16e3603a9bda6ed", "state"=>"da77b372e42e46ee3203caa239e4a5a0741496628b8d2d86"}
6434
+ Authenticating with gds_sso strategy
6435
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6436
+  (0.1ms) begin transaction
6437
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6438
+ - signin
6439
+ ', "organisations" = '--- []
6440
+ ' WHERE "users"."id" = 11
6441
+  (11.7ms) commit transaction
6442
+  (0.0ms) begin transaction
6443
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6444
+ - signin
6445
+ ', "organisations" = '--- []
6446
+ ' WHERE "users"."id" = 11
6447
+  (11.1ms) commit transaction
6448
+ Redirected to http://www.example-client.com/restricted
6449
+ Completed 302 Found in 34.9ms (ActiveRecord: 23.3ms)
6450
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6451
+ Processing by ExampleController#restricted as HTML
6452
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6453
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6454
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6455
+  (0.0ms) begin transaction
6456
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
6457
+ - signin
6458
+ ', "organisations" = '--- []
6459
+ ' WHERE "users"."id" = 11
6460
+  (8.7ms) commit transaction
6461
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6462
+ Processing by ExampleController#restricted as HTML
6463
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6464
+ Filter chain halted as :authenticate_user! rendered or redirected
6465
+ Completed 403 Forbidden in 2.8ms (Views: 1.8ms | ActiveRecord: 0.1ms)
6466
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-01 17:03:59 +0000
6467
+ Processing by AuthenticationsController#sign_out as HTML
6468
+ Redirected to http://localhost:4567/users/sign_out
6469
+ Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
6470
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
6471
+ Processing by ExampleController#restricted as HTML
6472
+ Authenticating with gds_sso strategy
6473
+ Completed in 0.4ms
6474
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
6475
+ Started GET "/auth/gds/callback?code=10dea31bf59fc792dd100e38bc02e9e2917e319fe52ee5adc3b07a952c27176d&state=cb5c1358cdf199402249d647eb86b62fcb3fc76e4c880be2" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
6476
+ Processing by AuthenticationsController#callback as HTML
6477
+ Parameters: {"code"=>"10dea31bf59fc792dd100e38bc02e9e2917e319fe52ee5adc3b07a952c27176d", "state"=>"cb5c1358cdf199402249d647eb86b62fcb3fc76e4c880be2"}
6478
+ Authenticating with gds_sso strategy
6479
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6480
+  (0.0ms) begin transaction
6481
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6482
+ - signin
6483
+ ', "organisations" = '--- []
6484
+ ' WHERE "users"."id" = 11
6485
+  (8.9ms) commit transaction
6486
+  (0.0ms) begin transaction
6487
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
6488
+ - signin
6489
+ ', "organisations" = '--- []
6490
+ ' WHERE "users"."id" = 11
6491
+  (5.9ms) commit transaction
6492
+ Redirected to http://www.example-client.com/restricted
6493
+ Completed 302 Found in 25.5ms (ActiveRecord: 15.2ms)
6494
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
6495
+ Processing by ExampleController#restricted as HTML
6496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6497
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6498
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
6499
+ Processing by ExampleController#restricted as HTML
6500
+ Authenticating with gds_sso strategy
6501
+ Completed in 0.2ms
6502
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
6503
+ Started GET "/auth/gds/callback?code=5970f14d47f292a3ffb28f516a506a2f17431fb50ccacc770bd49fc78591639f&state=4ef9e2e606da002f74837fccd49404d83d2ffddb31bdf082" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
6504
+ Processing by AuthenticationsController#callback as HTML
6505
+ Parameters: {"code"=>"5970f14d47f292a3ffb28f516a506a2f17431fb50ccacc770bd49fc78591639f", "state"=>"4ef9e2e606da002f74837fccd49404d83d2ffddb31bdf082"}
6506
+ Authenticating with gds_sso strategy
6507
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6508
+  (0.1ms) begin transaction
6509
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6510
+ - signin
6511
+ ', "organisations" = '--- []
6512
+ ' WHERE "users"."id" = 11
6513
+  (12.1ms) commit transaction
6514
+  (0.0ms) begin transaction
6515
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6516
+ - signin
6517
+ ', "organisations" = '--- []
6518
+ ' WHERE "users"."id" = 11
6519
+  (9.0ms) commit transaction
6520
+ Redirected to http://www.example-client.com/restricted
6521
+ Completed 302 Found in 32.5ms (ActiveRecord: 21.7ms)
6522
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:00 +0000
6523
+ Processing by ExampleController#restricted as HTML
6524
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6525
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6526
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-02 13:09:00 +0000
6527
+ Processing by ExampleController#restricted as HTML
6528
+ Authenticating with gds_sso strategy
6529
+ Completed in 0.2ms
6530
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-02 13:09:00 +0000
6531
+ Started GET "/auth/gds/callback?code=42e2cfed4ab7e8da0a33599bfd4cdcf757a96db59dd6ade5b15e50f05de4e4c7&state=34242a3bc5f857bcc3bb3628da94e405293e67b01fa3bd8c" for 127.0.0.1 at 2013-11-02 13:09:00 +0000
6532
+ Processing by AuthenticationsController#callback as HTML
6533
+ Parameters: {"code"=>"42e2cfed4ab7e8da0a33599bfd4cdcf757a96db59dd6ade5b15e50f05de4e4c7", "state"=>"34242a3bc5f857bcc3bb3628da94e405293e67b01fa3bd8c"}
6534
+ Authenticating with gds_sso strategy
6535
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6536
+  (0.1ms) begin transaction
6537
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6538
+ - signin
6539
+ ', "organisations" = '--- []
6540
+ ' WHERE "users"."id" = 11
6541
+  (8.9ms) commit transaction
6542
+  (0.0ms) begin transaction
6543
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6544
+ - signin
6545
+ ', "organisations" = '--- []
6546
+ ' WHERE "users"."id" = 11
6547
+  (9.2ms) commit transaction
6548
+ Redirected to http://www.example-client.com/restricted
6549
+ Completed 302 Found in 28.5ms (ActiveRecord: 18.6ms)
6550
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-02 13:09:00 +0000
6551
+ Processing by ExampleController#restricted as HTML
6552
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6553
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
6554
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
6555
+ Processing by ExampleController#restricted as HTML
6556
+ Authenticating with gds_sso strategy
6557
+ Completed in 0.2ms
6558
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
6559
+ Started GET "/auth/gds/callback?code=7ef5aca29251a16e126031031bcca28cbbeda5d8d0a706cc838aa3969437c26c&state=cad5120c1e3a7966ef53334f646da574bbfb57123a3bc51d" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
6560
+ Processing by AuthenticationsController#callback as HTML
6561
+ Parameters: {"code"=>"7ef5aca29251a16e126031031bcca28cbbeda5d8d0a706cc838aa3969437c26c", "state"=>"cad5120c1e3a7966ef53334f646da574bbfb57123a3bc51d"}
6562
+ Authenticating with gds_sso strategy
6563
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6564
+  (0.2ms) begin transaction
6565
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6566
+ - signin
6567
+ ', "organisations" = '--- []
6568
+ ' WHERE "users"."id" = 11
6569
+  (17.4ms) commit transaction
6570
+  (0.0ms) begin transaction
6571
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6572
+ - signin
6573
+ ', "organisations" = '--- []
6574
+ ' WHERE "users"."id" = 11
6575
+  (43.2ms) commit transaction
6576
+ Redirected to http://www.example-client.com/restricted
6577
+ Completed 302 Found in 71.6ms (ActiveRecord: 61.4ms)
6578
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
6579
+ Processing by ExampleController#restricted as HTML
6580
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6581
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6582
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-02 12:59:01 +0000
6583
+ Processing by ExampleController#restricted as HTML
6584
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6585
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
6586
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
6587
+ Processing by ExampleController#restricted as JSON
6588
+ Authenticating with gds_bearer_token strategy
6589
+ Completed in 7.3ms
6590
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
6591
+ Processing by ExampleController#restricted as JSON
6592
+ Authenticating with gds_bearer_token strategy
6593
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6594
+  (0.1ms) begin transaction
6595
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6596
+ - signin
6597
+ ', "organisations" = '--- []
6598
+ ' WHERE "users"."id" = 11
6599
+  (13.2ms) commit transaction
6600
+  (0.0ms) begin transaction
6601
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6602
+ - signin
6603
+ ', "organisations" = '--- []
6604
+ ' WHERE "users"."id" = 11
6605
+  (10.7ms) commit transaction
6606
+ Completed 200 OK in 65.7ms (Views: 0.2ms | ActiveRecord: 24.5ms)
6607
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-01 17:04:01 +0000
6608
+ Processing by ExampleController#this_requires_signin_permission as JSON
6609
+ Authenticating with gds_bearer_token strategy
6610
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6611
+  (0.1ms) begin transaction
6612
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6613
+ - signin
6614
+ ', "organisations" = '--- []
6615
+ ' WHERE "users"."id" = 11
6616
+  (28.3ms) commit transaction
6617
+  (0.1ms) begin transaction
6618
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6619
+ - signin
6620
+ ', "organisations" = '--- []
6621
+ ' WHERE "users"."id" = 11
6622
+  (12.9ms) commit transaction
6623
+ Completed 200 OK in 86.5ms (Views: 0.3ms | ActiveRecord: 41.8ms)
6624
+ Connecting to database specified by database.yml
6625
+  (0.9ms) select sqlite_version(*)
6626
+  (27.9ms) DROP TABLE "users"
6627
+  (25.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, "organisations" text) 
6628
+  (0.1ms) begin transaction
6629
+ SQL (2.7ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33803"]]
6630
+  (55.1ms) commit transaction
6631
+  (0.1ms) begin transaction
6632
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37045"]]
6633
+  (10.9ms) commit transaction
6634
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
6635
+ Processing by Api::UserController#update as HTML
6636
+ Parameters: {"uid"=>"a1s2d33803"}
6637
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.0ms)
6638
+ Completed 403 Forbidden in 11.9ms (Views: 11.0ms | ActiveRecord: 0.0ms)
6639
+  (0.1ms) begin transaction
6640
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33573"]]
6641
+  (19.6ms) commit transaction
6642
+  (0.1ms) begin transaction
6643
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32330"]]
6644
+  (18.6ms) commit transaction
6645
+ Processing by Api::UserController#update as HTML
6646
+ Parameters: {"uid"=>"a1s2d33573"}
6647
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33573' LIMIT 1
6648
+  (0.1ms) begin transaction
6649
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
6650
+ - signin
6651
+ - new permission
6652
+ ', "organisations" = '---
6653
+ - justice-league
6654
+ ' WHERE "users"."id" = 3
6655
+  (28.3ms) commit transaction
6656
+ Completed 200 OK in 81.1ms (ActiveRecord: 28.9ms)
6657
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
6658
+  (0.1ms) begin transaction
6659
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32740"]]
6660
+  (41.3ms) commit transaction
6661
+  (0.1ms) begin transaction
6662
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36164"]]
6663
+  (4.0ms) commit transaction
6664
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
6665
+ Processing by Api::UserController#reauth as HTML
6666
+ Parameters: {"uid"=>"a1s2d32740"}
6667
+ Completed 403 Forbidden in 1.9ms (Views: 1.1ms | ActiveRecord: 0.0ms)
6668
+  (0.1ms) begin transaction
6669
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33633"]]
6670
+  (7.0ms) commit transaction
6671
+  (0.1ms) begin transaction
6672
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38848"]]
6673
+  (10.7ms) commit transaction
6674
+ Processing by Api::UserController#reauth as HTML
6675
+ Parameters: {"uid"=>"nonexistent-user"}
6676
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
6677
+ Completed 200 OK in 41.5ms (ActiveRecord: 0.3ms)
6678
+  (0.1ms) begin transaction
6679
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisations", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3284"]]
6680
+  (13.2ms) commit transaction
6681
+  (0.1ms) begin transaction
6682
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisations", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34514"]]
6683
+  (13.2ms) commit transaction
6684
+ Processing by Api::UserController#reauth as HTML
6685
+ Parameters: {"uid"=>"a1s2d3284"}
6686
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3284' LIMIT 1
6687
+  (0.1ms) begin transaction
6688
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
6689
+ - signin
6690
+ ', "organisations" = '--- []
6691
+ ' WHERE "users"."id" = 9
6692
+  (21.2ms) commit transaction
6693
+ Completed 200 OK in 38.6ms (ActiveRecord: 22.0ms)
6694
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
6695
+ Started GET "/" for 127.0.0.1 at 2013-11-04 13:35:36 +0000
6696
+ Processing by ExampleController#index as HTML
6697
+ Completed 200 OK in 2.2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
6698
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:36 +0000
6699
+ Processing by ExampleController#restricted as HTML
6700
+ Authenticating with gds_sso strategy
6701
+ Completed in 3.0ms
6702
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:36 +0000
6703
+ Started GET "/auth/gds/callback?code=c924c344f013ac3797688378590a04ba1ae9e2535aa518175936391a25c4ac96&state=bf5e8ac85b6f4e19a6220542feed27e0c0f6feaf9ff2d540" for 127.0.0.1 at 2013-11-04 13:35:37 +0000
6704
+ Processing by AuthenticationsController#callback as HTML
6705
+ Parameters: {"code"=>"c924c344f013ac3797688378590a04ba1ae9e2535aa518175936391a25c4ac96", "state"=>"bf5e8ac85b6f4e19a6220542feed27e0c0f6feaf9ff2d540"}
6706
+ Authenticating with gds_sso strategy
6707
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6708
+  (0.1ms) begin transaction
6709
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisations", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisations", "--- \n...\n"], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
6710
+  (11.9ms) commit transaction
6711
+  (0.0ms) begin transaction
6712
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
6713
+ - signin
6714
+ ', "organisations" = '--- []
6715
+ ' WHERE "users"."id" = 11
6716
+  (9.3ms) commit transaction
6717
+ Redirected to http://www.example-client.com/restricted
6718
+ Completed 302 Found in 32.0ms (ActiveRecord: 22.0ms)
6719
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6720
+ Processing by ExampleController#restricted as HTML
6721
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6722
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
6723
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6724
+ Processing by ExampleController#restricted as HTML
6725
+ Authenticating with gds_sso strategy
6726
+ Completed in 0.4ms
6727
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6728
+ Started GET "/auth/gds/callback?code=5149176e9f78cec19aa81c9ac198ce84cee8d96cfd4998df9b55408636975691&state=eff59d764e0b66133a525e95067b7b1913d40dcadb9c59c6" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6729
+ Processing by AuthenticationsController#callback as HTML
6730
+ Parameters: {"code"=>"5149176e9f78cec19aa81c9ac198ce84cee8d96cfd4998df9b55408636975691", "state"=>"eff59d764e0b66133a525e95067b7b1913d40dcadb9c59c6"}
6731
+ Authenticating with gds_sso strategy
6732
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6733
+  (0.1ms) begin transaction
6734
+  (0.2ms) UPDATE "users" SET "organisations" = '---
6735
+ ...
6736
+ ', "permissions" = '---
6737
+ - signin
6738
+ ' WHERE "users"."id" = 11
6739
+  (5.3ms) commit transaction
6740
+  (0.0ms) begin transaction
6741
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6742
+ - signin
6743
+ ', "organisations" = '--- []
6744
+ ' WHERE "users"."id" = 11
6745
+  (3.4ms) commit transaction
6746
+ Redirected to http://www.example-client.com/restricted
6747
+ Completed 302 Found in 23.6ms (ActiveRecord: 9.4ms)
6748
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6749
+ Processing by ExampleController#restricted as HTML
6750
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6751
+ Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.2ms)
6752
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6753
+ Processing by ExampleController#restricted as HTML
6754
+ Authenticating with gds_sso strategy
6755
+ Completed in 0.2ms
6756
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6757
+ Started GET "/auth/gds/callback?code=f5cbae037a6fcb5df817ba1efd0149b6b4bb8dcbfa385be7392b63fa1468e5e2&state=28c0e8113f6630b03ba8129a04d9cb967a135143533537d6" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6758
+ Processing by AuthenticationsController#callback as HTML
6759
+ Parameters: {"code"=>"f5cbae037a6fcb5df817ba1efd0149b6b4bb8dcbfa385be7392b63fa1468e5e2", "state"=>"28c0e8113f6630b03ba8129a04d9cb967a135143533537d6"}
6760
+ Authenticating with gds_sso strategy
6761
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6762
+  (0.1ms) begin transaction
6763
+  (0.2ms) UPDATE "users" SET "organisations" = '---
6764
+ ...
6765
+ ', "permissions" = '---
6766
+ - signin
6767
+ ' WHERE "users"."id" = 11
6768
+  (10.5ms) commit transaction
6769
+  (0.0ms) begin transaction
6770
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6771
+ - signin
6772
+ ', "organisations" = '--- []
6773
+ ' WHERE "users"."id" = 11
6774
+  (8.6ms) commit transaction
6775
+ Redirected to http://www.example-client.com/restricted
6776
+ Completed 302 Found in 32.3ms (ActiveRecord: 19.7ms)
6777
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:38 +0000
6778
+ Processing by ExampleController#restricted as HTML
6779
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6780
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
6781
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6782
+ Processing by ExampleController#this_requires_signin_permission as HTML
6783
+ Authenticating with gds_sso strategy
6784
+ Completed in 0.9ms
6785
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6786
+ Started GET "/auth/gds/callback?code=db845a35036e072dc94380573da97d77ccfc53fcdee56ec85522aafc858fa697&state=5ad21eef2d1fdf156d367783f02edfde0e539cb1b1fd8856" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6787
+ Processing by AuthenticationsController#callback as HTML
6788
+ Parameters: {"code"=>"db845a35036e072dc94380573da97d77ccfc53fcdee56ec85522aafc858fa697", "state"=>"5ad21eef2d1fdf156d367783f02edfde0e539cb1b1fd8856"}
6789
+ Authenticating with gds_sso strategy
6790
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6791
+  (0.1ms) begin transaction
6792
+  (0.4ms) UPDATE "users" SET "organisations" = '---
6793
+ ...
6794
+ ', "permissions" = '---
6795
+ - signin
6796
+ ' WHERE "users"."id" = 11
6797
+  (15.5ms) commit transaction
6798
+  (0.0ms) begin transaction
6799
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6800
+ - signin
6801
+ ', "organisations" = '--- []
6802
+ ' WHERE "users"."id" = 11
6803
+  (10.3ms) commit transaction
6804
+ Redirected to http://www.example-client.com/this_requires_signin_permission
6805
+ Completed 302 Found in 82.1ms (ActiveRecord: 26.8ms)
6806
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6807
+ Processing by ExampleController#this_requires_signin_permission as HTML
6808
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6809
+ Completed 200 OK in 3.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
6810
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6811
+ Processing by ExampleController#this_requires_signin_permission as HTML
6812
+ Authenticating with gds_sso strategy
6813
+ Completed in 0.2ms
6814
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6815
+ Started GET "/auth/gds/callback?code=46977a946d0f03f12a04708b5be78f8466e950fb5fbb165746b78419eb3bccd1&state=5cf8b2dacc6ad26554852baf90d6c58bf2bf98f06eba17e3" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6816
+ Processing by AuthenticationsController#callback as HTML
6817
+ Parameters: {"code"=>"46977a946d0f03f12a04708b5be78f8466e950fb5fbb165746b78419eb3bccd1", "state"=>"5cf8b2dacc6ad26554852baf90d6c58bf2bf98f06eba17e3"}
6818
+ Authenticating with gds_sso strategy
6819
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6820
+  (0.1ms) begin transaction
6821
+  (0.3ms) UPDATE "users" SET "organisations" = '---
6822
+ ...
6823
+ ', "permissions" = '---
6824
+ - signin
6825
+ ' WHERE "users"."id" = 11
6826
+  (12.1ms) commit transaction
6827
+  (0.0ms) begin transaction
6828
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6829
+ - signin
6830
+ ', "organisations" = '--- []
6831
+ ' WHERE "users"."id" = 11
6832
+  (11.0ms) commit transaction
6833
+ Redirected to http://www.example-client.com/this_requires_signin_permission
6834
+ Completed 302 Found in 38.8ms (ActiveRecord: 23.9ms)
6835
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6836
+ Processing by ExampleController#this_requires_signin_permission as HTML
6837
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6838
+ Completed 200 OK in 3.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6839
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6840
+ Processing by ExampleController#restricted as HTML
6841
+ Authenticating with gds_sso strategy
6842
+ Completed in 0.3ms
6843
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:39 +0000
6844
+ Started GET "/auth/gds/callback?code=5304ce7d9ae885a8717df3df14a9fcde3edd44aa45a86fcf7d1834631b66ec0c&state=b850762192cd08f0e41161d3d74af73b1467fb89e82b3890" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6845
+ Processing by AuthenticationsController#callback as HTML
6846
+ Parameters: {"code"=>"5304ce7d9ae885a8717df3df14a9fcde3edd44aa45a86fcf7d1834631b66ec0c", "state"=>"b850762192cd08f0e41161d3d74af73b1467fb89e82b3890"}
6847
+ Authenticating with gds_sso strategy
6848
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6849
+  (0.1ms) begin transaction
6850
+  (0.2ms) UPDATE "users" SET "organisations" = '---
6851
+ ...
6852
+ ', "permissions" = '---
6853
+ - signin
6854
+ ' WHERE "users"."id" = 11
6855
+  (4.1ms) commit transaction
6856
+  (0.0ms) begin transaction
6857
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6858
+ - signin
6859
+ ', "organisations" = '--- []
6860
+ ' WHERE "users"."id" = 11
6861
+  (2.7ms) commit transaction
6862
+ Redirected to http://www.example-client.com/restricted
6863
+ Completed 302 Found in 21.5ms (ActiveRecord: 7.5ms)
6864
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6865
+ Processing by ExampleController#restricted as HTML
6866
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6867
+ Completed 200 OK in 1.4ms (Views: 0.5ms | ActiveRecord: 0.2ms)
6868
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6869
+  (0.0ms) begin transaction
6870
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
6871
+ - signin
6872
+ ', "organisations" = '--- []
6873
+ ' WHERE "users"."id" = 11
6874
+  (3.5ms) commit transaction
6875
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6876
+ Processing by ExampleController#restricted as HTML
6877
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6878
+ Filter chain halted as :authenticate_user! rendered or redirected
6879
+ Completed 403 Forbidden in 3.5ms (Views: 2.5ms | ActiveRecord: 0.1ms)
6880
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6881
+ Processing by AuthenticationsController#sign_out as HTML
6882
+ Redirected to http://localhost:4567/users/sign_out
6883
+ Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
6884
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6885
+ Processing by ExampleController#restricted as HTML
6886
+ Authenticating with gds_sso strategy
6887
+ Completed in 0.2ms
6888
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6889
+ Started GET "/auth/gds/callback?code=5100a93cc32eab9e5e894b0e3d13b3f1bcb9c7b44152ae5de207f63bd6e31c01&state=f7adfa7f325a9164b7e6967889c9b8b1ccf465d266980501" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6890
+ Processing by AuthenticationsController#callback as HTML
6891
+ Parameters: {"code"=>"5100a93cc32eab9e5e894b0e3d13b3f1bcb9c7b44152ae5de207f63bd6e31c01", "state"=>"f7adfa7f325a9164b7e6967889c9b8b1ccf465d266980501"}
6892
+ Authenticating with gds_sso strategy
6893
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6894
+  (0.1ms) begin transaction
6895
+  (0.2ms) UPDATE "users" SET "organisations" = '---
6896
+ ...
6897
+ ', "permissions" = '---
6898
+ - signin
6899
+ ' WHERE "users"."id" = 11
6900
+  (3.8ms) commit transaction
6901
+  (0.0ms) begin transaction
6902
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
6903
+ - signin
6904
+ ', "organisations" = '--- []
6905
+ ' WHERE "users"."id" = 11
6906
+  (2.7ms) commit transaction
6907
+ Redirected to http://www.example-client.com/restricted
6908
+ Completed 302 Found in 19.6ms (ActiveRecord: 7.2ms)
6909
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6910
+ Processing by ExampleController#restricted as HTML
6911
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6912
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6913
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6914
+ Processing by ExampleController#restricted as HTML
6915
+ Authenticating with gds_sso strategy
6916
+ Completed in 0.3ms
6917
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:40 +0000
6918
+ Started GET "/auth/gds/callback?code=ad65be581d1ab8a638a5057bd5f7a70cbc31e7205f9091a35890c32474eb2ff7&state=ccd2d6677c3bcd6f57a37131b6ef0383d6a2d3ef1ab3bfef" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
6919
+ Processing by AuthenticationsController#callback as HTML
6920
+ Parameters: {"code"=>"ad65be581d1ab8a638a5057bd5f7a70cbc31e7205f9091a35890c32474eb2ff7", "state"=>"ccd2d6677c3bcd6f57a37131b6ef0383d6a2d3ef1ab3bfef"}
6921
+ Authenticating with gds_sso strategy
6922
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6923
+  (0.1ms) begin transaction
6924
+  (0.2ms) UPDATE "users" SET "organisations" = '---
6925
+ ...
6926
+ ', "permissions" = '---
6927
+ - signin
6928
+ ' WHERE "users"."id" = 11
6929
+  (12.1ms) commit transaction
6930
+  (0.1ms) begin transaction
6931
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6932
+ - signin
6933
+ ', "organisations" = '--- []
6934
+ ' WHERE "users"."id" = 11
6935
+  (21.4ms) commit transaction
6936
+ Redirected to http://www.example-client.com/restricted
6937
+ Completed 302 Found in 49.0ms (ActiveRecord: 34.3ms)
6938
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
6939
+ Processing by ExampleController#restricted as HTML
6940
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6941
+ Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
6942
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 09:40:41 +0000
6943
+ Processing by ExampleController#restricted as HTML
6944
+ Authenticating with gds_sso strategy
6945
+ Completed in 0.3ms
6946
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 09:40:41 +0000
6947
+ Started GET "/auth/gds/callback?code=905ab228cd06f1d95893d1181cc714485e08ad20487804643a9d0d2b76c0982f&state=df4a40e9724487352946017ef3f2d81ec8f97ef3afa0cf8e" for 127.0.0.1 at 2013-11-05 09:40:41 +0000
6948
+ Processing by AuthenticationsController#callback as HTML
6949
+ Parameters: {"code"=>"905ab228cd06f1d95893d1181cc714485e08ad20487804643a9d0d2b76c0982f", "state"=>"df4a40e9724487352946017ef3f2d81ec8f97ef3afa0cf8e"}
6950
+ Authenticating with gds_sso strategy
6951
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6952
+  (0.1ms) begin transaction
6953
+  (0.2ms) UPDATE "users" SET "organisations" = '---
6954
+ ...
6955
+ ', "permissions" = '---
6956
+ - signin
6957
+ ' WHERE "users"."id" = 11
6958
+  (5.6ms) commit transaction
6959
+  (0.0ms) begin transaction
6960
+  (0.2ms) UPDATE "users" SET "permissions" = '---
6961
+ - signin
6962
+ ', "organisations" = '--- []
6963
+ ' WHERE "users"."id" = 11
6964
+  (3.6ms) commit transaction
6965
+ Redirected to http://www.example-client.com/restricted
6966
+ Completed 302 Found in 22.1ms (ActiveRecord: 9.8ms)
6967
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 09:40:41 +0000
6968
+ Processing by ExampleController#restricted as HTML
6969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6970
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
6971
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
6972
+ Processing by ExampleController#restricted as HTML
6973
+ Authenticating with gds_sso strategy
6974
+ Completed in 0.3ms
6975
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
6976
+ Started GET "/auth/gds/callback?code=2ae6829fccff7ea7f3bcb1d30ac4a3184e863b28f841574197ce2c6be87ef384&state=aae51d3ec744ed1b721da7e44270017e30deb4470dba4ec5" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
6977
+ Processing by AuthenticationsController#callback as HTML
6978
+ Parameters: {"code"=>"2ae6829fccff7ea7f3bcb1d30ac4a3184e863b28f841574197ce2c6be87ef384", "state"=>"aae51d3ec744ed1b721da7e44270017e30deb4470dba4ec5"}
6979
+ Authenticating with gds_sso strategy
6980
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6981
+  (0.1ms) begin transaction
6982
+  (0.5ms) UPDATE "users" SET "organisations" = '---
6983
+ ...
6984
+ ', "permissions" = '---
6985
+ - signin
6986
+ ' WHERE "users"."id" = 11
6987
+  (14.0ms) commit transaction
6988
+  (0.0ms) begin transaction
6989
+  (0.1ms) UPDATE "users" SET "permissions" = '---
6990
+ - signin
6991
+ ', "organisations" = '--- []
6992
+ ' WHERE "users"."id" = 11
6993
+  (11.5ms) commit transaction
6994
+ Redirected to http://www.example-client.com/restricted
6995
+ Completed 302 Found in 104.1ms (ActiveRecord: 26.6ms)
6996
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
6997
+ Processing by ExampleController#restricted as HTML
6998
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
6999
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.1ms)
7000
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 09:30:41 +0000
7001
+ Processing by ExampleController#restricted as HTML
7002
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7003
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
7004
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:41 +0000
7005
+ Processing by ExampleController#restricted as JSON
7006
+ Authenticating with gds_bearer_token strategy
7007
+ Completed in 9.5ms
7008
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 13:35:42 +0000
7009
+ Processing by ExampleController#restricted as JSON
7010
+ Authenticating with gds_bearer_token strategy
7011
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7012
+  (0.1ms) begin transaction
7013
+  (0.2ms) UPDATE "users" SET "organisations" = '---
7014
+ ...
7015
+ ', "permissions" = '---
7016
+ - signin
7017
+ ' WHERE "users"."id" = 11
7018
+  (4.3ms) commit transaction
7019
+  (0.0ms) begin transaction
7020
+  (0.2ms) UPDATE "users" SET "permissions" = '---
7021
+ - signin
7022
+ ', "organisations" = '--- []
7023
+ ' WHERE "users"."id" = 11
7024
+  (3.4ms) commit transaction
7025
+ Completed 200 OK in 93.0ms (Views: 0.3ms | ActiveRecord: 8.5ms)
7026
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 13:35:42 +0000
7027
+ Processing by ExampleController#this_requires_signin_permission as JSON
7028
+ Authenticating with gds_bearer_token strategy
7029
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7030
+  (0.1ms) begin transaction
7031
+  (0.2ms) UPDATE "users" SET "organisations" = '---
7032
+ ...
7033
+ ', "permissions" = '---
7034
+ - signin
7035
+ ' WHERE "users"."id" = 11
7036
+  (4.2ms) commit transaction
7037
+  (0.0ms) begin transaction
7038
+  (0.2ms) UPDATE "users" SET "permissions" = '---
7039
+ - signin
7040
+ ', "organisations" = '--- []
7041
+ ' WHERE "users"."id" = 11
7042
+  (3.0ms) commit transaction
7043
+ Completed 200 OK in 64.6ms (Views: 0.3ms | ActiveRecord: 8.1ms)
7044
+ Connecting to database specified by database.yml
7045
+  (9.4ms) select sqlite_version(*)
7046
+  (18.4ms) DROP TABLE "users"
7047
+  (22.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, "organisation" varchar(255)) 
7048
+  (0.1ms) begin transaction
7049
+ SQL (2.0ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33738"]]
7050
+  (15.6ms) commit transaction
7051
+  (0.1ms) begin transaction
7052
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38282"]]
7053
+  (36.1ms) commit transaction
7054
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
7055
+ Processing by Api::UserController#update as HTML
7056
+ Parameters: {"uid"=>"a1s2d33738"}
7057
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
7058
+ Completed 403 Forbidden in 6.5ms (Views: 5.8ms | ActiveRecord: 0.0ms)
7059
+  (0.1ms) begin transaction
7060
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37717"]]
7061
+  (30.0ms) commit transaction
7062
+  (0.1ms) begin transaction
7063
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35830"]]
7064
+  (14.7ms) commit transaction
7065
+ Processing by Api::UserController#update as HTML
7066
+ Parameters: {"uid"=>"a1s2d37717"}
7067
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37717' LIMIT 1
7068
+  (0.1ms) begin transaction
7069
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
7070
+ - signin
7071
+ - new permission
7072
+ ', "organisation" = 'justice-league' WHERE "users"."id" = 3
7073
+  (49.3ms) commit transaction
7074
+ Completed 200 OK in 68.0ms (ActiveRecord: 49.7ms)
7075
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
7076
+  (0.1ms) begin transaction
7077
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37217"]]
7078
+  (17.6ms) commit transaction
7079
+  (0.1ms) begin transaction
7080
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38341"]]
7081
+  (13.0ms) commit transaction
7082
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
7083
+ Processing by Api::UserController#reauth as HTML
7084
+ Parameters: {"uid"=>"a1s2d37217"}
7085
+ Completed 403 Forbidden in 47.2ms (Views: 46.5ms | ActiveRecord: 0.0ms)
7086
+  (0.1ms) begin transaction
7087
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32075"]]
7088
+  (12.9ms) commit transaction
7089
+  (0.0ms) begin transaction
7090
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37620"]]
7091
+  (13.2ms) commit transaction
7092
+ Processing by Api::UserController#reauth as HTML
7093
+ Parameters: {"uid"=>"nonexistent-user"}
7094
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
7095
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
7096
+  (0.1ms) begin transaction
7097
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32086"]]
7098
+  (19.1ms) commit transaction
7099
+  (0.1ms) begin transaction
7100
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37436"]]
7101
+  (9.8ms) commit transaction
7102
+ Processing by Api::UserController#reauth as HTML
7103
+ Parameters: {"uid"=>"a1s2d32086"}
7104
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32086' LIMIT 1
7105
+  (0.0ms) begin transaction
7106
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
7107
+ - signin
7108
+ ' WHERE "users"."id" = 9
7109
+  (11.0ms) commit transaction
7110
+ Completed 200 OK in 38.7ms (ActiveRecord: 11.5ms)
7111
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
7112
+ Started GET "/" for 127.0.0.1 at 2013-11-04 14:23:21 +0000
7113
+ Processing by ExampleController#index as HTML
7114
+ Completed 200 OK in 1.7ms (Views: 1.3ms | ActiveRecord: 0.0ms)
7115
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:21 +0000
7116
+ Processing by ExampleController#restricted as HTML
7117
+ Authenticating with gds_sso strategy
7118
+ Completed in 2.5ms
7119
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:21 +0000
7120
+ Started GET "/auth/gds/callback?code=da384a83b3a6568061805b1947fb87be96e8d711b420bc3b3c23b37dacccc0e8&state=8b6cacbd94812266a8bb4f3bb07fdeb88ea5716f6b41632f" for 127.0.0.1 at 2013-11-04 14:23:22 +0000
7121
+ Processing by AuthenticationsController#callback as HTML
7122
+ Parameters: {"code"=>"da384a83b3a6568061805b1947fb87be96e8d711b420bc3b3c23b37dacccc0e8", "state"=>"8b6cacbd94812266a8bb4f3bb07fdeb88ea5716f6b41632f"}
7123
+ Authenticating with gds_sso strategy
7124
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7125
+  (0.1ms) begin transaction
7126
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
7127
+  (14.0ms) commit transaction
7128
+  (0.0ms) begin transaction
7129
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
7130
+ - signin
7131
+ ' WHERE "users"."id" = 11
7132
+  (32.6ms) commit transaction
7133
+ Redirected to http://www.example-client.com/restricted
7134
+ Completed 302 Found in 53.4ms (ActiveRecord: 47.3ms)
7135
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
7136
+ Processing by ExampleController#restricted as HTML
7137
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7138
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7139
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
7140
+ Processing by ExampleController#restricted as HTML
7141
+ Authenticating with gds_sso strategy
7142
+ Completed in 0.3ms
7143
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
7144
+ Started GET "/auth/gds/callback?code=247818afb618c42c890acf505dbc83052d563755822ae81615b282b13ed33f4b&state=c31cc2876a5a4a9d57be33616d0e0493868a5f3d62913c5c" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
7145
+ Processing by AuthenticationsController#callback as HTML
7146
+ Parameters: {"code"=>"247818afb618c42c890acf505dbc83052d563755822ae81615b282b13ed33f4b", "state"=>"c31cc2876a5a4a9d57be33616d0e0493868a5f3d62913c5c"}
7147
+ Authenticating with gds_sso strategy
7148
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7149
+  (0.1ms) begin transaction
7150
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7151
+ - signin
7152
+ ' WHERE "users"."id" = 11
7153
+  (20.3ms) commit transaction
7154
+  (0.0ms) begin transaction
7155
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7156
+ - signin
7157
+ ' WHERE "users"."id" = 11
7158
+  (28.2ms) commit transaction
7159
+ Redirected to http://www.example-client.com/restricted
7160
+ Completed 302 Found in 56.7ms (ActiveRecord: 49.0ms)
7161
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
7162
+ Processing by ExampleController#restricted as HTML
7163
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7164
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
7165
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
7166
+ Processing by ExampleController#restricted as HTML
7167
+ Authenticating with gds_sso strategy
7168
+ Completed in 0.2ms
7169
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:23 +0000
7170
+ Started GET "/auth/gds/callback?code=daca9d6df42699141cc6665c2458b028c34abc52a7e2dcae192d0d7cc3158e70&state=88ba47da9f4b0e4465d99f06725693a78355167162261edd" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7171
+ Processing by AuthenticationsController#callback as HTML
7172
+ Parameters: {"code"=>"daca9d6df42699141cc6665c2458b028c34abc52a7e2dcae192d0d7cc3158e70", "state"=>"88ba47da9f4b0e4465d99f06725693a78355167162261edd"}
7173
+ Authenticating with gds_sso strategy
7174
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7175
+  (0.0ms) begin transaction
7176
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7177
+ - signin
7178
+ ' WHERE "users"."id" = 11
7179
+  (9.5ms) commit transaction
7180
+  (0.0ms) begin transaction
7181
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7182
+ - signin
7183
+ ' WHERE "users"."id" = 11
7184
+  (4.1ms) commit transaction
7185
+ Redirected to http://www.example-client.com/restricted
7186
+ Completed 302 Found in 21.0ms (ActiveRecord: 14.1ms)
7187
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7188
+ Processing by ExampleController#restricted as HTML
7189
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7190
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7191
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7192
+ Processing by ExampleController#this_requires_signin_permission as HTML
7193
+ Authenticating with gds_sso strategy
7194
+ Completed in 0.6ms
7195
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7196
+ Started GET "/auth/gds/callback?code=864332b280784a1ef4ed023971a5c8a1dd779eec99d413c5a9aaf761a84be0d9&state=7ea9cf955c5b3dfc549eb228c874a65d58d8d6d737d3ad7f" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7197
+ Processing by AuthenticationsController#callback as HTML
7198
+ Parameters: {"code"=>"864332b280784a1ef4ed023971a5c8a1dd779eec99d413c5a9aaf761a84be0d9", "state"=>"7ea9cf955c5b3dfc549eb228c874a65d58d8d6d737d3ad7f"}
7199
+ Authenticating with gds_sso strategy
7200
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7201
+  (0.1ms) begin transaction
7202
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7203
+ - signin
7204
+ ' WHERE "users"."id" = 11
7205
+  (6.0ms) commit transaction
7206
+  (0.0ms) begin transaction
7207
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7208
+ - signin
7209
+ ' WHERE "users"."id" = 11
7210
+  (4.7ms) commit transaction
7211
+ Redirected to http://www.example-client.com/this_requires_signin_permission
7212
+ Completed 302 Found in 18.7ms (ActiveRecord: 11.3ms)
7213
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7214
+ Processing by ExampleController#this_requires_signin_permission as HTML
7215
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7216
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7217
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7218
+ Processing by ExampleController#this_requires_signin_permission as HTML
7219
+ Authenticating with gds_sso strategy
7220
+ Completed in 0.1ms
7221
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7222
+ Started GET "/auth/gds/callback?code=9951b87914ada58bdd252f5f14a0efbdae3827be977054f5110f4a12445fa3c0&state=6f069f6bbc4e38517ae69ae5bfbe1c4ade501f221ff552b0" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7223
+ Processing by AuthenticationsController#callback as HTML
7224
+ Parameters: {"code"=>"9951b87914ada58bdd252f5f14a0efbdae3827be977054f5110f4a12445fa3c0", "state"=>"6f069f6bbc4e38517ae69ae5bfbe1c4ade501f221ff552b0"}
7225
+ Authenticating with gds_sso strategy
7226
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7227
+  (0.1ms) begin transaction
7228
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7229
+ - signin
7230
+ ' WHERE "users"."id" = 11
7231
+  (5.2ms) commit transaction
7232
+  (0.0ms) begin transaction
7233
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7234
+ - signin
7235
+ ' WHERE "users"."id" = 11
7236
+  (3.3ms) commit transaction
7237
+ Redirected to http://www.example-client.com/this_requires_signin_permission
7238
+ Completed 302 Found in 16.1ms (ActiveRecord: 9.1ms)
7239
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7240
+ Processing by ExampleController#this_requires_signin_permission as HTML
7241
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7242
+ Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7243
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7244
+ Processing by ExampleController#restricted as HTML
7245
+ Authenticating with gds_sso strategy
7246
+ Completed in 0.4ms
7247
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:24 +0000
7248
+ Started GET "/auth/gds/callback?code=210a8e074512d55eee47fea15f4b6c612256fec897b90c1a30ef75dc965baa35&state=8fb1a5502e6fe5c4f6787f234c1d2b0eae7712ed0c0ae778" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7249
+ Processing by AuthenticationsController#callback as HTML
7250
+ Parameters: {"code"=>"210a8e074512d55eee47fea15f4b6c612256fec897b90c1a30ef75dc965baa35", "state"=>"8fb1a5502e6fe5c4f6787f234c1d2b0eae7712ed0c0ae778"}
7251
+ Authenticating with gds_sso strategy
7252
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7253
+  (0.1ms) begin transaction
7254
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7255
+ - signin
7256
+ ' WHERE "users"."id" = 11
7257
+  (28.5ms) commit transaction
7258
+  (0.0ms) begin transaction
7259
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7260
+ - signin
7261
+ ' WHERE "users"."id" = 11
7262
+  (2.9ms) commit transaction
7263
+ Redirected to http://www.example-client.com/restricted
7264
+ Completed 302 Found in 39.4ms (ActiveRecord: 31.9ms)
7265
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7266
+ Processing by ExampleController#restricted as HTML
7267
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7268
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
7269
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7270
+  (0.0ms) begin transaction
7271
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
7272
+ - signin
7273
+ ' WHERE "users"."id" = 11
7274
+  (3.4ms) commit transaction
7275
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7276
+ Processing by ExampleController#restricted as HTML
7277
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7278
+ Filter chain halted as :authenticate_user! rendered or redirected
7279
+ Completed 403 Forbidden in 2.6ms (Views: 1.8ms | ActiveRecord: 0.1ms)
7280
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7281
+ Processing by AuthenticationsController#sign_out as HTML
7282
+ Redirected to http://localhost:4567/users/sign_out
7283
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
7284
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7285
+ Processing by ExampleController#restricted as HTML
7286
+ Authenticating with gds_sso strategy
7287
+ Completed in 0.3ms
7288
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7289
+ Started GET "/auth/gds/callback?code=2761bd4479a57e1217615dfd4c28e36cde7aa992997e995c9bda84ada2e6cd6f&state=4a6dd02c3b775097004818347ab9500ff47899d4bb0488a7" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7290
+ Processing by AuthenticationsController#callback as HTML
7291
+ Parameters: {"code"=>"2761bd4479a57e1217615dfd4c28e36cde7aa992997e995c9bda84ada2e6cd6f", "state"=>"4a6dd02c3b775097004818347ab9500ff47899d4bb0488a7"}
7292
+ Authenticating with gds_sso strategy
7293
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7294
+  (0.0ms) begin transaction
7295
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7296
+ - signin
7297
+ ' WHERE "users"."id" = 11
7298
+  (10.2ms) commit transaction
7299
+  (0.0ms) begin transaction
7300
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
7301
+ - signin
7302
+ ' WHERE "users"."id" = 11
7303
+  (9.2ms) commit transaction
7304
+ Redirected to http://www.example-client.com/restricted
7305
+ Completed 302 Found in 26.8ms (ActiveRecord: 20.0ms)
7306
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7307
+ Processing by ExampleController#restricted as HTML
7308
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7309
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7310
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7311
+ Processing by ExampleController#restricted as HTML
7312
+ Authenticating with gds_sso strategy
7313
+ Completed in 0.2ms
7314
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:25 +0000
7315
+ Started GET "/auth/gds/callback?code=21b7e3cae3a2a8b24fdec3280ffc7327db7936ada9cceb3c7e5c4f4822efe121&state=96bfe5894629a149f4e37707ed7375e46ecd945783011233" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
7316
+ Processing by AuthenticationsController#callback as HTML
7317
+ Parameters: {"code"=>"21b7e3cae3a2a8b24fdec3280ffc7327db7936ada9cceb3c7e5c4f4822efe121", "state"=>"96bfe5894629a149f4e37707ed7375e46ecd945783011233"}
7318
+ Authenticating with gds_sso strategy
7319
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7320
+  (0.1ms) begin transaction
7321
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7322
+ - signin
7323
+ ' WHERE "users"."id" = 11
7324
+  (4.0ms) commit transaction
7325
+  (0.0ms) begin transaction
7326
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7327
+ - signin
7328
+ ' WHERE "users"."id" = 11
7329
+  (3.5ms) commit transaction
7330
+ Redirected to http://www.example-client.com/restricted
7331
+ Completed 302 Found in 15.5ms (ActiveRecord: 8.1ms)
7332
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
7333
+ Processing by ExampleController#restricted as HTML
7334
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7335
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7336
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:28:26 +0000
7337
+ Processing by ExampleController#restricted as HTML
7338
+ Authenticating with gds_sso strategy
7339
+ Completed in 0.2ms
7340
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 10:28:26 +0000
7341
+ Started GET "/auth/gds/callback?code=b44b70a671e88bd1373c5534014182b88e68f7934ca2c3cda825e0d2d98ba9db&state=6cfd3f8babc973e1d0a71334ab45cf033260745449163083" for 127.0.0.1 at 2013-11-05 10:28:26 +0000
7342
+ Processing by AuthenticationsController#callback as HTML
7343
+ Parameters: {"code"=>"b44b70a671e88bd1373c5534014182b88e68f7934ca2c3cda825e0d2d98ba9db", "state"=>"6cfd3f8babc973e1d0a71334ab45cf033260745449163083"}
7344
+ Authenticating with gds_sso strategy
7345
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7346
+  (0.1ms) begin transaction
7347
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7348
+ - signin
7349
+ ' WHERE "users"."id" = 11
7350
+  (4.7ms) commit transaction
7351
+  (0.0ms) begin transaction
7352
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7353
+ - signin
7354
+ ' WHERE "users"."id" = 11
7355
+  (3.5ms) commit transaction
7356
+ Redirected to http://www.example-client.com/restricted
7357
+ Completed 302 Found in 15.6ms (ActiveRecord: 8.9ms)
7358
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:28:26 +0000
7359
+ Processing by ExampleController#restricted as HTML
7360
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7361
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
7362
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
7363
+ Processing by ExampleController#restricted as HTML
7364
+ Authenticating with gds_sso strategy
7365
+ Completed in 0.2ms
7366
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
7367
+ Started GET "/auth/gds/callback?code=ab5ba2021af36a6305da1ad78d21b1b82d6d2dcfe7eb1379305c6ea87d0b1a01&state=07e9222d213b0674a99b9fcc0fb181e92617cda41884df7b" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
7368
+ Processing by AuthenticationsController#callback as HTML
7369
+ Parameters: {"code"=>"ab5ba2021af36a6305da1ad78d21b1b82d6d2dcfe7eb1379305c6ea87d0b1a01", "state"=>"07e9222d213b0674a99b9fcc0fb181e92617cda41884df7b"}
7370
+ Authenticating with gds_sso strategy
7371
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7372
+  (0.1ms) begin transaction
7373
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7374
+ - signin
7375
+ ' WHERE "users"."id" = 11
7376
+  (12.9ms) commit transaction
7377
+  (0.0ms) begin transaction
7378
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7379
+ - signin
7380
+ ' WHERE "users"."id" = 11
7381
+  (9.1ms) commit transaction
7382
+ Redirected to http://www.example-client.com/restricted
7383
+ Completed 302 Found in 30.0ms (ActiveRecord: 22.5ms)
7384
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
7385
+ Processing by ExampleController#restricted as HTML
7386
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7387
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
7388
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:18:26 +0000
7389
+ Processing by ExampleController#restricted as HTML
7390
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7391
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
7392
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
7393
+ Processing by ExampleController#restricted as JSON
7394
+ Authenticating with gds_bearer_token strategy
7395
+ Completed in 6.7ms
7396
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:23:26 +0000
7397
+ Processing by ExampleController#restricted as JSON
7398
+ Authenticating with gds_bearer_token strategy
7399
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7400
+  (0.0ms) begin transaction
7401
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7402
+ - signin
7403
+ ' WHERE "users"."id" = 11
7404
+  (5.1ms) commit transaction
7405
+  (0.0ms) begin transaction
7406
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7407
+ - signin
7408
+ ' WHERE "users"."id" = 11
7409
+  (3.4ms) commit transaction
7410
+ Completed 200 OK in 39.0ms (Views: 0.2ms | ActiveRecord: 9.0ms)
7411
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:23:27 +0000
7412
+ Processing by ExampleController#this_requires_signin_permission as JSON
7413
+ Authenticating with gds_bearer_token strategy
7414
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7415
+  (0.0ms) begin transaction
7416
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7417
+ - signin
7418
+ ' WHERE "users"."id" = 11
7419
+  (4.3ms) commit transaction
7420
+  (0.0ms) begin transaction
7421
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7422
+ - signin
7423
+ ' WHERE "users"."id" = 11
7424
+  (42.8ms) commit transaction
7425
+ Completed 200 OK in 80.4ms (Views: 0.4ms | ActiveRecord: 47.7ms)
7426
+ Connecting to database specified by database.yml
7427
+  (0.8ms) select sqlite_version(*)
7428
+  (18.3ms) DROP TABLE "users"
7429
+  (21.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, "organisation" varchar(255)) 
7430
+  (0.1ms) begin transaction
7431
+ SQL (2.0ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39346"]]
7432
+  (20.3ms) commit transaction
7433
+  (0.1ms) begin transaction
7434
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37064"]]
7435
+  (16.2ms) commit transaction
7436
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
7437
+ Processing by Api::UserController#update as HTML
7438
+ Parameters: {"uid"=>"a1s2d39346"}
7439
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
7440
+ Completed 403 Forbidden in 16.5ms (Views: 15.8ms | ActiveRecord: 0.0ms)
7441
+  (0.1ms) begin transaction
7442
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38640"]]
7443
+  (17.6ms) commit transaction
7444
+  (0.1ms) begin transaction
7445
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3740"]]
7446
+  (38.9ms) commit transaction
7447
+ Processing by Api::UserController#update as HTML
7448
+ Parameters: {"uid"=>"a1s2d38640"}
7449
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38640' LIMIT 1
7450
+  (0.0ms) begin transaction
7451
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
7452
+ - signin
7453
+ - new permission
7454
+ ', "organisation" = 'justice-league' WHERE "users"."id" = 3
7455
+  (21.4ms) commit transaction
7456
+ Completed 200 OK in 29.8ms (ActiveRecord: 21.9ms)
7457
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
7458
+  (0.1ms) begin transaction
7459
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39093"]]
7460
+  (49.8ms) commit transaction
7461
+  (0.1ms) begin transaction
7462
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34529"]]
7463
+  (16.8ms) commit transaction
7464
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
7465
+ Processing by Api::UserController#reauth as HTML
7466
+ Parameters: {"uid"=>"a1s2d39093"}
7467
+ Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)
7468
+  (0.1ms) begin transaction
7469
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34274"]]
7470
+  (19.6ms) commit transaction
7471
+  (0.1ms) begin transaction
7472
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37696"]]
7473
+  (11.2ms) commit transaction
7474
+ Processing by Api::UserController#reauth as HTML
7475
+ Parameters: {"uid"=>"nonexistent-user"}
7476
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
7477
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
7478
+  (0.1ms) begin transaction
7479
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3396"]]
7480
+  (16.4ms) commit transaction
7481
+  (0.1ms) begin transaction
7482
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32083"]]
7483
+  (42.6ms) commit transaction
7484
+ Processing by Api::UserController#reauth as HTML
7485
+ Parameters: {"uid"=>"a1s2d3396"}
7486
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3396' LIMIT 1
7487
+  (0.0ms) begin transaction
7488
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
7489
+ - signin
7490
+ ' WHERE "users"."id" = 9
7491
+  (11.8ms) commit transaction
7492
+ Completed 200 OK in 16.2ms (ActiveRecord: 12.2ms)
7493
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
7494
+ Started GET "/" for 127.0.0.1 at 2013-11-04 14:24:12 +0000
7495
+ Processing by ExampleController#index as HTML
7496
+ Completed 200 OK in 1.7ms (Views: 1.4ms | ActiveRecord: 0.0ms)
7497
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:12 +0000
7498
+ Processing by ExampleController#restricted as HTML
7499
+ Authenticating with gds_sso strategy
7500
+ Completed in 2.4ms
7501
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:13 +0000
7502
+ Started GET "/auth/gds/callback?code=219c381b0dd7dcc72d8b94f4953d71fad898e19ae9d90e5301b3c61d00257e61&state=e03254afa893379eba7af9b7067aa707d54f5c724bb3a717" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
7503
+ Processing by AuthenticationsController#callback as HTML
7504
+ Parameters: {"code"=>"219c381b0dd7dcc72d8b94f4953d71fad898e19ae9d90e5301b3c61d00257e61", "state"=>"e03254afa893379eba7af9b7067aa707d54f5c724bb3a717"}
7505
+ Authenticating with gds_sso strategy
7506
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7507
+  (0.1ms) begin transaction
7508
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
7509
+  (11.9ms) commit transaction
7510
+  (0.0ms) begin transaction
7511
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
7512
+ - signin
7513
+ ' WHERE "users"."id" = 11
7514
+  (7.2ms) commit transaction
7515
+ Redirected to http://www.example-client.com/restricted
7516
+ Completed 302 Found in 25.8ms (ActiveRecord: 19.7ms)
7517
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
7518
+ Processing by ExampleController#restricted as HTML
7519
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7520
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7521
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
7522
+ Processing by ExampleController#restricted as HTML
7523
+ Authenticating with gds_sso strategy
7524
+ Completed in 0.4ms
7525
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
7526
+ Started GET "/auth/gds/callback?code=fc2a55617dfe4c3206bbd851a6caf1fa38b6ef9cb2827be0443339deb244460d&state=87b5d514f91bf94f732b54325bcfbc28d1b84052467a8b8b" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
7527
+ Processing by AuthenticationsController#callback as HTML
7528
+ Parameters: {"code"=>"fc2a55617dfe4c3206bbd851a6caf1fa38b6ef9cb2827be0443339deb244460d", "state"=>"87b5d514f91bf94f732b54325bcfbc28d1b84052467a8b8b"}
7529
+ Authenticating with gds_sso strategy
7530
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7531
+  (0.1ms) begin transaction
7532
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7533
+ - signin
7534
+ ' WHERE "users"."id" = 11
7535
+  (6.7ms) commit transaction
7536
+  (0.0ms) begin transaction
7537
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7538
+ - signin
7539
+ ' WHERE "users"."id" = 11
7540
+  (3.9ms) commit transaction
7541
+ Redirected to http://www.example-client.com/restricted
7542
+ Completed 302 Found in 18.5ms (ActiveRecord: 11.1ms)
7543
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
7544
+ Processing by ExampleController#restricted as HTML
7545
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7546
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7547
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
7548
+ Processing by ExampleController#restricted as HTML
7549
+ Authenticating with gds_sso strategy
7550
+ Completed in 0.1ms
7551
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:14 +0000
7552
+ Started GET "/auth/gds/callback?code=d595be836241aa90bc659966e950280f6e8eee76a8846175d37f34741495e586&state=f9954eae5503c4ab937f1d633a67d8c09dfefb6f332cb9f9" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
7553
+ Processing by AuthenticationsController#callback as HTML
7554
+ Parameters: {"code"=>"d595be836241aa90bc659966e950280f6e8eee76a8846175d37f34741495e586", "state"=>"f9954eae5503c4ab937f1d633a67d8c09dfefb6f332cb9f9"}
7555
+ Authenticating with gds_sso strategy
7556
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7557
+  (0.0ms) begin transaction
7558
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7559
+ - signin
7560
+ ' WHERE "users"."id" = 11
7561
+  (12.5ms) commit transaction
7562
+  (0.0ms) begin transaction
7563
+  (0.3ms) UPDATE "users" SET "permissions" = '---
7564
+ - signin
7565
+ ' WHERE "users"."id" = 11
7566
+  (14.5ms) commit transaction
7567
+ Redirected to http://www.example-client.com/restricted
7568
+ Completed 302 Found in 54.1ms (ActiveRecord: 27.6ms)
7569
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
7570
+ Processing by ExampleController#restricted as HTML
7571
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7572
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.2ms)
7573
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
7574
+ Processing by ExampleController#this_requires_signin_permission as HTML
7575
+ Authenticating with gds_sso strategy
7576
+ Completed in 0.6ms
7577
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
7578
+ Started GET "/auth/gds/callback?code=af11401593acbe2836a7f30ed7091a19ac4c452f16cb5d5af6ba6c14d3908aa2&state=11cc137198feb6cc9164d3398a2ae1b8021ef2f202b4e8bf" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
7579
+ Processing by AuthenticationsController#callback as HTML
7580
+ Parameters: {"code"=>"af11401593acbe2836a7f30ed7091a19ac4c452f16cb5d5af6ba6c14d3908aa2", "state"=>"11cc137198feb6cc9164d3398a2ae1b8021ef2f202b4e8bf"}
7581
+ Authenticating with gds_sso strategy
7582
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7583
+  (0.1ms) begin transaction
7584
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7585
+ - signin
7586
+ ' WHERE "users"."id" = 11
7587
+  (6.4ms) commit transaction
7588
+  (0.0ms) begin transaction
7589
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7590
+ - signin
7591
+ ' WHERE "users"."id" = 11
7592
+  (4.0ms) commit transaction
7593
+ Redirected to http://www.example-client.com/this_requires_signin_permission
7594
+ Completed 302 Found in 18.2ms (ActiveRecord: 10.9ms)
7595
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
7596
+ Processing by ExampleController#this_requires_signin_permission as HTML
7597
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7598
+ Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7599
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
7600
+ Processing by ExampleController#this_requires_signin_permission as HTML
7601
+ Authenticating with gds_sso strategy
7602
+ Completed in 0.1ms
7603
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:15 +0000
7604
+ Started GET "/auth/gds/callback?code=f8992fda1490a2052aadd3c723f40012ae84b99a4cd05606421b3c02a4f347b2&state=2f4776f9fdd2dd9b81d40782e9bf450b748b84b20de9d522" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7605
+ Processing by AuthenticationsController#callback as HTML
7606
+ Parameters: {"code"=>"f8992fda1490a2052aadd3c723f40012ae84b99a4cd05606421b3c02a4f347b2", "state"=>"2f4776f9fdd2dd9b81d40782e9bf450b748b84b20de9d522"}
7607
+ Authenticating with gds_sso strategy
7608
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7609
+  (0.0ms) begin transaction
7610
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7611
+ - signin
7612
+ ' WHERE "users"."id" = 11
7613
+  (5.3ms) commit transaction
7614
+  (0.0ms) begin transaction
7615
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7616
+ - signin
7617
+ ' WHERE "users"."id" = 11
7618
+  (3.5ms) commit transaction
7619
+ Redirected to http://www.example-client.com/this_requires_signin_permission
7620
+ Completed 302 Found in 16.5ms (ActiveRecord: 9.2ms)
7621
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7622
+ Processing by ExampleController#this_requires_signin_permission as HTML
7623
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7624
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7625
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7626
+ Processing by ExampleController#restricted as HTML
7627
+ Authenticating with gds_sso strategy
7628
+ Completed in 0.2ms
7629
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7630
+ Started GET "/auth/gds/callback?code=7689fcb22b3bd01f5de29ec4d599bf80e429ce99dbe5b5456d0d14c42f9a09cd&state=6a5f8bd6163c9a71e94ce109f821ada439a2c203973568bf" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7631
+ Processing by AuthenticationsController#callback as HTML
7632
+ Parameters: {"code"=>"7689fcb22b3bd01f5de29ec4d599bf80e429ce99dbe5b5456d0d14c42f9a09cd", "state"=>"6a5f8bd6163c9a71e94ce109f821ada439a2c203973568bf"}
7633
+ Authenticating with gds_sso strategy
7634
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7635
+  (0.1ms) begin transaction
7636
+  (0.2ms) UPDATE "users" SET "permissions" = '---
7637
+ - signin
7638
+ ' WHERE "users"."id" = 11
7639
+  (5.2ms) commit transaction
7640
+  (0.0ms) begin transaction
7641
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7642
+ - signin
7643
+ ' WHERE "users"."id" = 11
7644
+  (3.8ms) commit transaction
7645
+ Redirected to http://www.example-client.com/restricted
7646
+ Completed 302 Found in 17.2ms (ActiveRecord: 9.6ms)
7647
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7648
+ Processing by ExampleController#restricted as HTML
7649
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7650
+ Completed 200 OK in 1.2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
7651
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7652
+  (0.0ms) begin transaction
7653
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
7654
+ - signin
7655
+ ' WHERE "users"."id" = 11
7656
+  (3.5ms) commit transaction
7657
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7658
+ Processing by ExampleController#restricted as HTML
7659
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7660
+ Filter chain halted as :authenticate_user! rendered or redirected
7661
+ Completed 403 Forbidden in 3.1ms (Views: 2.0ms | ActiveRecord: 0.2ms)
7662
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7663
+ Processing by AuthenticationsController#sign_out as HTML
7664
+ Redirected to http://localhost:4567/users/sign_out
7665
+ Completed 302 Found in 0.5ms (ActiveRecord: 0.0ms)
7666
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7667
+ Processing by ExampleController#restricted as HTML
7668
+ Authenticating with gds_sso strategy
7669
+ Completed in 0.2ms
7670
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7671
+ Started GET "/auth/gds/callback?code=8711c02afc7af6dc96b9571a0dc66013be7218a0d04f1d2715284faa2fe22a8a&state=76202f0df8abf11b94352d0a43d8f155f168ec547137df2d" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7672
+ Processing by AuthenticationsController#callback as HTML
7673
+ Parameters: {"code"=>"8711c02afc7af6dc96b9571a0dc66013be7218a0d04f1d2715284faa2fe22a8a", "state"=>"76202f0df8abf11b94352d0a43d8f155f168ec547137df2d"}
7674
+ Authenticating with gds_sso strategy
7675
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7676
+  (0.0ms) begin transaction
7677
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7678
+ - signin
7679
+ ' WHERE "users"."id" = 11
7680
+  (4.2ms) commit transaction
7681
+  (0.1ms) begin transaction
7682
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
7683
+ - signin
7684
+ ' WHERE "users"."id" = 11
7685
+  (3.1ms) commit transaction
7686
+ Redirected to http://www.example-client.com/restricted
7687
+ Completed 302 Found in 15.6ms (ActiveRecord: 7.9ms)
7688
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7689
+ Processing by ExampleController#restricted as HTML
7690
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7691
+ Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
7692
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7693
+ Processing by ExampleController#restricted as HTML
7694
+ Authenticating with gds_sso strategy
7695
+ Completed in 0.2ms
7696
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:16 +0000
7697
+ Started GET "/auth/gds/callback?code=2b6503f62e0d66f9d1f7170db46b11f1108d935438a6d4adf592ec2188219390&state=31502692a82b4a13360950ce8f8dc19d6e92192a5e4963d2" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
7698
+ Processing by AuthenticationsController#callback as HTML
7699
+ Parameters: {"code"=>"2b6503f62e0d66f9d1f7170db46b11f1108d935438a6d4adf592ec2188219390", "state"=>"31502692a82b4a13360950ce8f8dc19d6e92192a5e4963d2"}
7700
+ Authenticating with gds_sso strategy
7701
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7702
+  (0.1ms) begin transaction
7703
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7704
+ - signin
7705
+ ' WHERE "users"."id" = 11
7706
+  (6.1ms) commit transaction
7707
+  (0.0ms) begin transaction
7708
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7709
+ - signin
7710
+ ' WHERE "users"."id" = 11
7711
+  (3.5ms) commit transaction
7712
+ Redirected to http://www.example-client.com/restricted
7713
+ Completed 302 Found in 17.9ms (ActiveRecord: 10.1ms)
7714
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
7715
+ Processing by ExampleController#restricted as HTML
7716
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7717
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7718
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:29:17 +0000
7719
+ Processing by ExampleController#restricted as HTML
7720
+ Authenticating with gds_sso strategy
7721
+ Completed in 0.2ms
7722
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 10:29:17 +0000
7723
+ Started GET "/auth/gds/callback?code=984a073012994ba86b45e73b612d34a30ecea3ec2c6dc3e7a308879077190748&state=7439342f1afd76e73924095793c10d514af78213e2a10d21" for 127.0.0.1 at 2013-11-05 10:29:17 +0000
7724
+ Processing by AuthenticationsController#callback as HTML
7725
+ Parameters: {"code"=>"984a073012994ba86b45e73b612d34a30ecea3ec2c6dc3e7a308879077190748", "state"=>"7439342f1afd76e73924095793c10d514af78213e2a10d21"}
7726
+ Authenticating with gds_sso strategy
7727
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7728
+  (0.1ms) begin transaction
7729
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7730
+ - signin
7731
+ ' WHERE "users"."id" = 11
7732
+  (3.9ms) commit transaction
7733
+  (0.0ms) begin transaction
7734
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7735
+ - signin
7736
+ ' WHERE "users"."id" = 11
7737
+  (3.0ms) commit transaction
7738
+ Redirected to http://www.example-client.com/restricted
7739
+ Completed 302 Found in 14.1ms (ActiveRecord: 7.4ms)
7740
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:29:17 +0000
7741
+ Processing by ExampleController#restricted as HTML
7742
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7743
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
7744
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
7745
+ Processing by ExampleController#restricted as HTML
7746
+ Authenticating with gds_sso strategy
7747
+ Completed in 0.2ms
7748
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
7749
+ Started GET "/auth/gds/callback?code=c4bfb4d4fe26e2ff3df2e8832fc26cbd9608f0dd53d145b81fd2633307d71911&state=1a557cb732e8355c3c458dae7fe83075a6f588cffe583f0a" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
7750
+ Processing by AuthenticationsController#callback as HTML
7751
+ Parameters: {"code"=>"c4bfb4d4fe26e2ff3df2e8832fc26cbd9608f0dd53d145b81fd2633307d71911", "state"=>"1a557cb732e8355c3c458dae7fe83075a6f588cffe583f0a"}
7752
+ Authenticating with gds_sso strategy
7753
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7754
+  (0.1ms) begin transaction
7755
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7756
+ - signin
7757
+ ' WHERE "users"."id" = 11
7758
+  (15.7ms) commit transaction
7759
+  (0.0ms) begin transaction
7760
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7761
+ - signin
7762
+ ' WHERE "users"."id" = 11
7763
+  (11.0ms) commit transaction
7764
+ Redirected to http://www.example-client.com/restricted
7765
+ Completed 302 Found in 35.2ms (ActiveRecord: 27.2ms)
7766
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
7767
+ Processing by ExampleController#restricted as HTML
7768
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7769
+ Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.3ms)
7770
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:19:17 +0000
7771
+ Processing by ExampleController#restricted as HTML
7772
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7773
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
7774
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
7775
+ Processing by ExampleController#restricted as JSON
7776
+ Authenticating with gds_bearer_token strategy
7777
+ Completed in 7.8ms
7778
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:24:17 +0000
7779
+ Processing by ExampleController#restricted as JSON
7780
+ Authenticating with gds_bearer_token strategy
7781
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7782
+  (0.0ms) begin transaction
7783
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7784
+ - signin
7785
+ ' WHERE "users"."id" = 11
7786
+  (13.2ms) commit transaction
7787
+  (0.0ms) begin transaction
7788
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7789
+ - signin
7790
+ ' WHERE "users"."id" = 11
7791
+  (11.3ms) commit transaction
7792
+ Completed 200 OK in 60.2ms (Views: 0.2ms | ActiveRecord: 25.0ms)
7793
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:24:18 +0000
7794
+ Processing by ExampleController#this_requires_signin_permission as JSON
7795
+ Authenticating with gds_bearer_token strategy
7796
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7797
+  (0.0ms) begin transaction
7798
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7799
+ - signin
7800
+ ' WHERE "users"."id" = 11
7801
+  (41.2ms) commit transaction
7802
+  (0.1ms) begin transaction
7803
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7804
+ - signin
7805
+ ' WHERE "users"."id" = 11
7806
+  (2.6ms) commit transaction
7807
+ Completed 200 OK in 75.8ms (Views: 0.2ms | ActiveRecord: 44.3ms)
7808
+ Connecting to database specified by database.yml
7809
+  (0.7ms) select sqlite_version(*)
7810
+  (45.6ms) DROP TABLE "users"
7811
+  (15.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation" varchar(255)) 
7812
+  (0.1ms) begin transaction
7813
+ SQL (2.1ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33091"]]
7814
+  (22.5ms) commit transaction
7815
+  (0.1ms) begin transaction
7816
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39462"]]
7817
+  (10.9ms) commit transaction
7818
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
7819
+ Processing by Api::UserController#update as HTML
7820
+ Parameters: {"uid"=>"a1s2d33091"}
7821
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.7ms)
7822
+ Completed 403 Forbidden in 6.3ms (Views: 5.6ms | ActiveRecord: 0.0ms)
7823
+  (0.1ms) begin transaction
7824
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34490"]]
7825
+  (52.8ms) commit transaction
7826
+  (0.1ms) begin transaction
7827
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33757"]]
7828
+  (30.8ms) commit transaction
7829
+ Processing by Api::UserController#update as HTML
7830
+ Parameters: {"uid"=>"a1s2d34490"}
7831
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34490' LIMIT 1
7832
+  (0.0ms) begin transaction
7833
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
7834
+ - signin
7835
+ - new permission
7836
+ ', "organisation" = 'justice-league' WHERE "users"."id" = 3
7837
+  (11.5ms) commit transaction
7838
+ Completed 200 OK in 93.5ms (ActiveRecord: 12.0ms)
7839
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
7840
+  (0.1ms) begin transaction
7841
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3369"]]
7842
+  (21.4ms) commit transaction
7843
+  (0.1ms) begin transaction
7844
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31828"]]
7845
+  (13.7ms) commit transaction
7846
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
7847
+ Processing by Api::UserController#reauth as HTML
7848
+ Parameters: {"uid"=>"a1s2d3369"}
7849
+ Completed 403 Forbidden in 1.8ms (Views: 1.1ms | ActiveRecord: 0.0ms)
7850
+  (0.1ms) begin transaction
7851
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39171"]]
7852
+  (13.9ms) commit transaction
7853
+  (0.1ms) begin transaction
7854
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31827"]]
7855
+  (12.5ms) commit transaction
7856
+ Processing by Api::UserController#reauth as HTML
7857
+ Parameters: {"uid"=>"nonexistent-user"}
7858
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
7859
+ Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
7860
+  (0.1ms) begin transaction
7861
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3327"]]
7862
+  (12.3ms) commit transaction
7863
+  (0.1ms) begin transaction
7864
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3756"]]
7865
+  (9.5ms) commit transaction
7866
+ Processing by Api::UserController#reauth as HTML
7867
+ Parameters: {"uid"=>"a1s2d3327"}
7868
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3327' LIMIT 1
7869
+  (0.0ms) begin transaction
7870
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
7871
+ - signin
7872
+ ' WHERE "users"."id" = 9
7873
+  (37.3ms) commit transaction
7874
+ Completed 200 OK in 41.8ms (ActiveRecord: 37.7ms)
7875
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
7876
+ Started GET "/" for 127.0.0.1 at 2013-11-04 14:25:10 +0000
7877
+ Processing by ExampleController#index as HTML
7878
+ Completed 200 OK in 1.7ms (Views: 1.3ms | ActiveRecord: 0.0ms)
7879
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:10 +0000
7880
+ Processing by ExampleController#restricted as HTML
7881
+ Authenticating with gds_sso strategy
7882
+ Completed in 2.4ms
7883
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:10 +0000
7884
+ Started GET "/auth/gds/callback?code=195daa2c352cfb52b5e2363712f46cb744afb25a89bf2d657af3ff306e17abbb&state=d9c168d36fd143c46ec076ad1f4b7ca9e2665ef3a786a337" for 127.0.0.1 at 2013-11-04 14:25:11 +0000
7885
+ Processing by AuthenticationsController#callback as HTML
7886
+ Parameters: {"code"=>"195daa2c352cfb52b5e2363712f46cb744afb25a89bf2d657af3ff306e17abbb", "state"=>"d9c168d36fd143c46ec076ad1f4b7ca9e2665ef3a786a337"}
7887
+ Authenticating with gds_sso strategy
7888
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7889
+  (0.0ms) begin transaction
7890
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
7891
+  (90.3ms) commit transaction
7892
+  (0.1ms) begin transaction
7893
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
7894
+ - signin
7895
+ ' WHERE "users"."id" = 11
7896
+  (66.3ms) commit transaction
7897
+ Redirected to http://www.example-client.com/restricted
7898
+ Completed 302 Found in 164.2ms (ActiveRecord: 157.3ms)
7899
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:11 +0000
7900
+ Processing by ExampleController#restricted as HTML
7901
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7902
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
7903
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7904
+ Processing by ExampleController#restricted as HTML
7905
+ Authenticating with gds_sso strategy
7906
+ Completed in 0.3ms
7907
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7908
+ Started GET "/auth/gds/callback?code=418a64021bdea90743bbc15f4dbde9e85ab3a481abd22cef768bf2e02db454ad&state=07f1b3019b1b460802eef4bcf44f1085ee4ecab541dd0cb7" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7909
+ Processing by AuthenticationsController#callback as HTML
7910
+ Parameters: {"code"=>"418a64021bdea90743bbc15f4dbde9e85ab3a481abd22cef768bf2e02db454ad", "state"=>"07f1b3019b1b460802eef4bcf44f1085ee4ecab541dd0cb7"}
7911
+ Authenticating with gds_sso strategy
7912
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7913
+  (0.1ms) begin transaction
7914
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7915
+ - signin
7916
+ ' WHERE "users"."id" = 11
7917
+  (14.5ms) commit transaction
7918
+  (0.0ms) begin transaction
7919
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7920
+ - signin
7921
+ ' WHERE "users"."id" = 11
7922
+  (12.8ms) commit transaction
7923
+ Redirected to http://www.example-client.com/restricted
7924
+ Completed 302 Found in 35.3ms (ActiveRecord: 27.8ms)
7925
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7926
+ Processing by ExampleController#restricted as HTML
7927
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7928
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7929
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7930
+ Processing by ExampleController#restricted as HTML
7931
+ Authenticating with gds_sso strategy
7932
+ Completed in 0.1ms
7933
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7934
+ Started GET "/auth/gds/callback?code=1b6c2e84095fbf1ee2cf4dc1602b0410927ee58b0d527371522946b9551b5676&state=e51c8ee2d9f788920ff81837b5528c8473cd2a478695af9f" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7935
+ Processing by AuthenticationsController#callback as HTML
7936
+ Parameters: {"code"=>"1b6c2e84095fbf1ee2cf4dc1602b0410927ee58b0d527371522946b9551b5676", "state"=>"e51c8ee2d9f788920ff81837b5528c8473cd2a478695af9f"}
7937
+ Authenticating with gds_sso strategy
7938
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7939
+  (0.0ms) begin transaction
7940
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7941
+ - signin
7942
+ ' WHERE "users"."id" = 11
7943
+  (9.3ms) commit transaction
7944
+  (0.0ms) begin transaction
7945
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7946
+ - signin
7947
+ ' WHERE "users"."id" = 11
7948
+  (10.1ms) commit transaction
7949
+ Redirected to http://www.example-client.com/restricted
7950
+ Completed 302 Found in 26.7ms (ActiveRecord: 19.8ms)
7951
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7952
+ Processing by ExampleController#restricted as HTML
7953
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7954
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7955
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7956
+ Processing by ExampleController#this_requires_signin_permission as HTML
7957
+ Authenticating with gds_sso strategy
7958
+ Completed in 0.6ms
7959
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:12 +0000
7960
+ Started GET "/auth/gds/callback?code=3ee1805861eccebbf41264289d92581823668d617880925a5603ac8bf56b67b2&state=488a7d046b1c964ede5d26bbb75df49eb27d255f5da2151a" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
7961
+ Processing by AuthenticationsController#callback as HTML
7962
+ Parameters: {"code"=>"3ee1805861eccebbf41264289d92581823668d617880925a5603ac8bf56b67b2", "state"=>"488a7d046b1c964ede5d26bbb75df49eb27d255f5da2151a"}
7963
+ Authenticating with gds_sso strategy
7964
+ User Load (13.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7965
+  (0.0ms) begin transaction
7966
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7967
+ - signin
7968
+ ' WHERE "users"."id" = 11
7969
+  (8.8ms) commit transaction
7970
+  (0.0ms) begin transaction
7971
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7972
+ - signin
7973
+ ' WHERE "users"."id" = 11
7974
+  (2.7ms) commit transaction
7975
+ Redirected to http://www.example-client.com/this_requires_signin_permission
7976
+ Completed 302 Found in 32.4ms (ActiveRecord: 25.1ms)
7977
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
7978
+ Processing by ExampleController#this_requires_signin_permission as HTML
7979
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7980
+ Completed 200 OK in 2.6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7981
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
7982
+ Processing by ExampleController#this_requires_signin_permission as HTML
7983
+ Authenticating with gds_sso strategy
7984
+ Completed in 0.2ms
7985
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
7986
+ Started GET "/auth/gds/callback?code=7443bac33f0a3d0ac195e532111bce7fe0dba5c155a161cb477ab19d577c1302&state=d7f5341425edae58d9420ac8036c06eeac54debe414665e1" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
7987
+ Processing by AuthenticationsController#callback as HTML
7988
+ Parameters: {"code"=>"7443bac33f0a3d0ac195e532111bce7fe0dba5c155a161cb477ab19d577c1302", "state"=>"d7f5341425edae58d9420ac8036c06eeac54debe414665e1"}
7989
+ Authenticating with gds_sso strategy
7990
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
7991
+  (0.0ms) begin transaction
7992
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7993
+ - signin
7994
+ ' WHERE "users"."id" = 11
7995
+  (4.2ms) commit transaction
7996
+  (0.0ms) begin transaction
7997
+  (0.1ms) UPDATE "users" SET "permissions" = '---
7998
+ - signin
7999
+ ' WHERE "users"."id" = 11
8000
+  (21.8ms) commit transaction
8001
+ Redirected to http://www.example-client.com/this_requires_signin_permission
8002
+ Completed 302 Found in 33.4ms (ActiveRecord: 26.5ms)
8003
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
8004
+ Processing by ExampleController#this_requires_signin_permission as HTML
8005
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8006
+ Completed 200 OK in 2.7ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8007
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
8008
+ Processing by ExampleController#restricted as HTML
8009
+ Authenticating with gds_sso strategy
8010
+ Completed in 0.2ms
8011
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
8012
+ Started GET "/auth/gds/callback?code=5b7bc32cc87b781101e06881b833ebf9af55a8ef017be9f0b5abbd763b690fe5&state=4a3d5484b0d9e338c299d20dc972e7ade3d2ad6ae6f84b5b" for 127.0.0.1 at 2013-11-04 14:25:13 +0000
8013
+ Processing by AuthenticationsController#callback as HTML
8014
+ Parameters: {"code"=>"5b7bc32cc87b781101e06881b833ebf9af55a8ef017be9f0b5abbd763b690fe5", "state"=>"4a3d5484b0d9e338c299d20dc972e7ade3d2ad6ae6f84b5b"}
8015
+ Authenticating with gds_sso strategy
8016
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8017
+  (0.0ms) begin transaction
8018
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8019
+ - signin
8020
+ ' WHERE "users"."id" = 11
8021
+  (26.7ms) commit transaction
8022
+  (0.1ms) begin transaction
8023
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8024
+ - signin
8025
+ ' WHERE "users"."id" = 11
8026
+  (10.7ms) commit transaction
8027
+ Redirected to http://www.example-client.com/restricted
8028
+ Completed 302 Found in 46.2ms (ActiveRecord: 38.0ms)
8029
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8030
+ Processing by ExampleController#restricted as HTML
8031
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8032
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8033
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8034
+  (0.0ms) begin transaction
8035
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
8036
+ - signin
8037
+ ' WHERE "users"."id" = 11
8038
+  (10.0ms) commit transaction
8039
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8040
+ Processing by ExampleController#restricted as HTML
8041
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8042
+ Filter chain halted as :authenticate_user! rendered or redirected
8043
+ Completed 403 Forbidden in 2.7ms (Views: 1.9ms | ActiveRecord: 0.1ms)
8044
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8045
+ Processing by AuthenticationsController#sign_out as HTML
8046
+ Redirected to http://localhost:4567/users/sign_out
8047
+ Completed 302 Found in 0.4ms (ActiveRecord: 0.0ms)
8048
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8049
+ Processing by ExampleController#restricted as HTML
8050
+ Authenticating with gds_sso strategy
8051
+ Completed in 0.2ms
8052
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8053
+ Started GET "/auth/gds/callback?code=324df068451e6d2c448759a59b92b39c5f65f48c77e694214d86e867b3cf4659&state=9425790bb76ea873961afb695285d44280f1a1d082a4e0d8" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8054
+ Processing by AuthenticationsController#callback as HTML
8055
+ Parameters: {"code"=>"324df068451e6d2c448759a59b92b39c5f65f48c77e694214d86e867b3cf4659", "state"=>"9425790bb76ea873961afb695285d44280f1a1d082a4e0d8"}
8056
+ Authenticating with gds_sso strategy
8057
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8058
+  (0.0ms) begin transaction
8059
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8060
+ - signin
8061
+ ' WHERE "users"."id" = 11
8062
+  (14.2ms) commit transaction
8063
+  (0.0ms) begin transaction
8064
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
8065
+ - signin
8066
+ ' WHERE "users"."id" = 11
8067
+  (7.1ms) commit transaction
8068
+ Redirected to http://www.example-client.com/restricted
8069
+ Completed 302 Found in 28.9ms (ActiveRecord: 21.8ms)
8070
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8071
+ Processing by ExampleController#restricted as HTML
8072
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8073
+ Completed 200 OK in 1.0ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8074
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8075
+ Processing by ExampleController#restricted as HTML
8076
+ Authenticating with gds_sso strategy
8077
+ Completed in 0.2ms
8078
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8079
+ Started GET "/auth/gds/callback?code=ab614bba8928fb33c709a64dbd786af4cbb82c9f0297fdadbfcaf35fb19d6cce&state=b2451a53b894bcac260ca119c19bb213e803a4d50d498216" for 127.0.0.1 at 2013-11-04 14:25:14 +0000
8080
+ Processing by AuthenticationsController#callback as HTML
8081
+ Parameters: {"code"=>"ab614bba8928fb33c709a64dbd786af4cbb82c9f0297fdadbfcaf35fb19d6cce", "state"=>"b2451a53b894bcac260ca119c19bb213e803a4d50d498216"}
8082
+ Authenticating with gds_sso strategy
8083
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8084
+  (0.1ms) begin transaction
8085
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8086
+ - signin
8087
+ ' WHERE "users"."id" = 11
8088
+  (16.8ms) commit transaction
8089
+  (0.0ms) begin transaction
8090
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8091
+ - signin
8092
+ ' WHERE "users"."id" = 11
8093
+  (13.1ms) commit transaction
8094
+ Redirected to http://www.example-client.com/restricted
8095
+ Completed 302 Found in 38.3ms (ActiveRecord: 30.4ms)
8096
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
8097
+ Processing by ExampleController#restricted as HTML
8098
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8099
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8100
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:30:15 +0000
8101
+ Processing by ExampleController#restricted as HTML
8102
+ Authenticating with gds_sso strategy
8103
+ Completed in 0.2ms
8104
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-05 10:30:15 +0000
8105
+ Started GET "/auth/gds/callback?code=7f6f4e8b7a424b719314c333f47355b079d19dd961c2075ebd14ffad3589b697&state=cb4fd205ee3c9793db3faa693e9401de0650eaf7b5eafb2c" for 127.0.0.1 at 2013-11-05 10:30:15 +0000
8106
+ Processing by AuthenticationsController#callback as HTML
8107
+ Parameters: {"code"=>"7f6f4e8b7a424b719314c333f47355b079d19dd961c2075ebd14ffad3589b697", "state"=>"cb4fd205ee3c9793db3faa693e9401de0650eaf7b5eafb2c"}
8108
+ Authenticating with gds_sso strategy
8109
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8110
+  (0.1ms) begin transaction
8111
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8112
+ - signin
8113
+ ' WHERE "users"."id" = 11
8114
+  (25.4ms) commit transaction
8115
+  (0.0ms) begin transaction
8116
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8117
+ - signin
8118
+ ' WHERE "users"."id" = 11
8119
+  (10.8ms) commit transaction
8120
+ Redirected to http://www.example-client.com/restricted
8121
+ Completed 302 Found in 43.5ms (ActiveRecord: 36.8ms)
8122
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:30:15 +0000
8123
+ Processing by ExampleController#restricted as HTML
8124
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8125
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8126
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
8127
+ Processing by ExampleController#restricted as HTML
8128
+ Authenticating with gds_sso strategy
8129
+ Completed in 0.2ms
8130
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
8131
+ Started GET "/auth/gds/callback?code=5daab3185d524d158668bdda6867cba393f7b0c013fb446985a9137e5eb67e92&state=d05cc105225eabc67158e6d525b91c45530f3ebecb4ab7e2" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
8132
+ Processing by AuthenticationsController#callback as HTML
8133
+ Parameters: {"code"=>"5daab3185d524d158668bdda6867cba393f7b0c013fb446985a9137e5eb67e92", "state"=>"d05cc105225eabc67158e6d525b91c45530f3ebecb4ab7e2"}
8134
+ Authenticating with gds_sso strategy
8135
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8136
+  (0.1ms) begin transaction
8137
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8138
+ - signin
8139
+ ' WHERE "users"."id" = 11
8140
+  (4.4ms) commit transaction
8141
+  (0.1ms) begin transaction
8142
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8143
+ - signin
8144
+ ' WHERE "users"."id" = 11
8145
+  (4.5ms) commit transaction
8146
+ Redirected to http://www.example-client.com/restricted
8147
+ Completed 302 Found in 17.1ms (ActiveRecord: 9.4ms)
8148
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
8149
+ Processing by ExampleController#restricted as HTML
8150
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8151
+ Completed 200 OK in 1.1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
8152
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-05 10:20:15 +0000
8153
+ Processing by ExampleController#restricted as HTML
8154
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8155
+ Completed 200 OK in 0.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
8156
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
8157
+ Processing by ExampleController#restricted as JSON
8158
+ Authenticating with gds_bearer_token strategy
8159
+ Completed in 6.5ms
8160
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-04 14:25:15 +0000
8161
+ Processing by ExampleController#restricted as JSON
8162
+ Authenticating with gds_bearer_token strategy
8163
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8164
+  (0.0ms) begin transaction
8165
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8166
+ - signin
8167
+ ' WHERE "users"."id" = 11
8168
+  (14.6ms) commit transaction
8169
+  (0.0ms) begin transaction
8170
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8171
+ - signin
8172
+ ' WHERE "users"."id" = 11
8173
+  (9.1ms) commit transaction
8174
+ Completed 200 OK in 73.9ms (Views: 0.2ms | ActiveRecord: 24.1ms)
8175
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-04 14:25:16 +0000
8176
+ Processing by ExampleController#this_requires_signin_permission as JSON
8177
+ Authenticating with gds_bearer_token strategy
8178
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
8179
+  (0.0ms) begin transaction
8180
+  (0.2ms) UPDATE "users" SET "permissions" = '---
8181
+ - signin
8182
+ ' WHERE "users"."id" = 11
8183
+  (14.9ms) commit transaction
8184
+  (0.0ms) begin transaction
8185
+  (0.1ms) UPDATE "users" SET "permissions" = '---
8186
+ - signin
8187
+ ' WHERE "users"."id" = 11
8188
+  (13.3ms) commit transaction
8189
+ Completed 200 OK in 91.9ms (Views: 0.2ms | ActiveRecord: 28.7ms)