gds-sso 8.0.0 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/gds-sso/user.rb CHANGED
@@ -3,7 +3,9 @@ require 'active_support/concern'
3
3
  module GDS
4
4
  module SSO
5
5
  module User
6
- def included(base)
6
+ extend ActiveSupport::Concern
7
+
8
+ included do
7
9
  attr_accessible :uid, :email, :name, :permissions, :organisation_slug, as: :oauth
8
10
  end
9
11
 
@@ -31,8 +33,6 @@ module GDS
31
33
  self.update_attribute(:remotely_signed_out, true)
32
34
  end
33
35
 
34
- extend ActiveSupport::Concern
35
-
36
36
  module ClassMethods
37
37
  def find_for_gds_oauth(auth_hash)
38
38
  if user = self.where(:uid => auth_hash["uid"]).first
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "8.0.0"
3
+ VERSION = "9.0.0"
4
4
  end
5
5
  end
@@ -10861,3 +10861,1151 @@ Authenticating with gds_bearer_token strategy
10861
10861
  ' WHERE "users"."id" = 11
10862
10862
   (4.2ms) commit transaction
10863
10863
  Completed 200 OK in 40.8ms (Views: 0.2ms | ActiveRecord: 9.3ms)
10864
+ Connecting to database specified by database.yml
10865
+  (1.0ms) select sqlite_version(*)
10866
+  (135.3ms) DROP TABLE "users"
10867
+  (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_slug" varchar(255)) 
10868
+  (0.1ms) begin transaction
10869
+ SQL (2.5ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35537"]]
10870
+  (14.5ms) commit transaction
10871
+  (0.1ms) begin transaction
10872
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38826"]]
10873
+  (12.9ms) commit transaction
10874
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
10875
+ Processing by Api::UserController#update as HTML
10876
+ Parameters: {"uid"=>"a1s2d35537"}
10877
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (30.8ms)
10878
+ Completed 403 Forbidden in 38.0ms (Views: 37.2ms | ActiveRecord: 0.0ms)
10879
+  (0.1ms) begin transaction
10880
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34546"]]
10881
+  (71.7ms) commit transaction
10882
+  (0.1ms) begin transaction
10883
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32927"]]
10884
+  (51.5ms) commit transaction
10885
+ Processing by Api::UserController#update as HTML
10886
+ Parameters: {"uid"=>"a1s2d34546"}
10887
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34546' LIMIT 1
10888
+  (0.1ms) begin transaction
10889
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
10890
+ - signin
10891
+ - new permission
10892
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
10893
+  (62.0ms) commit transaction
10894
+ Completed 200 OK in 74.0ms (ActiveRecord: 62.7ms)
10895
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
10896
+  (0.1ms) begin transaction
10897
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34516"]]
10898
+  (60.8ms) commit transaction
10899
+  (0.1ms) begin transaction
10900
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38544"]]
10901
+  (56.0ms) commit transaction
10902
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
10903
+ Processing by Api::UserController#reauth as HTML
10904
+ Parameters: {"uid"=>"a1s2d34516"}
10905
+ Completed 403 Forbidden in 2.1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
10906
+  (0.1ms) begin transaction
10907
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39558"]]
10908
+  (56.4ms) commit transaction
10909
+  (0.1ms) begin transaction
10910
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31205"]]
10911
+  (64.4ms) commit transaction
10912
+ Processing by Api::UserController#reauth as HTML
10913
+ Parameters: {"uid"=>"nonexistent-user"}
10914
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
10915
+ Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
10916
+  (0.1ms) begin transaction
10917
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39739"]]
10918
+  (55.3ms) commit transaction
10919
+  (0.2ms) begin transaction
10920
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35626"]]
10921
+  (46.1ms) commit transaction
10922
+ Processing by Api::UserController#reauth as HTML
10923
+ Parameters: {"uid"=>"a1s2d39739"}
10924
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39739' LIMIT 1
10925
+  (0.1ms) begin transaction
10926
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
10927
+ - signin
10928
+ ' WHERE "users"."id" = 9
10929
+  (15.5ms) commit transaction
10930
+ Completed 200 OK in 21.3ms (ActiveRecord: 16.0ms)
10931
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
10932
+ Started GET "/" for 127.0.0.1 at 2013-11-27 13:19:59 +0000
10933
+ Processing by ExampleController#index as HTML
10934
+ Completed 200 OK in 2.3ms (Views: 1.9ms | ActiveRecord: 0.0ms)
10935
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:00 +0000
10936
+ Processing by ExampleController#restricted as HTML
10937
+ Authenticating with gds_sso strategy
10938
+ Completed in 3.2ms
10939
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:00 +0000
10940
+ Started GET "/auth/gds/callback?code=0faaf06103f68d70c4b0403c8c53b430c612ad68fbc31cfeb2906900b542186d&state=86168730a2c081e66d3e9e9a9169d358b263e1eea0e2261f" for 127.0.0.1 at 2013-11-27 13:20:01 +0000
10941
+ Processing by AuthenticationsController#callback as HTML
10942
+ Parameters: {"code"=>"0faaf06103f68d70c4b0403c8c53b430c612ad68fbc31cfeb2906900b542186d", "state"=>"86168730a2c081e66d3e9e9a9169d358b263e1eea0e2261f"}
10943
+ Authenticating with gds_sso strategy
10944
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10945
+  (0.1ms) begin transaction
10946
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
10947
+  (12.7ms) commit transaction
10948
+  (0.0ms) begin transaction
10949
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
10950
+ - signin
10951
+ ' WHERE "users"."id" = 11
10952
+  (9.8ms) commit transaction
10953
+ Redirected to http://www.example-client.com/restricted
10954
+ Completed 302 Found in 32.0ms (ActiveRecord: 23.3ms)
10955
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:01 +0000
10956
+ Processing by ExampleController#restricted as HTML
10957
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10958
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
10959
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:01 +0000
10960
+ Processing by ExampleController#restricted as HTML
10961
+ Authenticating with gds_sso strategy
10962
+ Completed in 0.4ms
10963
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:01 +0000
10964
+ Started GET "/auth/gds/callback?code=b7102610493a5ee1fd08f590148e7008f173f85360d0370ae964f67f3fccbbc5&state=3c3145edc77c0cd64aaaa521559be478587a5ad1f9962de3" for 127.0.0.1 at 2013-11-27 13:20:01 +0000
10965
+ Processing by AuthenticationsController#callback as HTML
10966
+ Parameters: {"code"=>"b7102610493a5ee1fd08f590148e7008f173f85360d0370ae964f67f3fccbbc5", "state"=>"3c3145edc77c0cd64aaaa521559be478587a5ad1f9962de3"}
10967
+ Authenticating with gds_sso strategy
10968
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10969
+  (0.1ms) begin transaction
10970
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10971
+ - signin
10972
+ ' WHERE "users"."id" = 11
10973
+  (10.3ms) commit transaction
10974
+  (0.1ms) begin transaction
10975
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10976
+ - signin
10977
+ ' WHERE "users"."id" = 11
10978
+  (8.1ms) commit transaction
10979
+ Redirected to http://www.example-client.com/restricted
10980
+ Completed 302 Found in 30.5ms (ActiveRecord: 19.2ms)
10981
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:01 +0000
10982
+ Processing by ExampleController#restricted as HTML
10983
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10984
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
10985
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:01 +0000
10986
+ Processing by ExampleController#restricted as HTML
10987
+ Authenticating with gds_sso strategy
10988
+ Completed in 0.2ms
10989
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:01 +0000
10990
+ Started GET "/auth/gds/callback?code=9be02d605f27bf08c30e7744ca4934a8df68ba7feab4ebb9c191d67d5caf2377&state=72dfb4485a3cb4b32555c01a11edad2ce8a9d3960fcbd62b" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
10991
+ Processing by AuthenticationsController#callback as HTML
10992
+ Parameters: {"code"=>"9be02d605f27bf08c30e7744ca4934a8df68ba7feab4ebb9c191d67d5caf2377", "state"=>"72dfb4485a3cb4b32555c01a11edad2ce8a9d3960fcbd62b"}
10993
+ Authenticating with gds_sso strategy
10994
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
10995
+  (0.0ms) begin transaction
10996
+  (0.2ms) UPDATE "users" SET "permissions" = '---
10997
+ - signin
10998
+ ' WHERE "users"."id" = 11
10999
+  (8.1ms) commit transaction
11000
+  (0.1ms) begin transaction
11001
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11002
+ - signin
11003
+ ' WHERE "users"."id" = 11
11004
+  (7.6ms) commit transaction
11005
+ Redirected to http://www.example-client.com/restricted
11006
+ Completed 302 Found in 27.8ms (ActiveRecord: 16.4ms)
11007
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
11008
+ Processing by ExampleController#restricted as HTML
11009
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11010
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11011
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
11012
+ Processing by ExampleController#this_requires_signin_permission as HTML
11013
+ Authenticating with gds_sso strategy
11014
+ Completed in 1.1ms
11015
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
11016
+ Started GET "/auth/gds/callback?code=14899f8d39f48834c704638819d7b05fa596dbd47ef735cde012273d6cc0e0b5&state=9a40970ad9e3f4eb4e0969d4d7ab7d2ab4ed63fcf66f15fb" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
11017
+ Processing by AuthenticationsController#callback as HTML
11018
+ Parameters: {"code"=>"14899f8d39f48834c704638819d7b05fa596dbd47ef735cde012273d6cc0e0b5", "state"=>"9a40970ad9e3f4eb4e0969d4d7ab7d2ab4ed63fcf66f15fb"}
11019
+ Authenticating with gds_sso strategy
11020
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11021
+  (0.1ms) begin transaction
11022
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11023
+ - signin
11024
+ ' WHERE "users"."id" = 11
11025
+  (8.8ms) commit transaction
11026
+  (0.1ms) begin transaction
11027
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11028
+ - signin
11029
+ ' WHERE "users"."id" = 11
11030
+  (6.8ms) commit transaction
11031
+ Redirected to http://www.example-client.com/this_requires_signin_permission
11032
+ Completed 302 Found in 27.7ms (ActiveRecord: 16.3ms)
11033
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
11034
+ Processing by ExampleController#this_requires_signin_permission as HTML
11035
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11036
+ Completed 200 OK in 3.8ms (Views: 0.5ms | ActiveRecord: 0.1ms)
11037
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
11038
+ Processing by ExampleController#this_requires_signin_permission as HTML
11039
+ Authenticating with gds_sso strategy
11040
+ Completed in 0.2ms
11041
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
11042
+ Started GET "/auth/gds/callback?code=5b289077fe9506b9293880b72c8c53fa0fc216b91353640a40ad4d098ecbf681&state=aa3b0950e5d77ffa456a7b54ac186ab4e9751e313e30d54a" for 127.0.0.1 at 2013-11-27 13:20:02 +0000
11043
+ Processing by AuthenticationsController#callback as HTML
11044
+ Parameters: {"code"=>"5b289077fe9506b9293880b72c8c53fa0fc216b91353640a40ad4d098ecbf681", "state"=>"aa3b0950e5d77ffa456a7b54ac186ab4e9751e313e30d54a"}
11045
+ Authenticating with gds_sso strategy
11046
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11047
+  (0.1ms) begin transaction
11048
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11049
+ - signin
11050
+ ' WHERE "users"."id" = 11
11051
+  (8.4ms) commit transaction
11052
+  (0.1ms) begin transaction
11053
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11054
+ - signin
11055
+ ' WHERE "users"."id" = 11
11056
+  (5.6ms) commit transaction
11057
+ Redirected to http://www.example-client.com/this_requires_signin_permission
11058
+ Completed 302 Found in 24.5ms (ActiveRecord: 14.9ms)
11059
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11060
+ Processing by ExampleController#this_requires_signin_permission as HTML
11061
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11062
+ Completed 200 OK in 4.0ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11063
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11064
+ Processing by ExampleController#restricted as HTML
11065
+ Authenticating with gds_sso strategy
11066
+ Completed in 0.4ms
11067
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11068
+ Started GET "/auth/gds/callback?code=a353f9901d10c91e891e9ecee2e6e49a1c8bbf57b277cca0d86f1b5f07370c16&state=136e8a53058ad2e63d80ab133c1fab2fd638a531b542aa02" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11069
+ Processing by AuthenticationsController#callback as HTML
11070
+ Parameters: {"code"=>"a353f9901d10c91e891e9ecee2e6e49a1c8bbf57b277cca0d86f1b5f07370c16", "state"=>"136e8a53058ad2e63d80ab133c1fab2fd638a531b542aa02"}
11071
+ Authenticating with gds_sso strategy
11072
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11073
+  (0.1ms) begin transaction
11074
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11075
+ - signin
11076
+ ' WHERE "users"."id" = 11
11077
+  (14.0ms) commit transaction
11078
+  (0.1ms) begin transaction
11079
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11080
+ - signin
11081
+ ' WHERE "users"."id" = 11
11082
+  (10.5ms) commit transaction
11083
+ Redirected to http://www.example-client.com/restricted
11084
+ Completed 302 Found in 37.2ms (ActiveRecord: 25.4ms)
11085
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11086
+ Processing by ExampleController#restricted as HTML
11087
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11088
+ Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11089
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11090
+  (0.0ms) begin transaction
11091
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
11092
+ - signin
11093
+ ' WHERE "users"."id" = 11
11094
+  (10.8ms) commit transaction
11095
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11096
+ Processing by ExampleController#restricted as HTML
11097
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11098
+ Filter chain halted as :authenticate_user! rendered or redirected
11099
+ Completed 403 Forbidden in 3.8ms (Views: 2.5ms | ActiveRecord: 0.2ms)
11100
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11101
+ Processing by AuthenticationsController#sign_out as HTML
11102
+ Redirected to http://localhost:4567/users/sign_out
11103
+ Completed 302 Found in 0.6ms (ActiveRecord: 0.0ms)
11104
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11105
+ Processing by ExampleController#restricted as HTML
11106
+ Authenticating with gds_sso strategy
11107
+ Completed in 0.3ms
11108
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11109
+ Started GET "/auth/gds/callback?code=76b221c33bc6d7a195ea9a99abcc8db0083cab34d5183cca759451e9a962d8e3&state=76d248bbd4290680e9ca2c441281fc5c597ee79efa297eb7" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11110
+ Processing by AuthenticationsController#callback as HTML
11111
+ Parameters: {"code"=>"76b221c33bc6d7a195ea9a99abcc8db0083cab34d5183cca759451e9a962d8e3", "state"=>"76d248bbd4290680e9ca2c441281fc5c597ee79efa297eb7"}
11112
+ Authenticating with gds_sso strategy
11113
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11114
+  (0.0ms) begin transaction
11115
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11116
+ - signin
11117
+ ' WHERE "users"."id" = 11
11118
+  (12.6ms) commit transaction
11119
+  (0.1ms) begin transaction
11120
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
11121
+ - signin
11122
+ ' WHERE "users"."id" = 11
11123
+  (10.3ms) commit transaction
11124
+ Redirected to http://www.example-client.com/restricted
11125
+ Completed 302 Found in 33.0ms (ActiveRecord: 23.5ms)
11126
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:03 +0000
11127
+ Processing by ExampleController#restricted as HTML
11128
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11129
+ Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11130
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:04 +0000
11131
+ Processing by ExampleController#restricted as HTML
11132
+ Authenticating with gds_sso strategy
11133
+ Completed in 0.3ms
11134
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:04 +0000
11135
+ Started GET "/auth/gds/callback?code=b00a40bbd16b622516c8e2a1e6c9b51400374f0c05d1df6550c53c363f2d8eb9&state=650caf5c0e6740eb58727f0133b4e1abfa74c5f80e8b9abf" for 127.0.0.1 at 2013-11-27 13:20:04 +0000
11136
+ Processing by AuthenticationsController#callback as HTML
11137
+ Parameters: {"code"=>"b00a40bbd16b622516c8e2a1e6c9b51400374f0c05d1df6550c53c363f2d8eb9", "state"=>"650caf5c0e6740eb58727f0133b4e1abfa74c5f80e8b9abf"}
11138
+ Authenticating with gds_sso strategy
11139
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11140
+  (0.1ms) begin transaction
11141
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11142
+ - signin
11143
+ ' WHERE "users"."id" = 11
11144
+  (15.3ms) commit transaction
11145
+  (0.1ms) begin transaction
11146
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11147
+ - signin
11148
+ ' WHERE "users"."id" = 11
11149
+  (10.0ms) commit transaction
11150
+ Redirected to http://www.example-client.com/restricted
11151
+ Completed 302 Found in 37.7ms (ActiveRecord: 26.1ms)
11152
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:04 +0000
11153
+ Processing by ExampleController#restricted as HTML
11154
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11155
+ Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11156
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 09:25:04 +0000
11157
+ Processing by ExampleController#restricted as HTML
11158
+ Authenticating with gds_sso strategy
11159
+ Completed in 0.3ms
11160
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 09:25:04 +0000
11161
+ Started GET "/auth/gds/callback?code=b0768c49330754c97a726056564a7d094faf350ce73961420a6d8ad7160ecd57&state=cb659a8d272bbb595a782f05529ccdbfeff54e12f1afb614" for 127.0.0.1 at 2013-11-28 09:25:04 +0000
11162
+ Processing by AuthenticationsController#callback as HTML
11163
+ Parameters: {"code"=>"b0768c49330754c97a726056564a7d094faf350ce73961420a6d8ad7160ecd57", "state"=>"cb659a8d272bbb595a782f05529ccdbfeff54e12f1afb614"}
11164
+ Authenticating with gds_sso strategy
11165
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11166
+  (0.1ms) begin transaction
11167
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11168
+ - signin
11169
+ ' WHERE "users"."id" = 11
11170
+  (12.7ms) commit transaction
11171
+  (0.1ms) begin transaction
11172
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11173
+ - signin
11174
+ ' WHERE "users"."id" = 11
11175
+  (10.5ms) commit transaction
11176
+ Redirected to http://www.example-client.com/restricted
11177
+ Completed 302 Found in 33.3ms (ActiveRecord: 24.0ms)
11178
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 09:25:04 +0000
11179
+ Processing by ExampleController#restricted as HTML
11180
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11181
+ Completed 200 OK in 1.3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
11182
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:04 +0000
11183
+ Processing by ExampleController#restricted as HTML
11184
+ Authenticating with gds_sso strategy
11185
+ Completed in 0.2ms
11186
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 13:20:04 +0000
11187
+ Started GET "/auth/gds/callback?code=c581093aa613a0fcf820216acb5b91c05f1efc07a00456f0eee9dd0a0698a146&state=71d6e3688352eac858b565cb541d72e8b79feae22e8fe7e6" for 127.0.0.1 at 2013-11-27 13:20:04 +0000
11188
+ Processing by AuthenticationsController#callback as HTML
11189
+ Parameters: {"code"=>"c581093aa613a0fcf820216acb5b91c05f1efc07a00456f0eee9dd0a0698a146", "state"=>"71d6e3688352eac858b565cb541d72e8b79feae22e8fe7e6"}
11190
+ Authenticating with gds_sso strategy
11191
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11192
+  (0.1ms) begin transaction
11193
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11194
+ - signin
11195
+ ' WHERE "users"."id" = 11
11196
+  (14.4ms) commit transaction
11197
+  (0.1ms) begin transaction
11198
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11199
+ - signin
11200
+ ' WHERE "users"."id" = 11
11201
+  (8.0ms) commit transaction
11202
+ Redirected to http://www.example-client.com/restricted
11203
+ Completed 302 Found in 34.7ms (ActiveRecord: 23.3ms)
11204
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:05 +0000
11205
+ Processing by ExampleController#restricted as HTML
11206
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11207
+ Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11208
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 09:15:05 +0000
11209
+ Processing by ExampleController#restricted as HTML
11210
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11211
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
11212
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:05 +0000
11213
+ Processing by ExampleController#restricted as JSON
11214
+ Authenticating with gds_bearer_token strategy
11215
+ Completed in 8.8ms
11216
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 13:20:05 +0000
11217
+ Processing by ExampleController#restricted as JSON
11218
+ Authenticating with gds_bearer_token strategy
11219
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11220
+  (0.0ms) begin transaction
11221
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11222
+ - signin
11223
+ ' WHERE "users"."id" = 11
11224
+  (12.3ms) commit transaction
11225
+  (0.1ms) begin transaction
11226
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11227
+ - signin
11228
+ ' WHERE "users"."id" = 11
11229
+  (11.2ms) commit transaction
11230
+ Completed 200 OK in 67.0ms (Views: 0.3ms | ActiveRecord: 24.3ms)
11231
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 13:20:05 +0000
11232
+ Processing by ExampleController#this_requires_signin_permission as JSON
11233
+ Authenticating with gds_bearer_token strategy
11234
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11235
+  (0.1ms) begin transaction
11236
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11237
+ - signin
11238
+ ' WHERE "users"."id" = 11
11239
+  (11.6ms) commit transaction
11240
+  (0.0ms) begin transaction
11241
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11242
+ - signin
11243
+ ' WHERE "users"."id" = 11
11244
+  (8.7ms) commit transaction
11245
+ Completed 200 OK in 67.1ms (Views: 0.3ms | ActiveRecord: 20.9ms)
11246
+ Connecting to database specified by database.yml
11247
+  (1.0ms) select sqlite_version(*)
11248
+  (19.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_slug" varchar(255))
11249
+  (12.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
11250
+  (12.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11251
+  (0.1ms) begin transaction
11252
+ SQL (2.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32703"]]
11253
+  (19.7ms) commit transaction
11254
+  (0.1ms) begin transaction
11255
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32515"]]
11256
+  (17.8ms) commit transaction
11257
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
11258
+ Processing by Api::UserController#update as HTML
11259
+ Parameters: {"uid"=>"a1s2d32703"}
11260
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.0ms)
11261
+ Completed 403 Forbidden in 36.4ms (Views: 35.6ms | ActiveRecord: 0.0ms)
11262
+  (0.1ms) begin transaction
11263
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34358"]]
11264
+  (18.4ms) commit transaction
11265
+  (0.1ms) begin transaction
11266
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36783"]]
11267
+  (19.7ms) commit transaction
11268
+ Processing by Api::UserController#update as HTML
11269
+ Parameters: {"uid"=>"a1s2d34358"}
11270
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34358' LIMIT 1
11271
+  (0.1ms) begin transaction
11272
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
11273
+ - signin
11274
+ - new permission
11275
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
11276
+  (16.9ms) commit transaction
11277
+ Completed 200 OK in 28.0ms (ActiveRecord: 17.4ms)
11278
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
11279
+  (0.1ms) begin transaction
11280
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38826"]]
11281
+  (16.3ms) commit transaction
11282
+  (0.1ms) begin transaction
11283
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37843"]]
11284
+  (15.0ms) commit transaction
11285
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
11286
+ Processing by Api::UserController#reauth as HTML
11287
+ Parameters: {"uid"=>"a1s2d38826"}
11288
+ Completed 403 Forbidden in 1.9ms (Views: 1.2ms | ActiveRecord: 0.0ms)
11289
+  (0.1ms) begin transaction
11290
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34427"]]
11291
+  (17.2ms) commit transaction
11292
+  (0.1ms) begin transaction
11293
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32990"]]
11294
+  (16.5ms) commit transaction
11295
+ Processing by Api::UserController#reauth as HTML
11296
+ Parameters: {"uid"=>"nonexistent-user"}
11297
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
11298
+ Completed 200 OK in 1.3ms (ActiveRecord: 0.2ms)
11299
+  (0.1ms) begin transaction
11300
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34929"]]
11301
+  (16.1ms) commit transaction
11302
+  (0.1ms) begin transaction
11303
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33257"]]
11304
+  (31.6ms) commit transaction
11305
+ Processing by Api::UserController#reauth as HTML
11306
+ Parameters: {"uid"=>"a1s2d34929"}
11307
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34929' LIMIT 1
11308
+  (0.0ms) begin transaction
11309
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
11310
+ - signin
11311
+ ' WHERE "users"."id" = 9
11312
+  (44.8ms) commit transaction
11313
+ Completed 200 OK in 50.5ms (ActiveRecord: 45.3ms)
11314
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
11315
+ Started GET "/" for 127.0.0.1 at 2013-11-27 18:59:54 +0000
11316
+ Processing by ExampleController#index as HTML
11317
+ Completed 200 OK in 2.4ms (Views: 2.0ms | ActiveRecord: 0.0ms)
11318
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:54 +0000
11319
+ Processing by ExampleController#restricted as HTML
11320
+ Authenticating with gds_sso strategy
11321
+ Completed in 3.1ms
11322
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:54 +0000
11323
+ Started GET "/auth/gds/callback?code=673b7f97392ff2060f3bbdb535164adc38205c59c39e39cfeea3ccf813f489ad&state=a2a49fbba042969a61dab7d0d030646cdb594ec6b9d4d46e" for 127.0.0.1 at 2013-11-27 18:59:55 +0000
11324
+ Processing by AuthenticationsController#callback as HTML
11325
+ Parameters: {"code"=>"673b7f97392ff2060f3bbdb535164adc38205c59c39e39cfeea3ccf813f489ad", "state"=>"a2a49fbba042969a61dab7d0d030646cdb594ec6b9d4d46e"}
11326
+ Authenticating with gds_sso strategy
11327
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11328
+  (0.1ms) begin transaction
11329
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
11330
+  (13.2ms) commit transaction
11331
+  (0.1ms) begin transaction
11332
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
11333
+ - signin
11334
+ ' WHERE "users"."id" = 11
11335
+  (10.7ms) commit transaction
11336
+ Redirected to http://www.example-client.com/restricted
11337
+ Completed 302 Found in 33.1ms (ActiveRecord: 24.7ms)
11338
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:56 +0000
11339
+ Processing by ExampleController#restricted as HTML
11340
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11341
+ Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11342
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:56 +0000
11343
+ Processing by ExampleController#restricted as HTML
11344
+ Authenticating with gds_sso strategy
11345
+ Completed in 0.4ms
11346
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:56 +0000
11347
+ Started GET "/auth/gds/callback?code=dbf8d5da44a451209fc5b272db66ca137aed5ef3dc1112f7e387573c9aa187d7&state=12c37aeb8354cd83a15d8c6ba42a8880d216113cecd61793" for 127.0.0.1 at 2013-11-27 18:59:56 +0000
11348
+ Processing by AuthenticationsController#callback as HTML
11349
+ Parameters: {"code"=>"dbf8d5da44a451209fc5b272db66ca137aed5ef3dc1112f7e387573c9aa187d7", "state"=>"12c37aeb8354cd83a15d8c6ba42a8880d216113cecd61793"}
11350
+ Authenticating with gds_sso strategy
11351
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11352
+  (0.1ms) begin transaction
11353
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11354
+ - signin
11355
+ ' WHERE "users"."id" = 11
11356
+  (13.5ms) commit transaction
11357
+  (0.1ms) begin transaction
11358
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11359
+ - signin
11360
+ ' WHERE "users"."id" = 11
11361
+  (9.9ms) commit transaction
11362
+ Redirected to http://www.example-client.com/restricted
11363
+ Completed 302 Found in 35.6ms (ActiveRecord: 24.2ms)
11364
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:56 +0000
11365
+ Processing by ExampleController#restricted as HTML
11366
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11367
+ Completed 200 OK in 1.9ms (Views: 0.5ms | ActiveRecord: 0.4ms)
11368
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:56 +0000
11369
+ Processing by ExampleController#restricted as HTML
11370
+ Authenticating with gds_sso strategy
11371
+ Completed in 0.2ms
11372
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:56 +0000
11373
+ Started GET "/auth/gds/callback?code=7655e545ab104b58094ba9b3d61fa6d0dbba8c46192cab6b300c6393e4c4a1a8&state=e352016d239e89cadd0c6cb4bcfa286b703e1f04492c8f41" for 127.0.0.1 at 2013-11-27 18:59:56 +0000
11374
+ Processing by AuthenticationsController#callback as HTML
11375
+ Parameters: {"code"=>"7655e545ab104b58094ba9b3d61fa6d0dbba8c46192cab6b300c6393e4c4a1a8", "state"=>"e352016d239e89cadd0c6cb4bcfa286b703e1f04492c8f41"}
11376
+ Authenticating with gds_sso strategy
11377
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11378
+  (0.0ms) begin transaction
11379
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11380
+ - signin
11381
+ ' WHERE "users"."id" = 11
11382
+  (25.9ms) commit transaction
11383
+  (0.1ms) begin transaction
11384
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11385
+ - signin
11386
+ ' WHERE "users"."id" = 11
11387
+  (21.3ms) commit transaction
11388
+ Redirected to http://www.example-client.com/restricted
11389
+ Completed 302 Found in 57.0ms (ActiveRecord: 47.8ms)
11390
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:57 +0000
11391
+ Processing by ExampleController#restricted as HTML
11392
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11393
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11394
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 18:59:57 +0000
11395
+ Processing by ExampleController#this_requires_signin_permission as HTML
11396
+ Authenticating with gds_sso strategy
11397
+ Completed in 0.8ms
11398
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:57 +0000
11399
+ Started GET "/auth/gds/callback?code=f86a7c92bc4147691fc876186deac9186e26cd255d7aae20b4bf4b8caffcf2df&state=0db0c750bb7816ce8d315acfc93d181fc4d11b9aa12a0646" for 127.0.0.1 at 2013-11-27 18:59:57 +0000
11400
+ Processing by AuthenticationsController#callback as HTML
11401
+ Parameters: {"code"=>"f86a7c92bc4147691fc876186deac9186e26cd255d7aae20b4bf4b8caffcf2df", "state"=>"0db0c750bb7816ce8d315acfc93d181fc4d11b9aa12a0646"}
11402
+ Authenticating with gds_sso strategy
11403
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11404
+  (0.1ms) begin transaction
11405
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11406
+ - signin
11407
+ ' WHERE "users"."id" = 11
11408
+  (12.4ms) commit transaction
11409
+  (0.0ms) begin transaction
11410
+  (1.1ms) UPDATE "users" SET "permissions" = '---
11411
+ - signin
11412
+ ' WHERE "users"."id" = 11
11413
+  (10.6ms) commit transaction
11414
+ Redirected to http://www.example-client.com/this_requires_signin_permission
11415
+ Completed 302 Found in 38.2ms (ActiveRecord: 24.6ms)
11416
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 18:59:57 +0000
11417
+ Processing by ExampleController#this_requires_signin_permission as HTML
11418
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11419
+ Completed 200 OK in 43.9ms (Views: 0.6ms | ActiveRecord: 0.2ms)
11420
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 18:59:57 +0000
11421
+ Processing by ExampleController#this_requires_signin_permission as HTML
11422
+ Authenticating with gds_sso strategy
11423
+ Completed in 0.2ms
11424
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:57 +0000
11425
+ Started GET "/auth/gds/callback?code=64f7355a60a37485af1362c5a738b610cd998648eb27bd3f2afbf3d7b9201d63&state=c634bcb73124dd73b91f616d810d35752fb09da163929462" for 127.0.0.1 at 2013-11-27 18:59:57 +0000
11426
+ Processing by AuthenticationsController#callback as HTML
11427
+ Parameters: {"code"=>"64f7355a60a37485af1362c5a738b610cd998648eb27bd3f2afbf3d7b9201d63", "state"=>"c634bcb73124dd73b91f616d810d35752fb09da163929462"}
11428
+ Authenticating with gds_sso strategy
11429
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11430
+  (0.1ms) begin transaction
11431
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11432
+ - signin
11433
+ ' WHERE "users"."id" = 11
11434
+  (12.1ms) commit transaction
11435
+  (0.1ms) begin transaction
11436
+  (0.3ms) UPDATE "users" SET "permissions" = '---
11437
+ - signin
11438
+ ' WHERE "users"."id" = 11
11439
+  (9.4ms) commit transaction
11440
+ Redirected to http://www.example-client.com/this_requires_signin_permission
11441
+ Completed 302 Found in 32.5ms (ActiveRecord: 22.3ms)
11442
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11443
+ Processing by ExampleController#this_requires_signin_permission as HTML
11444
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11445
+ Completed 200 OK in 3.6ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11446
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11447
+ Processing by ExampleController#restricted as HTML
11448
+ Authenticating with gds_sso strategy
11449
+ Completed in 0.3ms
11450
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11451
+ Started GET "/auth/gds/callback?code=963590224cebc7e1e7c83dab64bad5cff79c7fdd5269ff17b2fb9ee4755c3e75&state=42a8683dffebac44d7be3f4973f00f0d4c1ebf55ecc2ad04" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11452
+ Processing by AuthenticationsController#callback as HTML
11453
+ Parameters: {"code"=>"963590224cebc7e1e7c83dab64bad5cff79c7fdd5269ff17b2fb9ee4755c3e75", "state"=>"42a8683dffebac44d7be3f4973f00f0d4c1ebf55ecc2ad04"}
11454
+ Authenticating with gds_sso strategy
11455
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11456
+  (0.1ms) begin transaction
11457
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11458
+ - signin
11459
+ ' WHERE "users"."id" = 11
11460
+  (13.8ms) commit transaction
11461
+  (0.1ms) begin transaction
11462
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11463
+ - signin
11464
+ ' WHERE "users"."id" = 11
11465
+  (10.3ms) commit transaction
11466
+ Redirected to http://www.example-client.com/restricted
11467
+ Completed 302 Found in 35.2ms (ActiveRecord: 24.8ms)
11468
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11469
+ Processing by ExampleController#restricted as HTML
11470
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11471
+ Completed 200 OK in 1.5ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11472
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11473
+  (0.0ms) begin transaction
11474
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
11475
+ - signin
11476
+ ' WHERE "users"."id" = 11
11477
+  (10.7ms) commit transaction
11478
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11479
+ Processing by ExampleController#restricted as HTML
11480
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11481
+ Filter chain halted as :authenticate_user! rendered or redirected
11482
+ Completed 403 Forbidden in 3.7ms (Views: 2.5ms | ActiveRecord: 0.2ms)
11483
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11484
+ Processing by AuthenticationsController#sign_out as HTML
11485
+ Redirected to http://localhost:4567/users/sign_out
11486
+ Completed 302 Found in 0.6ms (ActiveRecord: 0.0ms)
11487
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11488
+ Processing by ExampleController#restricted as HTML
11489
+ Authenticating with gds_sso strategy
11490
+ Completed in 0.3ms
11491
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11492
+ Started GET "/auth/gds/callback?code=ac7e8d1445dc8bb54c1d5ae31bb1bc35a1a6c202d0a63a01699856363656b2ef&state=1dc5536a6228ad50decedfba5d95858328f9a68f172146aa" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11493
+ Processing by AuthenticationsController#callback as HTML
11494
+ Parameters: {"code"=>"ac7e8d1445dc8bb54c1d5ae31bb1bc35a1a6c202d0a63a01699856363656b2ef", "state"=>"1dc5536a6228ad50decedfba5d95858328f9a68f172146aa"}
11495
+ Authenticating with gds_sso strategy
11496
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11497
+  (0.0ms) begin transaction
11498
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11499
+ - signin
11500
+ ' WHERE "users"."id" = 11
11501
+  (13.1ms) commit transaction
11502
+  (0.1ms) begin transaction
11503
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
11504
+ - signin
11505
+ ' WHERE "users"."id" = 11
11506
+  (15.9ms) commit transaction
11507
+ Redirected to http://www.example-client.com/restricted
11508
+ Completed 302 Found in 39.4ms (ActiveRecord: 29.8ms)
11509
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:58 +0000
11510
+ Processing by ExampleController#restricted as HTML
11511
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11512
+ Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11513
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:59 +0000
11514
+ Processing by ExampleController#restricted as HTML
11515
+ Authenticating with gds_sso strategy
11516
+ Completed in 0.4ms
11517
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:59 +0000
11518
+ Started GET "/auth/gds/callback?code=c268d0e0ad4900608363184fa8a289f8dcbfc92edbe8f1cb76ff4193062b643f&state=576adb277b7ccc198e1f3796d99c1cceac0e3d6874f030e0" for 127.0.0.1 at 2013-11-27 18:59:59 +0000
11519
+ Processing by AuthenticationsController#callback as HTML
11520
+ Parameters: {"code"=>"c268d0e0ad4900608363184fa8a289f8dcbfc92edbe8f1cb76ff4193062b643f", "state"=>"576adb277b7ccc198e1f3796d99c1cceac0e3d6874f030e0"}
11521
+ Authenticating with gds_sso strategy
11522
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11523
+  (0.1ms) begin transaction
11524
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11525
+ - signin
11526
+ ' WHERE "users"."id" = 11
11527
+  (16.5ms) commit transaction
11528
+  (0.0ms) begin transaction
11529
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11530
+ - signin
11531
+ ' WHERE "users"."id" = 11
11532
+  (14.2ms) commit transaction
11533
+ Redirected to http://www.example-client.com/restricted
11534
+ Completed 302 Found in 41.7ms (ActiveRecord: 31.4ms)
11535
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:59 +0000
11536
+ Processing by ExampleController#restricted as HTML
11537
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11538
+ Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11539
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 15:04:59 +0000
11540
+ Processing by ExampleController#restricted as HTML
11541
+ Authenticating with gds_sso strategy
11542
+ Completed in 0.3ms
11543
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 15:04:59 +0000
11544
+ Started GET "/auth/gds/callback?code=2295f09c27df7d6de5222228a3b38f06284fb80a982e8a500c70e0055fd4da1c&state=7f9ddb599e3624e4a7387d3597ba97cd018877b6b2b89e15" for 127.0.0.1 at 2013-11-28 15:04:59 +0000
11545
+ Processing by AuthenticationsController#callback as HTML
11546
+ Parameters: {"code"=>"2295f09c27df7d6de5222228a3b38f06284fb80a982e8a500c70e0055fd4da1c", "state"=>"7f9ddb599e3624e4a7387d3597ba97cd018877b6b2b89e15"}
11547
+ Authenticating with gds_sso strategy
11548
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11549
+  (0.1ms) begin transaction
11550
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11551
+ - signin
11552
+ ' WHERE "users"."id" = 11
11553
+  (17.6ms) commit transaction
11554
+  (0.1ms) begin transaction
11555
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11556
+ - signin
11557
+ ' WHERE "users"."id" = 11
11558
+  (13.8ms) commit transaction
11559
+ Redirected to http://www.example-client.com/restricted
11560
+ Completed 302 Found in 41.3ms (ActiveRecord: 32.2ms)
11561
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 15:04:59 +0000
11562
+ Processing by ExampleController#restricted as HTML
11563
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11564
+ Completed 200 OK in 1.2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
11565
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 18:59:59 +0000
11566
+ Processing by ExampleController#restricted as HTML
11567
+ Authenticating with gds_sso strategy
11568
+ Completed in 0.3ms
11569
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-27 18:59:59 +0000
11570
+ Started GET "/auth/gds/callback?code=a2cbe0f27eadeb4dc39217db05c7767aef828d4e1f013ac5436b90b95021d526&state=2c0a58a5ea8dc389c8c82c17febcd9db7cb6f8da607e0f5e" for 127.0.0.1 at 2013-11-27 19:00:00 +0000
11571
+ Processing by AuthenticationsController#callback as HTML
11572
+ Parameters: {"code"=>"a2cbe0f27eadeb4dc39217db05c7767aef828d4e1f013ac5436b90b95021d526", "state"=>"2c0a58a5ea8dc389c8c82c17febcd9db7cb6f8da607e0f5e"}
11573
+ Authenticating with gds_sso strategy
11574
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11575
+  (0.1ms) begin transaction
11576
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11577
+ - signin
11578
+ ' WHERE "users"."id" = 11
11579
+  (24.3ms) commit transaction
11580
+  (0.1ms) begin transaction
11581
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11582
+ - signin
11583
+ ' WHERE "users"."id" = 11
11584
+  (19.6ms) commit transaction
11585
+ Redirected to http://www.example-client.com/restricted
11586
+ Completed 302 Found in 56.3ms (ActiveRecord: 44.6ms)
11587
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 19:00:00 +0000
11588
+ Processing by ExampleController#restricted as HTML
11589
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11590
+ Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11591
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 14:55:00 +0000
11592
+ Processing by ExampleController#restricted as HTML
11593
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11594
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
11595
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 19:00:00 +0000
11596
+ Processing by ExampleController#restricted as JSON
11597
+ Authenticating with gds_bearer_token strategy
11598
+ Completed in 8.8ms
11599
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-27 19:00:00 +0000
11600
+ Processing by ExampleController#restricted as JSON
11601
+ Authenticating with gds_bearer_token strategy
11602
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11603
+  (0.0ms) begin transaction
11604
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11605
+ - signin
11606
+ ' WHERE "users"."id" = 11
11607
+  (10.3ms) commit transaction
11608
+  (0.0ms) begin transaction
11609
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11610
+ - signin
11611
+ ' WHERE "users"."id" = 11
11612
+  (7.8ms) commit transaction
11613
+ Completed 200 OK in 62.1ms (Views: 0.3ms | ActiveRecord: 18.7ms)
11614
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-27 19:00:00 +0000
11615
+ Processing by ExampleController#this_requires_signin_permission as JSON
11616
+ Authenticating with gds_bearer_token strategy
11617
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11618
+  (0.1ms) begin transaction
11619
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11620
+ - signin
11621
+ ' WHERE "users"."id" = 11
11622
+  (22.7ms) commit transaction
11623
+  (0.1ms) begin transaction
11624
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11625
+ - signin
11626
+ ' WHERE "users"."id" = 11
11627
+  (20.1ms) commit transaction
11628
+ Completed 200 OK in 99.5ms (Views: 0.3ms | ActiveRecord: 43.6ms)
11629
+ Connecting to database specified by database.yml
11630
+  (0.8ms) select sqlite_version(*)
11631
+  (11.1ms) 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_slug" varchar(255))
11632
+  (4.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
11633
+  (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
11634
+  (0.1ms) begin transaction
11635
+ SQL (2.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36670"]]
11636
+  (6.4ms) commit transaction
11637
+  (0.1ms) begin transaction
11638
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35625"]]
11639
+  (9.0ms) commit transaction
11640
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
11641
+ Processing by Api::UserController#update as HTML
11642
+ Parameters: {"uid"=>"a1s2d36670"}
11643
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.0ms)
11644
+ Completed 403 Forbidden in 37.1ms (Views: 36.4ms | ActiveRecord: 0.0ms)
11645
+  (0.1ms) begin transaction
11646
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34888"]]
11647
+  (8.0ms) commit transaction
11648
+  (0.1ms) begin transaction
11649
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33431"]]
11650
+  (6.1ms) commit transaction
11651
+ Processing by Api::UserController#update as HTML
11652
+ Parameters: {"uid"=>"a1s2d34888"}
11653
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34888' LIMIT 1
11654
+  (0.1ms) begin transaction
11655
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
11656
+ - signin
11657
+ - new permission
11658
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
11659
+  (12.1ms) commit transaction
11660
+ Completed 200 OK in 23.2ms (ActiveRecord: 12.7ms)
11661
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
11662
+  (0.3ms) begin transaction
11663
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34557"]]
11664
+  (6.0ms) commit transaction
11665
+  (0.1ms) begin transaction
11666
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35860"]]
11667
+  (5.3ms) commit transaction
11668
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
11669
+ Processing by Api::UserController#reauth as HTML
11670
+ Parameters: {"uid"=>"a1s2d34557"}
11671
+ Completed 403 Forbidden in 1.9ms (Views: 1.1ms | ActiveRecord: 0.0ms)
11672
+  (0.1ms) begin transaction
11673
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31240"]]
11674
+  (11.0ms) commit transaction
11675
+  (0.1ms) begin transaction
11676
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3123"]]
11677
+  (13.3ms) commit transaction
11678
+ Processing by Api::UserController#reauth as HTML
11679
+ Parameters: {"uid"=>"nonexistent-user"}
11680
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
11681
+ Completed 200 OK in 1.3ms (ActiveRecord: 0.2ms)
11682
+  (0.1ms) begin transaction
11683
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31787"]]
11684
+  (14.4ms) commit transaction
11685
+  (0.1ms) begin transaction
11686
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34555"]]
11687
+  (13.6ms) commit transaction
11688
+ Processing by Api::UserController#reauth as HTML
11689
+ Parameters: {"uid"=>"a1s2d31787"}
11690
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31787' LIMIT 1
11691
+  (0.1ms) begin transaction
11692
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
11693
+ - signin
11694
+ ' WHERE "users"."id" = 9
11695
+  (13.3ms) commit transaction
11696
+ Completed 200 OK in 18.8ms (ActiveRecord: 13.7ms)
11697
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
11698
+ Started GET "/" for 127.0.0.1 at 2013-11-28 11:01:30 +0000
11699
+ Processing by ExampleController#index as HTML
11700
+ Completed 200 OK in 2.5ms (Views: 2.0ms | ActiveRecord: 0.0ms)
11701
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:30 +0000
11702
+ Processing by ExampleController#restricted as HTML
11703
+ Authenticating with gds_sso strategy
11704
+ Completed in 3.1ms
11705
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:30 +0000
11706
+ Started GET "/auth/gds/callback?code=2635d104a0e6cf2c33188b9d9e9dc20a1a2efbbe6e6a7464fd309be99fff9bd0&state=eec067008c27a59c55b31f94802f244b7ad08ad617fcecfc" for 127.0.0.1 at 2013-11-28 11:01:31 +0000
11707
+ Processing by AuthenticationsController#callback as HTML
11708
+ Parameters: {"code"=>"2635d104a0e6cf2c33188b9d9e9dc20a1a2efbbe6e6a7464fd309be99fff9bd0", "state"=>"eec067008c27a59c55b31f94802f244b7ad08ad617fcecfc"}
11709
+ Authenticating with gds_sso strategy
11710
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11711
+  (0.1ms) begin transaction
11712
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
11713
+  (12.7ms) commit transaction
11714
+  (0.1ms) begin transaction
11715
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
11716
+ - signin
11717
+ ' WHERE "users"."id" = 11
11718
+  (10.9ms) commit transaction
11719
+ Redirected to http://www.example-client.com/restricted
11720
+ Completed 302 Found in 33.0ms (ActiveRecord: 24.3ms)
11721
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:31 +0000
11722
+ Processing by ExampleController#restricted as HTML
11723
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11724
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11725
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:31 +0000
11726
+ Processing by ExampleController#restricted as HTML
11727
+ Authenticating with gds_sso strategy
11728
+ Completed in 0.5ms
11729
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:31 +0000
11730
+ Started GET "/auth/gds/callback?code=98866f74105c4eac62dd68c97c4c4b76310abc67fe043e881bca78944597c22e&state=a540ae995c63cf56efcb82102447dd4480c477c1bac8d860" for 127.0.0.1 at 2013-11-28 11:01:32 +0000
11731
+ Processing by AuthenticationsController#callback as HTML
11732
+ Parameters: {"code"=>"98866f74105c4eac62dd68c97c4c4b76310abc67fe043e881bca78944597c22e", "state"=>"a540ae995c63cf56efcb82102447dd4480c477c1bac8d860"}
11733
+ Authenticating with gds_sso strategy
11734
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11735
+  (0.1ms) begin transaction
11736
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11737
+ - signin
11738
+ ' WHERE "users"."id" = 11
11739
+  (11.7ms) commit transaction
11740
+  (0.1ms) begin transaction
11741
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11742
+ - signin
11743
+ ' WHERE "users"."id" = 11
11744
+  (9.5ms) commit transaction
11745
+ Redirected to http://www.example-client.com/restricted
11746
+ Completed 302 Found in 32.8ms (ActiveRecord: 22.0ms)
11747
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:32 +0000
11748
+ Processing by ExampleController#restricted as HTML
11749
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11750
+ Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11751
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:32 +0000
11752
+ Processing by ExampleController#restricted as HTML
11753
+ Authenticating with gds_sso strategy
11754
+ Completed in 0.2ms
11755
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:32 +0000
11756
+ Started GET "/auth/gds/callback?code=42429121cce039f0d33e619179085adf672805163c8259f7a19c7a50a1a5aa47&state=cc4aadb9cd2a15703b5ffa08f6fdd96ab96b4d72840f24c6" for 127.0.0.1 at 2013-11-28 11:01:32 +0000
11757
+ Processing by AuthenticationsController#callback as HTML
11758
+ Parameters: {"code"=>"42429121cce039f0d33e619179085adf672805163c8259f7a19c7a50a1a5aa47", "state"=>"cc4aadb9cd2a15703b5ffa08f6fdd96ab96b4d72840f24c6"}
11759
+ Authenticating with gds_sso strategy
11760
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11761
+  (0.0ms) begin transaction
11762
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11763
+ - signin
11764
+ ' WHERE "users"."id" = 11
11765
+  (13.2ms) commit transaction
11766
+  (0.1ms) begin transaction
11767
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11768
+ - signin
11769
+ ' WHERE "users"."id" = 11
11770
+  (10.0ms) commit transaction
11771
+ Redirected to http://www.example-client.com/restricted
11772
+ Completed 302 Found in 32.6ms (ActiveRecord: 23.8ms)
11773
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:32 +0000
11774
+ Processing by ExampleController#restricted as HTML
11775
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11776
+ Completed 200 OK in 1.2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
11777
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:01:32 +0000
11778
+ Processing by ExampleController#this_requires_signin_permission as HTML
11779
+ Authenticating with gds_sso strategy
11780
+ Completed in 0.8ms
11781
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:32 +0000
11782
+ Started GET "/auth/gds/callback?code=9675252970045e6a7745f123f1e30600810ab5d6f8c23299c4940c7d6f6e2ebb&state=d29c277bf767598a5c39a248779581c3400517c569305bcd" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11783
+ Processing by AuthenticationsController#callback as HTML
11784
+ Parameters: {"code"=>"9675252970045e6a7745f123f1e30600810ab5d6f8c23299c4940c7d6f6e2ebb", "state"=>"d29c277bf767598a5c39a248779581c3400517c569305bcd"}
11785
+ Authenticating with gds_sso strategy
11786
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11787
+  (0.1ms) begin transaction
11788
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11789
+ - signin
11790
+ ' WHERE "users"."id" = 11
11791
+  (12.2ms) commit transaction
11792
+  (0.1ms) begin transaction
11793
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11794
+ - signin
11795
+ ' WHERE "users"."id" = 11
11796
+  (10.5ms) commit transaction
11797
+ Redirected to http://www.example-client.com/this_requires_signin_permission
11798
+ Completed 302 Found in 35.3ms (ActiveRecord: 23.5ms)
11799
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11800
+ Processing by ExampleController#this_requires_signin_permission as HTML
11801
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11802
+ Completed 200 OK in 3.8ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11803
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11804
+ Processing by ExampleController#this_requires_signin_permission as HTML
11805
+ Authenticating with gds_sso strategy
11806
+ Completed in 0.2ms
11807
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11808
+ Started GET "/auth/gds/callback?code=128f68fd7a84b149cdc852ff9a13c6b9ced88c58a42208703db6326f5395ba31&state=950a31c9d7596e9be593f6723aa55dfc3a5abbe61071c0f6" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11809
+ Processing by AuthenticationsController#callback as HTML
11810
+ Parameters: {"code"=>"128f68fd7a84b149cdc852ff9a13c6b9ced88c58a42208703db6326f5395ba31", "state"=>"950a31c9d7596e9be593f6723aa55dfc3a5abbe61071c0f6"}
11811
+ Authenticating with gds_sso strategy
11812
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11813
+  (0.1ms) begin transaction
11814
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11815
+ - signin
11816
+ ' WHERE "users"."id" = 11
11817
+  (11.5ms) commit transaction
11818
+  (0.1ms) begin transaction
11819
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11820
+ - signin
11821
+ ' WHERE "users"."id" = 11
11822
+  (8.0ms) commit transaction
11823
+ Redirected to http://www.example-client.com/this_requires_signin_permission
11824
+ Completed 302 Found in 30.3ms (ActiveRecord: 20.2ms)
11825
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11826
+ Processing by ExampleController#this_requires_signin_permission as HTML
11827
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11828
+ Completed 200 OK in 3.4ms (Views: 0.3ms | ActiveRecord: 0.1ms)
11829
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11830
+ Processing by ExampleController#restricted as HTML
11831
+ Authenticating with gds_sso strategy
11832
+ Completed in 0.3ms
11833
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11834
+ Started GET "/auth/gds/callback?code=9ef35880a2ed779be23b81847c518722ac17a4f67df97c6abf13550febac898e&state=b8efa4b5ff7228f92a8b9435a653ada9e88f9a7da2c9c9d8" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11835
+ Processing by AuthenticationsController#callback as HTML
11836
+ Parameters: {"code"=>"9ef35880a2ed779be23b81847c518722ac17a4f67df97c6abf13550febac898e", "state"=>"b8efa4b5ff7228f92a8b9435a653ada9e88f9a7da2c9c9d8"}
11837
+ Authenticating with gds_sso strategy
11838
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11839
+  (0.1ms) begin transaction
11840
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11841
+ - signin
11842
+ ' WHERE "users"."id" = 11
11843
+  (8.7ms) commit transaction
11844
+  (0.1ms) begin transaction
11845
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11846
+ - signin
11847
+ ' WHERE "users"."id" = 11
11848
+  (5.7ms) commit transaction
11849
+ Redirected to http://www.example-client.com/restricted
11850
+ Completed 302 Found in 25.9ms (ActiveRecord: 15.3ms)
11851
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11852
+ Processing by ExampleController#restricted as HTML
11853
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11854
+ Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11855
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11856
+  (0.1ms) begin transaction
11857
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
11858
+ - signin
11859
+ ' WHERE "users"."id" = 11
11860
+  (7.8ms) commit transaction
11861
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:33 +0000
11862
+ Processing by ExampleController#restricted as HTML
11863
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11864
+ Filter chain halted as :authenticate_user! rendered or redirected
11865
+ Completed 403 Forbidden in 3.8ms (Views: 2.5ms | ActiveRecord: 0.2ms)
11866
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11867
+ Processing by AuthenticationsController#sign_out as HTML
11868
+ Redirected to http://localhost:4567/users/sign_out
11869
+ Completed 302 Found in 0.6ms (ActiveRecord: 0.0ms)
11870
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11871
+ Processing by ExampleController#restricted as HTML
11872
+ Authenticating with gds_sso strategy
11873
+ Completed in 0.4ms
11874
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11875
+ Started GET "/auth/gds/callback?code=69ba5fff276b81659b7576fa930faa8d823a80e2d480fc78e2366d17cf93a850&state=9cf63b4adb9113b23cc9882b6628f278173775e76ea2d301" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11876
+ Processing by AuthenticationsController#callback as HTML
11877
+ Parameters: {"code"=>"69ba5fff276b81659b7576fa930faa8d823a80e2d480fc78e2366d17cf93a850", "state"=>"9cf63b4adb9113b23cc9882b6628f278173775e76ea2d301"}
11878
+ Authenticating with gds_sso strategy
11879
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11880
+  (0.0ms) begin transaction
11881
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11882
+ - signin
11883
+ ' WHERE "users"."id" = 11
11884
+  (9.3ms) commit transaction
11885
+  (0.0ms) begin transaction
11886
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
11887
+ - signin
11888
+ ' WHERE "users"."id" = 11
11889
+  (7.3ms) commit transaction
11890
+ Redirected to http://www.example-client.com/restricted
11891
+ Completed 302 Found in 26.4ms (ActiveRecord: 17.3ms)
11892
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11893
+ Processing by ExampleController#restricted as HTML
11894
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11895
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11896
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11897
+ Processing by ExampleController#restricted as HTML
11898
+ Authenticating with gds_sso strategy
11899
+ Completed in 0.2ms
11900
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11901
+ Started GET "/auth/gds/callback?code=257276a9321fef3fcd54c1d19b77cdd38b8ac12c4664f4c64706a2977883b1cf&state=5fd2d4e5009a100293cade23a9418a09b4632226e1d9cd99" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11902
+ Processing by AuthenticationsController#callback as HTML
11903
+ Parameters: {"code"=>"257276a9321fef3fcd54c1d19b77cdd38b8ac12c4664f4c64706a2977883b1cf", "state"=>"5fd2d4e5009a100293cade23a9418a09b4632226e1d9cd99"}
11904
+ Authenticating with gds_sso strategy
11905
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11906
+  (0.1ms) begin transaction
11907
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11908
+ - signin
11909
+ ' WHERE "users"."id" = 11
11910
+  (15.4ms) commit transaction
11911
+  (0.1ms) begin transaction
11912
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11913
+ - signin
11914
+ ' WHERE "users"."id" = 11
11915
+  (7.7ms) commit transaction
11916
+ Redirected to http://www.example-client.com/restricted
11917
+ Completed 302 Found in 34.6ms (ActiveRecord: 23.8ms)
11918
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:34 +0000
11919
+ Processing by ExampleController#restricted as HTML
11920
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11921
+ Completed 200 OK in 1.5ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11922
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-29 07:06:34 +0000
11923
+ Processing by ExampleController#restricted as HTML
11924
+ Authenticating with gds_sso strategy
11925
+ Completed in 0.3ms
11926
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-29 07:06:34 +0000
11927
+ Started GET "/auth/gds/callback?code=75bf6d80d8e1ebcbe1e852d5b40e26e9e252d9e1db41189a8c18b93a3fa7a3f6&state=57b6cee750e0debbe511e8676e72ce364de23360a59be3b6" for 127.0.0.1 at 2013-11-29 07:06:34 +0000
11928
+ Processing by AuthenticationsController#callback as HTML
11929
+ Parameters: {"code"=>"75bf6d80d8e1ebcbe1e852d5b40e26e9e252d9e1db41189a8c18b93a3fa7a3f6", "state"=>"57b6cee750e0debbe511e8676e72ce364de23360a59be3b6"}
11930
+ Authenticating with gds_sso strategy
11931
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11932
+  (0.1ms) begin transaction
11933
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11934
+ - signin
11935
+ ' WHERE "users"."id" = 11
11936
+  (9.1ms) commit transaction
11937
+  (0.1ms) begin transaction
11938
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11939
+ - signin
11940
+ ' WHERE "users"."id" = 11
11941
+  (7.5ms) commit transaction
11942
+ Redirected to http://www.example-client.com/restricted
11943
+ Completed 302 Found in 27.1ms (ActiveRecord: 17.4ms)
11944
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-29 07:06:34 +0000
11945
+ Processing by ExampleController#restricted as HTML
11946
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11947
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11948
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:35 +0000
11949
+ Processing by ExampleController#restricted as HTML
11950
+ Authenticating with gds_sso strategy
11951
+ Completed in 0.3ms
11952
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:01:35 +0000
11953
+ Started GET "/auth/gds/callback?code=0a803980adf437465c3c33fbfcd56031caba3992a6243a510a226e7be375e597&state=bb0cd70ba3d3ade06b51cf937d8dc55e44a4039076b9d9e8" for 127.0.0.1 at 2013-11-28 11:01:35 +0000
11954
+ Processing by AuthenticationsController#callback as HTML
11955
+ Parameters: {"code"=>"0a803980adf437465c3c33fbfcd56031caba3992a6243a510a226e7be375e597", "state"=>"bb0cd70ba3d3ade06b51cf937d8dc55e44a4039076b9d9e8"}
11956
+ Authenticating with gds_sso strategy
11957
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11958
+  (0.1ms) begin transaction
11959
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11960
+ - signin
11961
+ ' WHERE "users"."id" = 11
11962
+  (10.3ms) commit transaction
11963
+  (0.0ms) begin transaction
11964
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11965
+ - signin
11966
+ ' WHERE "users"."id" = 11
11967
+  (17.4ms) commit transaction
11968
+ Redirected to http://www.example-client.com/restricted
11969
+ Completed 302 Found in 38.6ms (ActiveRecord: 28.4ms)
11970
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:35 +0000
11971
+ Processing by ExampleController#restricted as HTML
11972
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11973
+ Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11974
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-29 06:56:35 +0000
11975
+ Processing by ExampleController#restricted as HTML
11976
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11977
+ Completed 200 OK in 1.0ms (Views: 0.2ms | ActiveRecord: 0.1ms)
11978
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:35 +0000
11979
+ Processing by ExampleController#restricted as JSON
11980
+ Authenticating with gds_bearer_token strategy
11981
+ Completed in 8.2ms
11982
+ Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:01:35 +0000
11983
+ Processing by ExampleController#restricted as JSON
11984
+ Authenticating with gds_bearer_token strategy
11985
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
11986
+  (0.1ms) begin transaction
11987
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11988
+ - signin
11989
+ ' WHERE "users"."id" = 11
11990
+  (10.8ms) commit transaction
11991
+  (0.0ms) begin transaction
11992
+  (0.2ms) UPDATE "users" SET "permissions" = '---
11993
+ - signin
11994
+ ' WHERE "users"."id" = 11
11995
+  (9.2ms) commit transaction
11996
+ Completed 200 OK in 62.0ms (Views: 0.3ms | ActiveRecord: 20.7ms)
11997
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:01:35 +0000
11998
+ Processing by ExampleController#this_requires_signin_permission as JSON
11999
+ Authenticating with gds_bearer_token strategy
12000
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12001
+  (0.0ms) begin transaction
12002
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12003
+ - signin
12004
+ ' WHERE "users"."id" = 11
12005
+  (11.2ms) commit transaction
12006
+  (0.0ms) begin transaction
12007
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12008
+ - signin
12009
+ ' WHERE "users"."id" = 11
12010
+  (9.1ms) commit transaction
12011
+ Completed 200 OK in 64.9ms (Views: 0.3ms | ActiveRecord: 21.0ms)