gds-sso 3.0.3 → 3.0.4

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.
@@ -1,7 +1,7 @@
1
1
  class AuthenticationsController < ApplicationController
2
2
  before_filter :authenticate_user!, :only => :callback
3
3
  skip_before_filter :require_signin_permission!
4
- layout false, :only => :callback
4
+ layout false
5
5
 
6
6
  def callback
7
7
  redirect_to session["return_to"] || '/'
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "3.0.3"
3
+ VERSION = "3.0.4"
4
4
  end
5
5
  end
@@ -23847,3 +23847,1495 @@ Authenticating with gds_bearer_token strategy
23847
23847
  ' WHERE "users"."id" = 5
23848
23848
   (2.2ms) commit transaction
23849
23849
  Completed 200 OK in 48ms (Views: 0.7ms | ActiveRecord: 12.7ms)
23850
+ Connecting to database specified by database.yml
23851
+  (3.2ms) select sqlite_version(*)
23852
+  (17.3ms) DROP TABLE "users"
23853
+  (2.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) 
23854
+ Connecting to database specified by database.yml
23855
+  (3.1ms) select sqlite_version(*)
23856
+  (24.4ms) DROP TABLE "users"
23857
+  (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) 
23858
+  (0.1ms) begin transaction
23859
+ SQL (133.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37435"]]
23860
+  (3.1ms) commit transaction
23861
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
23862
+ Processing by Api::UserController#update as HTML
23863
+ Parameters: {"uid"=>"a1s2d37435"}
23864
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (79.0ms)
23865
+ Completed 403 Forbidden in 190ms (Views: 189.2ms | ActiveRecord: 0.0ms)
23866
+  (0.1ms) begin transaction
23867
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35897"]]
23868
+  (16.3ms) commit transaction
23869
+ Processing by Api::UserController#update as HTML
23870
+ Parameters: {"uid"=>"a1s2d35897"}
23871
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35897' LIMIT 1
23872
+  (0.1ms) begin transaction
23873
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
23874
+ - signin
23875
+ - new permission
23876
+ ' WHERE "users"."id" = 2
23877
+  (2.3ms) commit transaction
23878
+ Completed 200 OK in 22ms (ActiveRecord: 2.9ms)
23879
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
23880
+  (0.1ms) begin transaction
23881
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31660"]]
23882
+  (10.5ms) commit transaction
23883
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
23884
+ Processing by Api::UserController#reauth as HTML
23885
+ Parameters: {"uid"=>"a1s2d31660"}
23886
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
23887
+  (0.1ms) begin transaction
23888
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3314"]]
23889
+  (13.2ms) commit transaction
23890
+ Processing by Api::UserController#reauth as HTML
23891
+ Parameters: {"uid"=>"a1s2d3314"}
23892
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3314' LIMIT 1
23893
+  (0.1ms) begin transaction
23894
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
23895
+ - signin
23896
+ ' WHERE "users"."id" = 4
23897
+  (4.4ms) commit transaction
23898
+ Completed 200 OK in 7ms (ActiveRecord: 5.0ms)
23899
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
23900
+ Started GET "/" for 127.0.0.1 at 2013-03-19 12:37:06 +0000
23901
+ Processing by ExampleController#index as HTML
23902
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
23903
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:06 +0000
23904
+ Processing by ExampleController#restricted as HTML
23905
+ Authenticating with gds_sso strategy
23906
+ Completed in 13ms
23907
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:06 +0000
23908
+ Started GET "/auth/gds/callback?code=6addbf524130e2b68d5605e5c103221dedafb095e609506a2005e7aaeef503a1&state=95f0f42821b775bca58b6c9c75534c05ee0512e30109036f" for 127.0.0.1 at 2013-03-19 12:37:08 +0000
23909
+ Processing by AuthenticationsController#callback as HTML
23910
+ Parameters: {"code"=>"6addbf524130e2b68d5605e5c103221dedafb095e609506a2005e7aaeef503a1", "state"=>"95f0f42821b775bca58b6c9c75534c05ee0512e30109036f"}
23911
+ Authenticating with gds_sso strategy
23912
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
23913
+  (0.1ms) begin transaction
23914
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
23915
+  (7.2ms) commit transaction
23916
+  (0.0ms) begin transaction
23917
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
23918
+ - signin
23919
+ ' WHERE "users"."id" = 5
23920
+  (1.8ms) commit transaction
23921
+ Redirected to http://www.example-client.com/restricted
23922
+ Completed 302 Found in 16ms (ActiveRecord: 10.0ms)
23923
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:08 +0000
23924
+ Processing by ExampleController#restricted as HTML
23925
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
23926
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
23927
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:08 +0000
23928
+ Processing by ExampleController#restricted as HTML
23929
+ Authenticating with gds_sso strategy
23930
+ Completed in 0ms
23931
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:08 +0000
23932
+ Started GET "/auth/gds/callback?code=2d0f6f81c714bf59dbfdea21b44523e15213a5a61760d2f5a8d180085bdfd9b9&state=99c5029f989d58f02292fe8ac3ddae2551b6e41fea80ab35" for 127.0.0.1 at 2013-03-19 12:37:08 +0000
23933
+ Processing by AuthenticationsController#callback as HTML
23934
+ Parameters: {"code"=>"2d0f6f81c714bf59dbfdea21b44523e15213a5a61760d2f5a8d180085bdfd9b9", "state"=>"99c5029f989d58f02292fe8ac3ddae2551b6e41fea80ab35"}
23935
+ Authenticating with gds_sso strategy
23936
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
23937
+  (0.1ms) begin transaction
23938
+  (0.3ms) UPDATE "users" SET "permissions" = '---
23939
+ - signin
23940
+ ' WHERE "users"."id" = 5
23941
+  (7.5ms) commit transaction
23942
+  (0.1ms) begin transaction
23943
+  (0.3ms) UPDATE "users" SET "permissions" = '---
23944
+ - signin
23945
+ ' WHERE "users"."id" = 5
23946
+  (1.8ms) commit transaction
23947
+ Redirected to http://www.example-client.com/restricted
23948
+ Completed 302 Found in 16ms (ActiveRecord: 10.2ms)
23949
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:08 +0000
23950
+ Processing by ExampleController#restricted as HTML
23951
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
23952
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
23953
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:08 +0000
23954
+ Processing by ExampleController#restricted as HTML
23955
+ Authenticating with gds_sso strategy
23956
+ Completed in 0ms
23957
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:08 +0000
23958
+ Started GET "/auth/gds/callback?code=9a89bc19c72bb98f55906dd161ccb44a9949cc7fadc9717db09a4986c7a99ac4&state=58cf18d26ac7710f143615f17122d0377b302a6f833f7d17" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
23959
+ Processing by AuthenticationsController#callback as HTML
23960
+ Parameters: {"code"=>"9a89bc19c72bb98f55906dd161ccb44a9949cc7fadc9717db09a4986c7a99ac4", "state"=>"58cf18d26ac7710f143615f17122d0377b302a6f833f7d17"}
23961
+ Authenticating with gds_sso strategy
23962
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
23963
+  (0.1ms) begin transaction
23964
+  (0.3ms) UPDATE "users" SET "permissions" = '---
23965
+ - signin
23966
+ ' WHERE "users"."id" = 5
23967
+  (10.4ms) commit transaction
23968
+  (0.1ms) begin transaction
23969
+  (0.3ms) UPDATE "users" SET "permissions" = '---
23970
+ - signin
23971
+ ' WHERE "users"."id" = 5
23972
+  (2.4ms) commit transaction
23973
+ Redirected to http://www.example-client.com/restricted
23974
+ Completed 302 Found in 18ms (ActiveRecord: 13.7ms)
23975
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
23976
+ Processing by ExampleController#restricted as HTML
23977
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
23978
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
23979
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
23980
+ Processing by ExampleController#this_requires_signin_permission as HTML
23981
+ Authenticating with gds_sso strategy
23982
+ Completed in 1ms
23983
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
23984
+ Started GET "/auth/gds/callback?code=20b3b1d0e248c8d3caa9d0aea25ed60ebf2efa0f207c608bedc62a273bdae5b3&state=ef4284d9ad0dc043bd55c572c2b0335e85b9000a57e4e4bd" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
23985
+ Processing by AuthenticationsController#callback as HTML
23986
+ Parameters: {"code"=>"20b3b1d0e248c8d3caa9d0aea25ed60ebf2efa0f207c608bedc62a273bdae5b3", "state"=>"ef4284d9ad0dc043bd55c572c2b0335e85b9000a57e4e4bd"}
23987
+ Authenticating with gds_sso strategy
23988
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
23989
+  (0.1ms) begin transaction
23990
+  (0.3ms) UPDATE "users" SET "permissions" = '---
23991
+ - signin
23992
+ ' WHERE "users"."id" = 5
23993
+  (8.3ms) commit transaction
23994
+  (0.0ms) begin transaction
23995
+  (0.3ms) UPDATE "users" SET "permissions" = '---
23996
+ - signin
23997
+ ' WHERE "users"."id" = 5
23998
+  (1.8ms) commit transaction
23999
+ Redirected to http://www.example-client.com/this_requires_signin_permission
24000
+ Completed 302 Found in 16ms (ActiveRecord: 11.0ms)
24001
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
24002
+ Processing by ExampleController#this_requires_signin_permission as HTML
24003
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24004
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
24005
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
24006
+ Processing by ExampleController#this_requires_signin_permission as HTML
24007
+ Authenticating with gds_sso strategy
24008
+ Completed in 0ms
24009
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
24010
+ Started GET "/auth/gds/callback?code=54c61a7a8492a3a1cb98b52c205fea58289b597eba31d88cdf2ae3c35288a8f6&state=d63fdf87646b0ef9208374c5210cb7c049d4add4ad91b152" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
24011
+ Processing by AuthenticationsController#callback as HTML
24012
+ Parameters: {"code"=>"54c61a7a8492a3a1cb98b52c205fea58289b597eba31d88cdf2ae3c35288a8f6", "state"=>"d63fdf87646b0ef9208374c5210cb7c049d4add4ad91b152"}
24013
+ Authenticating with gds_sso strategy
24014
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24015
+  (0.1ms) begin transaction
24016
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24017
+ - signin
24018
+ ' WHERE "users"."id" = 5
24019
+  (9.9ms) commit transaction
24020
+  (0.0ms) begin transaction
24021
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24022
+ - signin
24023
+ ' WHERE "users"."id" = 5
24024
+  (2.2ms) commit transaction
24025
+ Redirected to http://www.example-client.com/this_requires_signin_permission
24026
+ Completed 302 Found in 17ms (ActiveRecord: 13.0ms)
24027
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
24028
+ Processing by ExampleController#this_requires_signin_permission as HTML
24029
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24030
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
24031
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
24032
+ Processing by ExampleController#restricted as HTML
24033
+ Authenticating with gds_sso strategy
24034
+ Completed in 0ms
24035
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:09 +0000
24036
+ Started GET "/auth/gds/callback?code=776823c1affcd01927e7eedf4814b38551eb9e33cd61d5dfb85acfa22db87759&state=54413fb98e8434403269a555bb27e0502595f8709419abee" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24037
+ Processing by AuthenticationsController#callback as HTML
24038
+ Parameters: {"code"=>"776823c1affcd01927e7eedf4814b38551eb9e33cd61d5dfb85acfa22db87759", "state"=>"54413fb98e8434403269a555bb27e0502595f8709419abee"}
24039
+ Authenticating with gds_sso strategy
24040
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24041
+  (0.1ms) begin transaction
24042
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24043
+ - signin
24044
+ ' WHERE "users"."id" = 5
24045
+  (7.1ms) commit transaction
24046
+  (0.1ms) begin transaction
24047
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24048
+ - signin
24049
+ ' WHERE "users"."id" = 5
24050
+  (1.8ms) commit transaction
24051
+ Redirected to http://www.example-client.com/restricted
24052
+ Completed 302 Found in 16ms (ActiveRecord: 10.0ms)
24053
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24054
+ Processing by ExampleController#restricted as HTML
24055
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24056
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
24057
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24058
+  (0.1ms) begin transaction
24059
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
24060
+ - signin
24061
+ ' WHERE "users"."id" = 5
24062
+  (1.9ms) commit transaction
24063
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24064
+ Processing by ExampleController#restricted as HTML
24065
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24066
+ Filter chain halted as :authenticate_user! rendered or redirected
24067
+ Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
24068
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24069
+ Processing by AuthenticationsController#sign_out as HTML
24070
+ Redirected to http://localhost:4567/users/sign_out
24071
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
24072
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24073
+ Processing by ExampleController#restricted as HTML
24074
+ Authenticating with gds_sso strategy
24075
+ Completed in 0ms
24076
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24077
+ Started GET "/auth/gds/callback?code=f8a11d249642ddea59bff7e6762c92eadbc7e06e533b52c4244701599494f466&state=1ea9aeb4d80eb9123b67588145dde0cc67ea1e16d7f58052" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24078
+ Processing by AuthenticationsController#callback as HTML
24079
+ Parameters: {"code"=>"f8a11d249642ddea59bff7e6762c92eadbc7e06e533b52c4244701599494f466", "state"=>"1ea9aeb4d80eb9123b67588145dde0cc67ea1e16d7f58052"}
24080
+ Authenticating with gds_sso strategy
24081
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24082
+  (0.1ms) begin transaction
24083
+  (0.5ms) UPDATE "users" SET "permissions" = '---
24084
+ - signin
24085
+ ' WHERE "users"."id" = 5
24086
+  (7.8ms) commit transaction
24087
+  (0.0ms) begin transaction
24088
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
24089
+ - signin
24090
+ ' WHERE "users"."id" = 5
24091
+  (1.9ms) commit transaction
24092
+ Redirected to http://www.example-client.com/restricted
24093
+ Completed 302 Found in 66ms (ActiveRecord: 10.9ms)
24094
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24095
+ Processing by ExampleController#restricted as HTML
24096
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24097
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
24098
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24099
+ Processing by ExampleController#restricted as HTML
24100
+ Authenticating with gds_sso strategy
24101
+ Completed in 0ms
24102
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24103
+ Started GET "/auth/gds/callback?code=62f47c51bcde036fb39e6cd504f445bb76adf2db1c404ce8d13630422a612625&state=eaaae64d00c48b62b6d28c8b42e251eccf2b6761c6497f1a" for 127.0.0.1 at 2013-03-19 12:37:10 +0000
24104
+ Processing by AuthenticationsController#callback as HTML
24105
+ Parameters: {"code"=>"62f47c51bcde036fb39e6cd504f445bb76adf2db1c404ce8d13630422a612625", "state"=>"eaaae64d00c48b62b6d28c8b42e251eccf2b6761c6497f1a"}
24106
+ Authenticating with gds_sso strategy
24107
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24108
+  (0.1ms) begin transaction
24109
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24110
+ - signin
24111
+ ' WHERE "users"."id" = 5
24112
+  (17.6ms) commit transaction
24113
+  (0.1ms) begin transaction
24114
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24115
+ - signin
24116
+ ' WHERE "users"."id" = 5
24117
+  (2.7ms) commit transaction
24118
+ Redirected to http://www.example-client.com/restricted
24119
+ Completed 302 Found in 27ms (ActiveRecord: 21.3ms)
24120
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24121
+ Processing by ExampleController#restricted as HTML
24122
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24123
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
24124
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 08:42:11 +0000
24125
+ Processing by ExampleController#restricted as HTML
24126
+ Authenticating with gds_sso strategy
24127
+ Completed in 0ms
24128
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 08:42:11 +0000
24129
+ Started GET "/auth/gds/callback?code=d8587b4b776f6f1739ac1933cd18544ffc3673edc9a9318032be4537483e29d4&state=e58a187c733b8650bace150b40026f3984da7d599634b42e" for 127.0.0.1 at 2013-03-20 08:42:11 +0000
24130
+ Processing by AuthenticationsController#callback as HTML
24131
+ Parameters: {"code"=>"d8587b4b776f6f1739ac1933cd18544ffc3673edc9a9318032be4537483e29d4", "state"=>"e58a187c733b8650bace150b40026f3984da7d599634b42e"}
24132
+ Authenticating with gds_sso strategy
24133
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24134
+  (0.1ms) begin transaction
24135
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24136
+ - signin
24137
+ ' WHERE "users"."id" = 5
24138
+  (8.2ms) commit transaction
24139
+  (0.1ms) begin transaction
24140
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24141
+ - signin
24142
+ ' WHERE "users"."id" = 5
24143
+  (2.5ms) commit transaction
24144
+ Redirected to http://www.example-client.com/restricted
24145
+ Completed 302 Found in 16ms (ActiveRecord: 11.7ms)
24146
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 08:42:11 +0000
24147
+ Processing by ExampleController#restricted as HTML
24148
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24149
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
24150
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24151
+ Processing by ExampleController#restricted as HTML
24152
+ Authenticating with gds_sso strategy
24153
+ Completed in 0ms
24154
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24155
+ Started GET "/auth/gds/callback?code=c67c5e89d1a1e512d897ff2fd0195c6c6f6a46a1d013e10d9cbd3345f1815143&state=9c73ca64f95ea256a0fc25f03d91efd87040bc09ce84c345" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24156
+ Processing by AuthenticationsController#callback as HTML
24157
+ Parameters: {"code"=>"c67c5e89d1a1e512d897ff2fd0195c6c6f6a46a1d013e10d9cbd3345f1815143", "state"=>"9c73ca64f95ea256a0fc25f03d91efd87040bc09ce84c345"}
24158
+ Authenticating with gds_sso strategy
24159
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24160
+  (0.1ms) begin transaction
24161
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24162
+ - signin
24163
+ ' WHERE "users"."id" = 5
24164
+  (7.4ms) commit transaction
24165
+  (0.1ms) begin transaction
24166
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24167
+ - signin
24168
+ ' WHERE "users"."id" = 5
24169
+  (1.9ms) commit transaction
24170
+ Redirected to http://www.example-client.com/restricted
24171
+ Completed 302 Found in 16ms (ActiveRecord: 10.3ms)
24172
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24173
+ Processing by ExampleController#restricted as HTML
24174
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24175
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
24176
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 08:32:11 +0000
24177
+ Processing by ExampleController#restricted as HTML
24178
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24179
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
24180
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24181
+ Processing by ExampleController#restricted as JSON
24182
+ Authenticating with gds_sso_api_access strategy
24183
+ Completed in 67ms
24184
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24185
+ Processing by ExampleController#restricted as JSON
24186
+ Authenticating with gds_sso_api_access strategy
24187
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
24188
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24189
+ Processing by ExampleController#this_requires_signin_permission as JSON
24190
+ Authenticating with gds_sso_api_access strategy
24191
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
24192
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24193
+ Processing by ExampleController#restricted as JSON
24194
+ Authenticating with gds_bearer_token strategy
24195
+ Completed in 11ms
24196
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 12:37:11 +0000
24197
+ Processing by ExampleController#restricted as JSON
24198
+ Authenticating with gds_bearer_token strategy
24199
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24200
+  (0.1ms) begin transaction
24201
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24202
+ - signin
24203
+ ' WHERE "users"."id" = 5
24204
+  (9.6ms) commit transaction
24205
+  (0.1ms) begin transaction
24206
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24207
+ - signin
24208
+ ' WHERE "users"."id" = 5
24209
+  (2.6ms) commit transaction
24210
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 13.1ms)
24211
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 12:37:12 +0000
24212
+ Processing by ExampleController#this_requires_signin_permission as JSON
24213
+ Authenticating with gds_bearer_token strategy
24214
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24215
+  (0.1ms) begin transaction
24216
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24217
+ - signin
24218
+ ' WHERE "users"."id" = 5
24219
+  (9.2ms) commit transaction
24220
+  (0.1ms) begin transaction
24221
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24222
+ - signin
24223
+ ' WHERE "users"."id" = 5
24224
+  (2.6ms) commit transaction
24225
+ Completed 200 OK in 48ms (Views: 0.7ms | ActiveRecord: 12.8ms)
24226
+ Connecting to database specified by database.yml
24227
+  (3.2ms) select sqlite_version(*)
24228
+  (8.5ms) DROP TABLE "users"
24229
+  (2.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text) 
24230
+  (0.1ms) begin transaction
24231
+ SQL (96.1ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33745"]]
24232
+  (7.4ms) commit transaction
24233
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
24234
+ Processing by Api::UserController#update as HTML
24235
+ Parameters: {"uid"=>"a1s2d33745"}
24236
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (80.4ms)
24237
+ Completed 403 Forbidden in 198ms (Views: 187.1ms | ActiveRecord: 0.0ms)
24238
+  (0.1ms) begin transaction
24239
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38067"]]
24240
+  (2.1ms) commit transaction
24241
+ Processing by Api::UserController#update as HTML
24242
+ Parameters: {"uid"=>"a1s2d38067"}
24243
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38067' LIMIT 1
24244
+  (0.1ms) begin transaction
24245
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
24246
+ - signin
24247
+ - new permission
24248
+ ' WHERE "users"."id" = 2
24249
+  (14.3ms) commit transaction
24250
+ Completed 200 OK in 24ms (ActiveRecord: 15.0ms)
24251
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
24252
+  (0.1ms) begin transaction
24253
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37151"]]
24254
+  (5.2ms) commit transaction
24255
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
24256
+ Processing by Api::UserController#reauth as HTML
24257
+ Parameters: {"uid"=>"a1s2d37151"}
24258
+ Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
24259
+  (0.1ms) begin transaction
24260
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34418"]]
24261
+  (9.0ms) commit transaction
24262
+ Processing by Api::UserController#reauth as HTML
24263
+ Parameters: {"uid"=>"a1s2d34418"}
24264
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34418' LIMIT 1
24265
+  (0.1ms) begin transaction
24266
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
24267
+ - signin
24268
+ ' WHERE "users"."id" = 4
24269
+  (4.6ms) commit transaction
24270
+ Completed 200 OK in 8ms (ActiveRecord: 5.2ms)
24271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
24272
+ Started GET "/" for 127.0.0.1 at 2013-03-19 17:10:49 +0000
24273
+ Processing by ExampleController#index as HTML
24274
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
24275
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:49 +0000
24276
+ Processing by ExampleController#restricted as HTML
24277
+ Authenticating with gds_sso strategy
24278
+ Completed in 13ms
24279
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:49 +0000
24280
+ Started GET "/auth/gds/callback?code=2bccf7a96ca123bf91debb9458314c0891583f8d6c21f2f84b97bce27d22e6bc&state=63008468bb7945e29bad21dfb7c55f20a4340bfe53f999af" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24281
+ Processing by AuthenticationsController#callback as HTML
24282
+ Parameters: {"code"=>"2bccf7a96ca123bf91debb9458314c0891583f8d6c21f2f84b97bce27d22e6bc", "state"=>"63008468bb7945e29bad21dfb7c55f20a4340bfe53f999af"}
24283
+ Authenticating with gds_sso strategy
24284
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24285
+  (0.1ms) begin transaction
24286
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
24287
+  (6.9ms) commit transaction
24288
+  (0.0ms) begin transaction
24289
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
24290
+ - signin
24291
+ ' WHERE "users"."id" = 5
24292
+  (2.5ms) commit transaction
24293
+ Redirected to http://www.example-client.com/restricted
24294
+ Completed 302 Found in 16ms (ActiveRecord: 10.3ms)
24295
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24296
+ Processing by ExampleController#restricted as HTML
24297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24298
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
24299
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24300
+ Processing by ExampleController#restricted as HTML
24301
+ Authenticating with gds_sso strategy
24302
+ Completed in 0ms
24303
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24304
+ Started GET "/auth/gds/callback?code=0a9a9e786fdce322f158975fd9d6845a5e3d5323c624f2a71817509b1f501b9e&state=6eebfaf5af93a84d0af0f08c4800c463bc0f407ca7e87a2e" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24305
+ Processing by AuthenticationsController#callback as HTML
24306
+ Parameters: {"code"=>"0a9a9e786fdce322f158975fd9d6845a5e3d5323c624f2a71817509b1f501b9e", "state"=>"6eebfaf5af93a84d0af0f08c4800c463bc0f407ca7e87a2e"}
24307
+ Authenticating with gds_sso strategy
24308
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24309
+  (0.1ms) begin transaction
24310
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24311
+ - signin
24312
+ ' WHERE "users"."id" = 5
24313
+  (6.9ms) commit transaction
24314
+  (0.1ms) begin transaction
24315
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24316
+ - signin
24317
+ ' WHERE "users"."id" = 5
24318
+  (1.9ms) commit transaction
24319
+ Redirected to http://www.example-client.com/restricted
24320
+ Completed 302 Found in 16ms (ActiveRecord: 9.9ms)
24321
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24322
+ Processing by ExampleController#restricted as HTML
24323
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24324
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
24325
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24326
+ Processing by ExampleController#restricted as HTML
24327
+ Authenticating with gds_sso strategy
24328
+ Completed in 0ms
24329
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24330
+ Started GET "/auth/gds/callback?code=004d3ad7b79df09929d968de1655338159814cc4406f9860e4955bdd059091a1&state=ac1745494352a3ed9630fb56878e62a22abc66facb8909ef" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24331
+ Processing by AuthenticationsController#callback as HTML
24332
+ Parameters: {"code"=>"004d3ad7b79df09929d968de1655338159814cc4406f9860e4955bdd059091a1", "state"=>"ac1745494352a3ed9630fb56878e62a22abc66facb8909ef"}
24333
+ Authenticating with gds_sso strategy
24334
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24335
+  (0.1ms) begin transaction
24336
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24337
+ - signin
24338
+ ' WHERE "users"."id" = 5
24339
+  (9.7ms) commit transaction
24340
+  (0.0ms) begin transaction
24341
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24342
+ - signin
24343
+ ' WHERE "users"."id" = 5
24344
+  (2.6ms) commit transaction
24345
+ Redirected to http://www.example-client.com/restricted
24346
+ Completed 302 Found in 18ms (ActiveRecord: 13.1ms)
24347
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:51 +0000
24348
+ Processing by ExampleController#restricted as HTML
24349
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24350
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
24351
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24352
+ Processing by ExampleController#this_requires_signin_permission as HTML
24353
+ Authenticating with gds_sso strategy
24354
+ Completed in 1ms
24355
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24356
+ Started GET "/auth/gds/callback?code=78c4672ec18508790886efdf6def5d68474a5a5163fad7d9a65bb61761d799dd&state=359837fb4c731c8602324e86fefd7bf17ac5f36119d49060" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24357
+ Processing by AuthenticationsController#callback as HTML
24358
+ Parameters: {"code"=>"78c4672ec18508790886efdf6def5d68474a5a5163fad7d9a65bb61761d799dd", "state"=>"359837fb4c731c8602324e86fefd7bf17ac5f36119d49060"}
24359
+ Authenticating with gds_sso strategy
24360
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24361
+  (0.1ms) begin transaction
24362
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24363
+ - signin
24364
+ ' WHERE "users"."id" = 5
24365
+  (8.6ms) commit transaction
24366
+  (0.0ms) begin transaction
24367
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24368
+ - signin
24369
+ ' WHERE "users"."id" = 5
24370
+  (1.9ms) commit transaction
24371
+ Redirected to http://www.example-client.com/this_requires_signin_permission
24372
+ Completed 302 Found in 17ms (ActiveRecord: 11.4ms)
24373
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24374
+ Processing by ExampleController#this_requires_signin_permission as HTML
24375
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24376
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
24377
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24378
+ Processing by ExampleController#this_requires_signin_permission as HTML
24379
+ Authenticating with gds_sso strategy
24380
+ Completed in 0ms
24381
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24382
+ Started GET "/auth/gds/callback?code=b80af2b3334ffa1109a7664183b09162f630b09eb0d19f63b610537e97f5470a&state=05ad56fa890172a41dc1db35847e29c682db2ef4e51bd997" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24383
+ Processing by AuthenticationsController#callback as HTML
24384
+ Parameters: {"code"=>"b80af2b3334ffa1109a7664183b09162f630b09eb0d19f63b610537e97f5470a", "state"=>"05ad56fa890172a41dc1db35847e29c682db2ef4e51bd997"}
24385
+ Authenticating with gds_sso strategy
24386
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24387
+  (0.1ms) begin transaction
24388
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24389
+ - signin
24390
+ ' WHERE "users"."id" = 5
24391
+  (10.1ms) commit transaction
24392
+  (0.0ms) begin transaction
24393
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24394
+ - signin
24395
+ ' WHERE "users"."id" = 5
24396
+  (1.8ms) commit transaction
24397
+ Redirected to http://www.example-client.com/this_requires_signin_permission
24398
+ Completed 302 Found in 17ms (ActiveRecord: 12.7ms)
24399
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24400
+ Processing by ExampleController#this_requires_signin_permission as HTML
24401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24402
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
24403
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24404
+ Processing by ExampleController#restricted as HTML
24405
+ Authenticating with gds_sso strategy
24406
+ Completed in 0ms
24407
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:52 +0000
24408
+ Started GET "/auth/gds/callback?code=257435962eb44e4b7984ceaab001e557f1909d27fba094b15346388adca47308&state=cbd4747225b063aaff561bf4f2ae479dfc9fe2d9d0016659" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24409
+ Processing by AuthenticationsController#callback as HTML
24410
+ Parameters: {"code"=>"257435962eb44e4b7984ceaab001e557f1909d27fba094b15346388adca47308", "state"=>"cbd4747225b063aaff561bf4f2ae479dfc9fe2d9d0016659"}
24411
+ Authenticating with gds_sso strategy
24412
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24413
+  (0.1ms) begin transaction
24414
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24415
+ - signin
24416
+ ' WHERE "users"."id" = 5
24417
+  (7.5ms) commit transaction
24418
+  (0.1ms) begin transaction
24419
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24420
+ - signin
24421
+ ' WHERE "users"."id" = 5
24422
+  (1.8ms) commit transaction
24423
+ Redirected to http://www.example-client.com/restricted
24424
+ Completed 302 Found in 16ms (ActiveRecord: 10.4ms)
24425
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24426
+ Processing by ExampleController#restricted as HTML
24427
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24428
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
24429
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24430
+  (0.1ms) begin transaction
24431
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
24432
+ - signin
24433
+ ' WHERE "users"."id" = 5
24434
+  (1.9ms) commit transaction
24435
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24436
+ Processing by ExampleController#restricted as HTML
24437
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24438
+ Filter chain halted as :authenticate_user! rendered or redirected
24439
+ Completed 403 Forbidden in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)
24440
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24441
+ Processing by AuthenticationsController#sign_out as HTML
24442
+ Redirected to http://localhost:4567/users/sign_out
24443
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
24444
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24445
+ Processing by ExampleController#restricted as HTML
24446
+ Authenticating with gds_sso strategy
24447
+ Completed in 0ms
24448
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24449
+ Started GET "/auth/gds/callback?code=5ef06d65cdac349bad4c4b70f8066d7b45ca505991fdcab97f77e1fdc95606cd&state=ba3ef20f69bad276eaa2906af967346cbb4de8f0d3df074e" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24450
+ Processing by AuthenticationsController#callback as HTML
24451
+ Parameters: {"code"=>"5ef06d65cdac349bad4c4b70f8066d7b45ca505991fdcab97f77e1fdc95606cd", "state"=>"ba3ef20f69bad276eaa2906af967346cbb4de8f0d3df074e"}
24452
+ Authenticating with gds_sso strategy
24453
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24454
+  (0.2ms) begin transaction
24455
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24456
+ - signin
24457
+ ' WHERE "users"."id" = 5
24458
+  (9.6ms) commit transaction
24459
+  (0.0ms) begin transaction
24460
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
24461
+ - signin
24462
+ ' WHERE "users"."id" = 5
24463
+  (2.0ms) commit transaction
24464
+ Redirected to http://www.example-client.com/restricted
24465
+ Completed 302 Found in 17ms (ActiveRecord: 13.0ms)
24466
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24467
+ Processing by ExampleController#restricted as HTML
24468
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24469
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
24470
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24471
+ Processing by ExampleController#restricted as HTML
24472
+ Authenticating with gds_sso strategy
24473
+ Completed in 0ms
24474
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24475
+ Started GET "/auth/gds/callback?code=c30c3e0ceda503681070b31a1f69788f14c180b684b60166c593fad47e98a905&state=4122412cba0c08e302cb799f39438e756c7cf650891bac81" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24476
+ Processing by AuthenticationsController#callback as HTML
24477
+ Parameters: {"code"=>"c30c3e0ceda503681070b31a1f69788f14c180b684b60166c593fad47e98a905", "state"=>"4122412cba0c08e302cb799f39438e756c7cf650891bac81"}
24478
+ Authenticating with gds_sso strategy
24479
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24480
+  (0.1ms) begin transaction
24481
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24482
+ - signin
24483
+ ' WHERE "users"."id" = 5
24484
+  (7.7ms) commit transaction
24485
+  (0.1ms) begin transaction
24486
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24487
+ - signin
24488
+ ' WHERE "users"."id" = 5
24489
+  (2.6ms) commit transaction
24490
+ Redirected to http://www.example-client.com/restricted
24491
+ Completed 302 Found in 17ms (ActiveRecord: 11.5ms)
24492
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:53 +0000
24493
+ Processing by ExampleController#restricted as HTML
24494
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24495
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
24496
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 13:15:53 +0000
24497
+ Processing by ExampleController#restricted as HTML
24498
+ Authenticating with gds_sso strategy
24499
+ Completed in 0ms
24500
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 13:15:53 +0000
24501
+ Started GET "/auth/gds/callback?code=3b4ae18daf45299a61ad059c8f748145a164953f63818ea6fc7d3f78b855c17f&state=a3e605b5daa69077518a4913d0cc91ecce9dce3fad49c6da" for 127.0.0.1 at 2013-03-20 13:15:54 +0000
24502
+ Processing by AuthenticationsController#callback as HTML
24503
+ Parameters: {"code"=>"3b4ae18daf45299a61ad059c8f748145a164953f63818ea6fc7d3f78b855c17f", "state"=>"a3e605b5daa69077518a4913d0cc91ecce9dce3fad49c6da"}
24504
+ Authenticating with gds_sso strategy
24505
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24506
+  (0.1ms) begin transaction
24507
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24508
+ - signin
24509
+ ' WHERE "users"."id" = 5
24510
+  (8.8ms) commit transaction
24511
+  (0.1ms) begin transaction
24512
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24513
+ - signin
24514
+ ' WHERE "users"."id" = 5
24515
+  (2.5ms) commit transaction
24516
+ Redirected to http://www.example-client.com/restricted
24517
+ Completed 302 Found in 17ms (ActiveRecord: 12.2ms)
24518
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 13:15:54 +0000
24519
+ Processing by ExampleController#restricted as HTML
24520
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24521
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
24522
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24523
+ Processing by ExampleController#restricted as HTML
24524
+ Authenticating with gds_sso strategy
24525
+ Completed in 0ms
24526
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24527
+ Started GET "/auth/gds/callback?code=79da7693c7c295c5e2465757b0982a1afa4831f5ac6d3ff6211caa16c91b446e&state=7853b7c26347ba3621cac1b1e5bb3e3ddc23c5899b082095" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24528
+ Processing by AuthenticationsController#callback as HTML
24529
+ Parameters: {"code"=>"79da7693c7c295c5e2465757b0982a1afa4831f5ac6d3ff6211caa16c91b446e", "state"=>"7853b7c26347ba3621cac1b1e5bb3e3ddc23c5899b082095"}
24530
+ Authenticating with gds_sso strategy
24531
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24532
+  (0.1ms) begin transaction
24533
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24534
+ - signin
24535
+ ' WHERE "users"."id" = 5
24536
+  (8.3ms) commit transaction
24537
+  (0.0ms) begin transaction
24538
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24539
+ - signin
24540
+ ' WHERE "users"."id" = 5
24541
+  (1.9ms) commit transaction
24542
+ Redirected to http://www.example-client.com/restricted
24543
+ Completed 302 Found in 17ms (ActiveRecord: 11.1ms)
24544
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24545
+ Processing by ExampleController#restricted as HTML
24546
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24547
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
24548
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 13:05:54 +0000
24549
+ Processing by ExampleController#restricted as HTML
24550
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24551
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
24552
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24553
+ Processing by ExampleController#restricted as JSON
24554
+ Authenticating with gds_sso_api_access strategy
24555
+ Completed in 69ms
24556
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24557
+ Processing by ExampleController#restricted as JSON
24558
+ Authenticating with gds_sso_api_access strategy
24559
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
24560
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24561
+ Processing by ExampleController#this_requires_signin_permission as JSON
24562
+ Authenticating with gds_sso_api_access strategy
24563
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
24564
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24565
+ Processing by ExampleController#restricted as JSON
24566
+ Authenticating with gds_bearer_token strategy
24567
+ Completed in 10ms
24568
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24569
+ Processing by ExampleController#restricted as JSON
24570
+ Authenticating with gds_bearer_token strategy
24571
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24572
+  (0.1ms) begin transaction
24573
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24574
+ - signin
24575
+ ' WHERE "users"."id" = 5
24576
+  (9.2ms) commit transaction
24577
+  (0.1ms) begin transaction
24578
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24579
+ - signin
24580
+ ' WHERE "users"."id" = 5
24581
+  (2.4ms) commit transaction
24582
+ Completed 200 OK in 55ms (Views: 0.6ms | ActiveRecord: 12.6ms)
24583
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-19 17:10:54 +0000
24584
+ Processing by ExampleController#this_requires_signin_permission as JSON
24585
+ Authenticating with gds_bearer_token strategy
24586
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24587
+  (0.1ms) begin transaction
24588
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24589
+ - signin
24590
+ ' WHERE "users"."id" = 5
24591
+  (10.3ms) commit transaction
24592
+  (0.1ms) begin transaction
24593
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24594
+ - signin
24595
+ ' WHERE "users"."id" = 5
24596
+  (1.8ms) commit transaction
24597
+ Completed 200 OK in 57ms (Views: 0.7ms | ActiveRecord: 13.2ms)
24598
+ Connecting to database specified by database.yml
24599
+  (3.0ms) select sqlite_version(*)
24600
+  (14.0ms) DROP TABLE "users"
24601
+  (2.2ms) 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) 
24602
+  (0.1ms) begin transaction
24603
+ SQL (33.5ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37676"]]
24604
+  (3.5ms) commit transaction
24605
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
24606
+ Processing by Api::UserController#update as HTML
24607
+ Parameters: {"uid"=>"a1s2d37676"}
24608
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (24.2ms)
24609
+ Completed 403 Forbidden in 184ms (Views: 183.6ms | ActiveRecord: 0.0ms)
24610
+  (0.1ms) begin transaction
24611
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32592"]]
24612
+  (3.6ms) commit transaction
24613
+ Processing by Api::UserController#update as HTML
24614
+ Parameters: {"uid"=>"a1s2d32592"}
24615
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32592' LIMIT 1
24616
+  (0.1ms) begin transaction
24617
+  (0.5ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
24618
+ - signin
24619
+ - new permission
24620
+ ' WHERE "users"."id" = 2
24621
+  (11.1ms) commit transaction
24622
+ Completed 200 OK in 40ms (ActiveRecord: 11.8ms)
24623
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
24624
+  (0.1ms) begin transaction
24625
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32658"]]
24626
+  (14.1ms) commit transaction
24627
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
24628
+ Processing by Api::UserController#reauth as HTML
24629
+ Parameters: {"uid"=>"a1s2d32658"}
24630
+ Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
24631
+  (0.1ms) begin transaction
24632
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33247"]]
24633
+  (8.3ms) commit transaction
24634
+ Processing by Api::UserController#reauth as HTML
24635
+ Parameters: {"uid"=>"a1s2d33247"}
24636
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33247' LIMIT 1
24637
+  (0.0ms) begin transaction
24638
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
24639
+ - signin
24640
+ ' WHERE "users"."id" = 4
24641
+  (23.3ms) commit transaction
24642
+ Completed 200 OK in 26ms (ActiveRecord: 23.8ms)
24643
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
24644
+ Started GET "/" for 127.0.0.1 at 2013-03-20 15:08:16 +0000
24645
+ Processing by ExampleController#index as HTML
24646
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
24647
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:16 +0000
24648
+ Processing by ExampleController#restricted as HTML
24649
+ Authenticating with gds_sso strategy
24650
+ Completed in 122ms
24651
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:16 +0000
24652
+ Started GET "/auth/gds/callback?code=1e01bf0d8ba9fa2bd435c0b47bd3c24f66a60ab07c1d71cef766f48113676e0d&state=fb020d6d529739ff75569291da571b497ce14da5183e23a9" for 127.0.0.1 at 2013-03-20 15:08:17 +0000
24653
+ Processing by AuthenticationsController#callback as HTML
24654
+ Parameters: {"code"=>"1e01bf0d8ba9fa2bd435c0b47bd3c24f66a60ab07c1d71cef766f48113676e0d", "state"=>"fb020d6d529739ff75569291da571b497ce14da5183e23a9"}
24655
+ Authenticating with gds_sso strategy
24656
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24657
+  (0.1ms) begin transaction
24658
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
24659
+  (6.2ms) commit transaction
24660
+  (0.1ms) begin transaction
24661
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
24662
+ - signin
24663
+ ' WHERE "users"."id" = 5
24664
+  (1.8ms) commit transaction
24665
+ Redirected to http://www.example-client.com/restricted
24666
+ Completed 302 Found in 15ms (ActiveRecord: 9.0ms)
24667
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24668
+ Processing by ExampleController#restricted as HTML
24669
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24670
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
24671
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24672
+ Processing by ExampleController#restricted as HTML
24673
+ Authenticating with gds_sso strategy
24674
+ Completed in 0ms
24675
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24676
+ Started GET "/auth/gds/callback?code=200c7ad945edfa8315ec3ee3e035ff83b17bc8de8c866eeea37f9eb6d3681bbf&state=789ae442b58f28c1ed0eecd3ffd8ad4f6243a492a28c17d9" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24677
+ Processing by AuthenticationsController#callback as HTML
24678
+ Parameters: {"code"=>"200c7ad945edfa8315ec3ee3e035ff83b17bc8de8c866eeea37f9eb6d3681bbf", "state"=>"789ae442b58f28c1ed0eecd3ffd8ad4f6243a492a28c17d9"}
24679
+ Authenticating with gds_sso strategy
24680
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24681
+  (0.1ms) begin transaction
24682
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24683
+ - signin
24684
+ ' WHERE "users"."id" = 5
24685
+  (7.6ms) commit transaction
24686
+  (0.1ms) begin transaction
24687
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24688
+ - signin
24689
+ ' WHERE "users"."id" = 5
24690
+  (1.9ms) commit transaction
24691
+ Redirected to http://www.example-client.com/restricted
24692
+ Completed 302 Found in 16ms (ActiveRecord: 10.5ms)
24693
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24694
+ Processing by ExampleController#restricted as HTML
24695
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24696
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
24697
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24698
+ Processing by ExampleController#restricted as HTML
24699
+ Authenticating with gds_sso strategy
24700
+ Completed in 0ms
24701
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24702
+ Started GET "/auth/gds/callback?code=bd7cf25f19652251bccd2aa290f4055ab5a0eaddf347b1249beafa7fec1d9cf9&state=bc1513cee8f6b6f2e44fbd475911bad76ddfb76fe9311d91" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24703
+ Processing by AuthenticationsController#callback as HTML
24704
+ Parameters: {"code"=>"bd7cf25f19652251bccd2aa290f4055ab5a0eaddf347b1249beafa7fec1d9cf9", "state"=>"bc1513cee8f6b6f2e44fbd475911bad76ddfb76fe9311d91"}
24705
+ Authenticating with gds_sso strategy
24706
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24707
+  (0.1ms) begin transaction
24708
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24709
+ - signin
24710
+ ' WHERE "users"."id" = 5
24711
+  (8.7ms) commit transaction
24712
+  (0.1ms) begin transaction
24713
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24714
+ - signin
24715
+ ' WHERE "users"."id" = 5
24716
+  (2.4ms) commit transaction
24717
+ Redirected to http://www.example-client.com/restricted
24718
+ Completed 302 Found in 18ms (ActiveRecord: 12.0ms)
24719
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24720
+ Processing by ExampleController#restricted as HTML
24721
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24722
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
24723
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24724
+ Processing by ExampleController#this_requires_signin_permission as HTML
24725
+ Authenticating with gds_sso strategy
24726
+ Completed in 1ms
24727
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:18 +0000
24728
+ Started GET "/auth/gds/callback?code=4214deb72648cc166165cac38146f2a31ab61eede9d1b10af2f64b17d55696a5&state=9ee49aa352dd1abb54d9a00c32bcc4f0e6add9948efe2b22" for 127.0.0.1 at 2013-03-20 15:08:19 +0000
24729
+ Processing by AuthenticationsController#callback as HTML
24730
+ Parameters: {"code"=>"4214deb72648cc166165cac38146f2a31ab61eede9d1b10af2f64b17d55696a5", "state"=>"9ee49aa352dd1abb54d9a00c32bcc4f0e6add9948efe2b22"}
24731
+ Authenticating with gds_sso strategy
24732
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24733
+  (0.1ms) begin transaction
24734
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24735
+ - signin
24736
+ ' WHERE "users"."id" = 5
24737
+  (7.9ms) commit transaction
24738
+  (0.0ms) begin transaction
24739
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24740
+ - signin
24741
+ ' WHERE "users"."id" = 5
24742
+  (2.1ms) commit transaction
24743
+ Redirected to http://www.example-client.com/this_requires_signin_permission
24744
+ Completed 302 Found in 17ms (ActiveRecord: 11.1ms)
24745
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:08:19 +0000
24746
+ Processing by ExampleController#this_requires_signin_permission as HTML
24747
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24748
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
24749
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:08:19 +0000
24750
+ Processing by ExampleController#this_requires_signin_permission as HTML
24751
+ Authenticating with gds_sso strategy
24752
+ Completed in 0ms
24753
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:19 +0000
24754
+ Started GET "/auth/gds/callback?code=c651c3c70ca1b99e515054af73c2327de7dd2122a909f48e827ca2df3a2d60e5&state=2d7cd7a534edfbcad1de072a6813f0223a920d6a1330cd28" for 127.0.0.1 at 2013-03-20 15:08:19 +0000
24755
+ Processing by AuthenticationsController#callback as HTML
24756
+ Parameters: {"code"=>"c651c3c70ca1b99e515054af73c2327de7dd2122a909f48e827ca2df3a2d60e5", "state"=>"2d7cd7a534edfbcad1de072a6813f0223a920d6a1330cd28"}
24757
+ Authenticating with gds_sso strategy
24758
+ User Load (68.9ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24759
+  (9.5ms) begin transaction
24760
+  (10.8ms) UPDATE "users" SET "permissions" = '---
24761
+ - signin
24762
+ ' WHERE "users"."id" = 5
24763
+  (10.2ms) commit transaction
24764
+  (0.0ms) begin transaction
24765
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24766
+ - signin
24767
+ ' WHERE "users"."id" = 5
24768
+  (1.8ms) commit transaction
24769
+ Redirected to http://www.example-client.com/this_requires_signin_permission
24770
+ Completed 302 Found in 107ms (ActiveRecord: 101.3ms)
24771
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:08:19 +0000
24772
+ Processing by ExampleController#this_requires_signin_permission as HTML
24773
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24774
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
24775
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:19 +0000
24776
+ Processing by ExampleController#restricted as HTML
24777
+ Authenticating with gds_sso strategy
24778
+ Completed in 0ms
24779
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:19 +0000
24780
+ Started GET "/auth/gds/callback?code=f788a33f51f54a575876c94f4fd48224b6e68ce329a2c43bf351342581d1b455&state=471e023b65b0b289acf696baf926ce759b1369120c1f25e4" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24781
+ Processing by AuthenticationsController#callback as HTML
24782
+ Parameters: {"code"=>"f788a33f51f54a575876c94f4fd48224b6e68ce329a2c43bf351342581d1b455", "state"=>"471e023b65b0b289acf696baf926ce759b1369120c1f25e4"}
24783
+ Authenticating with gds_sso strategy
24784
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24785
+  (0.1ms) begin transaction
24786
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24787
+ - signin
24788
+ ' WHERE "users"."id" = 5
24789
+  (6.7ms) commit transaction
24790
+  (0.1ms) begin transaction
24791
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24792
+ - signin
24793
+ ' WHERE "users"."id" = 5
24794
+  (1.8ms) commit transaction
24795
+ Redirected to http://www.example-client.com/restricted
24796
+ Completed 302 Found in 15ms (ActiveRecord: 9.5ms)
24797
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24798
+ Processing by ExampleController#restricted as HTML
24799
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24800
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
24801
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24802
+  (0.0ms) begin transaction
24803
+  (0.4ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
24804
+ - signin
24805
+ ' WHERE "users"."id" = 5
24806
+  (2.1ms) commit transaction
24807
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24808
+ Processing by ExampleController#restricted as HTML
24809
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24810
+ Filter chain halted as :authenticate_user! rendered or redirected
24811
+ Completed 403 Forbidden in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
24812
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24813
+ Processing by AuthenticationsController#sign_out as HTML
24814
+ Redirected to http://localhost:4567/users/sign_out
24815
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
24816
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24817
+ Processing by ExampleController#restricted as HTML
24818
+ Authenticating with gds_sso strategy
24819
+ Completed in 0ms
24820
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24821
+ Started GET "/auth/gds/callback?code=675faf583b19b7a70ce7fc62eae662c3121f3aa8d827dbe7c949f219624ef022&state=c788c6c27e4893e529fadeacc1d77f9d0c691bbb0d360e55" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24822
+ Processing by AuthenticationsController#callback as HTML
24823
+ Parameters: {"code"=>"675faf583b19b7a70ce7fc62eae662c3121f3aa8d827dbe7c949f219624ef022", "state"=>"c788c6c27e4893e529fadeacc1d77f9d0c691bbb0d360e55"}
24824
+ Authenticating with gds_sso strategy
24825
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24826
+  (0.1ms) begin transaction
24827
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24828
+ - signin
24829
+ ' WHERE "users"."id" = 5
24830
+  (9.3ms) commit transaction
24831
+  (0.1ms) begin transaction
24832
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
24833
+ - signin
24834
+ ' WHERE "users"."id" = 5
24835
+  (2.0ms) commit transaction
24836
+ Redirected to http://www.example-client.com/restricted
24837
+ Completed 302 Found in 17ms (ActiveRecord: 12.3ms)
24838
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24839
+ Processing by ExampleController#restricted as HTML
24840
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24841
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
24842
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24843
+ Processing by ExampleController#restricted as HTML
24844
+ Authenticating with gds_sso strategy
24845
+ Completed in 0ms
24846
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24847
+ Started GET "/auth/gds/callback?code=b815327d3dbe547f3c088e5a326d90c75e99e46d2991fadf7200f33e4199b053&state=b90c426bde70537e81b5cbc7a693585949ca30e3cf9695c6" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24848
+ Processing by AuthenticationsController#callback as HTML
24849
+ Parameters: {"code"=>"b815327d3dbe547f3c088e5a326d90c75e99e46d2991fadf7200f33e4199b053", "state"=>"b90c426bde70537e81b5cbc7a693585949ca30e3cf9695c6"}
24850
+ Authenticating with gds_sso strategy
24851
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24852
+  (0.1ms) begin transaction
24853
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24854
+ - signin
24855
+ ' WHERE "users"."id" = 5
24856
+  (6.7ms) commit transaction
24857
+  (0.1ms) begin transaction
24858
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24859
+ - signin
24860
+ ' WHERE "users"."id" = 5
24861
+  (1.8ms) commit transaction
24862
+ Redirected to http://www.example-client.com/restricted
24863
+ Completed 302 Found in 16ms (ActiveRecord: 9.4ms)
24864
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:20 +0000
24865
+ Processing by ExampleController#restricted as HTML
24866
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24867
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
24868
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-21 11:13:20 +0000
24869
+ Processing by ExampleController#restricted as HTML
24870
+ Authenticating with gds_sso strategy
24871
+ Completed in 0ms
24872
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-21 11:13:20 +0000
24873
+ Started GET "/auth/gds/callback?code=69529418aa5c5e30a3abe9b4df39c55018a655b5c2237a4b9380a465b3b618ad&state=33190733896c63082de79825e0965ef4cc3221072de6a192" for 127.0.0.1 at 2013-03-21 11:13:20 +0000
24874
+ Processing by AuthenticationsController#callback as HTML
24875
+ Parameters: {"code"=>"69529418aa5c5e30a3abe9b4df39c55018a655b5c2237a4b9380a465b3b618ad", "state"=>"33190733896c63082de79825e0965ef4cc3221072de6a192"}
24876
+ Authenticating with gds_sso strategy
24877
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24878
+  (0.3ms) begin transaction
24879
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24880
+ - signin
24881
+ ' WHERE "users"."id" = 5
24882
+  (8.9ms) commit transaction
24883
+  (0.1ms) begin transaction
24884
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24885
+ - signin
24886
+ ' WHERE "users"."id" = 5
24887
+  (2.5ms) commit transaction
24888
+ Redirected to http://www.example-client.com/restricted
24889
+ Completed 302 Found in 19ms (ActiveRecord: 12.8ms)
24890
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-21 11:13:21 +0000
24891
+ Processing by ExampleController#restricted as HTML
24892
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24893
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
24894
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24895
+ Processing by ExampleController#restricted as HTML
24896
+ Authenticating with gds_sso strategy
24897
+ Completed in 0ms
24898
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24899
+ Started GET "/auth/gds/callback?code=4264ff83edca094782aafeb28af4ef307b074362ded5d770c3cee5a12127fca0&state=8a2941d44b202f1a4573d0fe7ef5fd28f5590923d8c45833" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24900
+ Processing by AuthenticationsController#callback as HTML
24901
+ Parameters: {"code"=>"4264ff83edca094782aafeb28af4ef307b074362ded5d770c3cee5a12127fca0", "state"=>"8a2941d44b202f1a4573d0fe7ef5fd28f5590923d8c45833"}
24902
+ Authenticating with gds_sso strategy
24903
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24904
+  (0.1ms) begin transaction
24905
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24906
+ - signin
24907
+ ' WHERE "users"."id" = 5
24908
+  (8.2ms) commit transaction
24909
+  (0.0ms) begin transaction
24910
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24911
+ - signin
24912
+ ' WHERE "users"."id" = 5
24913
+  (1.8ms) commit transaction
24914
+ Redirected to http://www.example-client.com/restricted
24915
+ Completed 302 Found in 17ms (ActiveRecord: 11.1ms)
24916
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24917
+ Processing by ExampleController#restricted as HTML
24918
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24919
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
24920
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-21 11:03:21 +0000
24921
+ Processing by ExampleController#restricted as HTML
24922
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24923
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
24924
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24925
+ Processing by ExampleController#restricted as JSON
24926
+ Authenticating with gds_sso_api_access strategy
24927
+ Completed in 14ms
24928
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24929
+ Processing by ExampleController#restricted as JSON
24930
+ Authenticating with gds_sso_api_access strategy
24931
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
24932
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24933
+ Processing by ExampleController#this_requires_signin_permission as JSON
24934
+ Authenticating with gds_sso_api_access strategy
24935
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
24936
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24937
+ Processing by ExampleController#restricted as JSON
24938
+ Authenticating with gds_bearer_token strategy
24939
+ Completed in 9ms
24940
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24941
+ Processing by ExampleController#restricted as JSON
24942
+ Authenticating with gds_bearer_token strategy
24943
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24944
+  (0.1ms) begin transaction
24945
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24946
+ - signin
24947
+ ' WHERE "users"."id" = 5
24948
+  (10.0ms) commit transaction
24949
+  (0.1ms) begin transaction
24950
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24951
+ - signin
24952
+ ' WHERE "users"."id" = 5
24953
+  (1.8ms) commit transaction
24954
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 12.8ms)
24955
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:08:21 +0000
24956
+ Processing by ExampleController#this_requires_signin_permission as JSON
24957
+ Authenticating with gds_bearer_token strategy
24958
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
24959
+  (0.1ms) begin transaction
24960
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24961
+ - signin
24962
+ ' WHERE "users"."id" = 5
24963
+  (9.6ms) commit transaction
24964
+  (0.1ms) begin transaction
24965
+  (0.3ms) UPDATE "users" SET "permissions" = '---
24966
+ - signin
24967
+ ' WHERE "users"."id" = 5
24968
+  (2.2ms) commit transaction
24969
+ Completed 200 OK in 58ms (Views: 0.6ms | ActiveRecord: 12.7ms)
24970
+ Connecting to database specified by database.yml
24971
+  (3.1ms) select sqlite_version(*)
24972
+  (23.4ms) DROP TABLE "users"
24973
+  (2.2ms) 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) 
24974
+  (0.1ms) begin transaction
24975
+ SQL (18.6ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32782"]]
24976
+  (17.4ms) commit transaction
24977
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
24978
+ Processing by Api::UserController#update as HTML
24979
+ Parameters: {"uid"=>"a1s2d32782"}
24980
+ Rendered /mnt/jenkins/workspace/gds-sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (4.4ms)
24981
+ Completed 403 Forbidden in 120ms (Views: 119.4ms | ActiveRecord: 0.0ms)
24982
+  (0.1ms) begin transaction
24983
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34624"]]
24984
+  (12.2ms) commit transaction
24985
+ Processing by Api::UserController#update as HTML
24986
+ Parameters: {"uid"=>"a1s2d34624"}
24987
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34624' LIMIT 1
24988
+  (0.1ms) begin transaction
24989
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
24990
+ - signin
24991
+ - new permission
24992
+ ' WHERE "users"."id" = 2
24993
+  (2.1ms) commit transaction
24994
+ Completed 200 OK in 21ms (ActiveRecord: 2.7ms)
24995
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
24996
+  (0.1ms) begin transaction
24997
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35452"]]
24998
+  (12.0ms) commit transaction
24999
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
25000
+ Processing by Api::UserController#reauth as HTML
25001
+ Parameters: {"uid"=>"a1s2d35452"}
25002
+ Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
25003
+  (0.1ms) begin transaction
25004
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31189"]]
25005
+  (12.3ms) commit transaction
25006
+ Processing by Api::UserController#reauth as HTML
25007
+ Parameters: {"uid"=>"a1s2d31189"}
25008
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d31189' LIMIT 1
25009
+  (0.0ms) begin transaction
25010
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
25011
+ - signin
25012
+ ' WHERE "users"."id" = 4
25013
+  (4.9ms) commit transaction
25014
+ Completed 200 OK in 8ms (ActiveRecord: 5.5ms)
25015
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
25016
+ Started GET "/" for 127.0.0.1 at 2013-03-20 15:10:36 +0000
25017
+ Processing by ExampleController#index as HTML
25018
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
25019
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:36 +0000
25020
+ Processing by ExampleController#restricted as HTML
25021
+ Authenticating with gds_sso strategy
25022
+ Completed in 65ms
25023
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:36 +0000
25024
+ Started GET "/auth/gds/callback?code=7ca4ef2acd4b31abc9899c677c63de770d4a68b578102c2e99eeaff438f2a6c2&state=731445e30be8d99b417072527156612e6e2b8fe874572978" for 127.0.0.1 at 2013-03-20 15:10:37 +0000
25025
+ Processing by AuthenticationsController#callback as HTML
25026
+ Parameters: {"code"=>"7ca4ef2acd4b31abc9899c677c63de770d4a68b578102c2e99eeaff438f2a6c2", "state"=>"731445e30be8d99b417072527156612e6e2b8fe874572978"}
25027
+ Authenticating with gds_sso strategy
25028
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25029
+  (0.1ms) begin transaction
25030
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
25031
+  (6.9ms) commit transaction
25032
+  (0.0ms) begin transaction
25033
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
25034
+ - signin
25035
+ ' WHERE "users"."id" = 5
25036
+  (1.9ms) commit transaction
25037
+ Redirected to http://www.example-client.com/restricted
25038
+ Completed 302 Found in 16ms (ActiveRecord: 9.8ms)
25039
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:37 +0000
25040
+ Processing by ExampleController#restricted as HTML
25041
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25042
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
25043
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:37 +0000
25044
+ Processing by ExampleController#restricted as HTML
25045
+ Authenticating with gds_sso strategy
25046
+ Completed in 0ms
25047
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:37 +0000
25048
+ Started GET "/auth/gds/callback?code=60c12961d4833fe84231ac57f1b2ceba3cda557e57f55cb0157da0ccea069a49&state=bafdc90b84c9ed1da7aa612104fbb60c4e9e20b68277766b" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25049
+ Processing by AuthenticationsController#callback as HTML
25050
+ Parameters: {"code"=>"60c12961d4833fe84231ac57f1b2ceba3cda557e57f55cb0157da0ccea069a49", "state"=>"bafdc90b84c9ed1da7aa612104fbb60c4e9e20b68277766b"}
25051
+ Authenticating with gds_sso strategy
25052
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25053
+  (0.1ms) begin transaction
25054
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25055
+ - signin
25056
+ ' WHERE "users"."id" = 5
25057
+  (6.7ms) commit transaction
25058
+  (0.0ms) begin transaction
25059
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25060
+ - signin
25061
+ ' WHERE "users"."id" = 5
25062
+  (2.6ms) commit transaction
25063
+ Redirected to http://www.example-client.com/restricted
25064
+ Completed 302 Found in 16ms (ActiveRecord: 10.3ms)
25065
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25066
+ Processing by ExampleController#restricted as HTML
25067
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25068
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
25069
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25070
+ Processing by ExampleController#restricted as HTML
25071
+ Authenticating with gds_sso strategy
25072
+ Completed in 0ms
25073
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25074
+ Started GET "/auth/gds/callback?code=047fef260691ee04e08949305ea90f79032fe9dccc3e369ac7bb71d1abb27f4b&state=165a5ba1bda8167c773c7b82f336e3808d6ebdb6beeb1da5" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25075
+ Processing by AuthenticationsController#callback as HTML
25076
+ Parameters: {"code"=>"047fef260691ee04e08949305ea90f79032fe9dccc3e369ac7bb71d1abb27f4b", "state"=>"165a5ba1bda8167c773c7b82f336e3808d6ebdb6beeb1da5"}
25077
+ Authenticating with gds_sso strategy
25078
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25079
+  (0.1ms) begin transaction
25080
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25081
+ - signin
25082
+ ' WHERE "users"."id" = 5
25083
+  (9.2ms) commit transaction
25084
+  (0.0ms) begin transaction
25085
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25086
+ - signin
25087
+ ' WHERE "users"."id" = 5
25088
+  (1.9ms) commit transaction
25089
+ Redirected to http://www.example-client.com/restricted
25090
+ Completed 302 Found in 16ms (ActiveRecord: 12.0ms)
25091
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25092
+ Processing by ExampleController#restricted as HTML
25093
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25094
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
25095
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25096
+ Processing by ExampleController#this_requires_signin_permission as HTML
25097
+ Authenticating with gds_sso strategy
25098
+ Completed in 1ms
25099
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25100
+ Started GET "/auth/gds/callback?code=d74f2cb75b28005246a86f48db803ae80851adcbd4eb003c31562585ed1cc1bf&state=4303a4fea7929a3e37bd23c9fc5ae09088a61ef7be29a62c" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25101
+ Processing by AuthenticationsController#callback as HTML
25102
+ Parameters: {"code"=>"d74f2cb75b28005246a86f48db803ae80851adcbd4eb003c31562585ed1cc1bf", "state"=>"4303a4fea7929a3e37bd23c9fc5ae09088a61ef7be29a62c"}
25103
+ Authenticating with gds_sso strategy
25104
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25105
+  (0.1ms) begin transaction
25106
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25107
+ - signin
25108
+ ' WHERE "users"."id" = 5
25109
+  (6.8ms) commit transaction
25110
+  (0.1ms) begin transaction
25111
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25112
+ - signin
25113
+ ' WHERE "users"."id" = 5
25114
+  (2.3ms) commit transaction
25115
+ Redirected to http://www.example-client.com/this_requires_signin_permission
25116
+ Completed 302 Found in 16ms (ActiveRecord: 10.1ms)
25117
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25118
+ Processing by ExampleController#this_requires_signin_permission as HTML
25119
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25120
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
25121
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25122
+ Processing by ExampleController#this_requires_signin_permission as HTML
25123
+ Authenticating with gds_sso strategy
25124
+ Completed in 0ms
25125
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:38 +0000
25126
+ Started GET "/auth/gds/callback?code=087f14dfe277ccab328ac5de6044043ebbfb40781313b5ae8ccb2a6347f1fed9&state=a802a5354e34145791b45c146110313835cdaedcf5a101e6" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25127
+ Processing by AuthenticationsController#callback as HTML
25128
+ Parameters: {"code"=>"087f14dfe277ccab328ac5de6044043ebbfb40781313b5ae8ccb2a6347f1fed9", "state"=>"a802a5354e34145791b45c146110313835cdaedcf5a101e6"}
25129
+ Authenticating with gds_sso strategy
25130
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25131
+  (0.1ms) begin transaction
25132
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25133
+ - signin
25134
+ ' WHERE "users"."id" = 5
25135
+  (9.0ms) commit transaction
25136
+  (0.1ms) begin transaction
25137
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25138
+ - signin
25139
+ ' WHERE "users"."id" = 5
25140
+  (2.0ms) commit transaction
25141
+ Redirected to http://www.example-client.com/this_requires_signin_permission
25142
+ Completed 302 Found in 17ms (ActiveRecord: 11.9ms)
25143
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25144
+ Processing by ExampleController#this_requires_signin_permission as HTML
25145
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25146
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
25147
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25148
+ Processing by ExampleController#restricted as HTML
25149
+ Authenticating with gds_sso strategy
25150
+ Completed in 0ms
25151
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25152
+ Started GET "/auth/gds/callback?code=8fbbf6b0a729ff050b2d952d633619f6017ffd25c682c7a6085faa7b36339499&state=4dc46e3258883cdfb754a469d998e0e1680ef9500aeefec6" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25153
+ Processing by AuthenticationsController#callback as HTML
25154
+ Parameters: {"code"=>"8fbbf6b0a729ff050b2d952d633619f6017ffd25c682c7a6085faa7b36339499", "state"=>"4dc46e3258883cdfb754a469d998e0e1680ef9500aeefec6"}
25155
+ Authenticating with gds_sso strategy
25156
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25157
+  (0.1ms) begin transaction
25158
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25159
+ - signin
25160
+ ' WHERE "users"."id" = 5
25161
+  (7.9ms) commit transaction
25162
+  (0.0ms) begin transaction
25163
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25164
+ - signin
25165
+ ' WHERE "users"."id" = 5
25166
+  (2.1ms) commit transaction
25167
+ Redirected to http://www.example-client.com/restricted
25168
+ Completed 302 Found in 17ms (ActiveRecord: 11.0ms)
25169
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25170
+ Processing by ExampleController#restricted as HTML
25171
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25172
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
25173
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25174
+  (0.0ms) begin transaction
25175
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
25176
+ - signin
25177
+ ' WHERE "users"."id" = 5
25178
+  (2.0ms) commit transaction
25179
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25180
+ Processing by ExampleController#restricted as HTML
25181
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25182
+ Filter chain halted as :authenticate_user! rendered or redirected
25183
+ Completed 403 Forbidden in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
25184
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25185
+ Processing by AuthenticationsController#sign_out as HTML
25186
+ Redirected to http://localhost:4567/users/sign_out
25187
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
25188
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25189
+ Processing by ExampleController#restricted as HTML
25190
+ Authenticating with gds_sso strategy
25191
+ Completed in 0ms
25192
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25193
+ Started GET "/auth/gds/callback?code=442e4d096351dab580df3940d453cdde7e828134f1b984662e30652b9c46793c&state=a402b718b2a15060fa602c133cf0b7e718acf55e722ee3a0" for 127.0.0.1 at 2013-03-20 15:10:39 +0000
25194
+ Processing by AuthenticationsController#callback as HTML
25195
+ Parameters: {"code"=>"442e4d096351dab580df3940d453cdde7e828134f1b984662e30652b9c46793c", "state"=>"a402b718b2a15060fa602c133cf0b7e718acf55e722ee3a0"}
25196
+ Authenticating with gds_sso strategy
25197
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25198
+  (0.1ms) begin transaction
25199
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25200
+ - signin
25201
+ ' WHERE "users"."id" = 5
25202
+  (8.8ms) commit transaction
25203
+  (0.0ms) begin transaction
25204
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
25205
+ - signin
25206
+ ' WHERE "users"."id" = 5
25207
+  (1.9ms) commit transaction
25208
+ Redirected to http://www.example-client.com/restricted
25209
+ Completed 302 Found in 16ms (ActiveRecord: 11.6ms)
25210
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25211
+ Processing by ExampleController#restricted as HTML
25212
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25213
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
25214
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25215
+ Processing by ExampleController#restricted as HTML
25216
+ Authenticating with gds_sso strategy
25217
+ Completed in 0ms
25218
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25219
+ Started GET "/auth/gds/callback?code=ab9e130dd26b64e905c5173997617de447570dd7f2361a6406330c9f1b95da7a&state=b49eeb6de021cd04af632c81027af1f510021d7653cdae60" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25220
+ Processing by AuthenticationsController#callback as HTML
25221
+ Parameters: {"code"=>"ab9e130dd26b64e905c5173997617de447570dd7f2361a6406330c9f1b95da7a", "state"=>"b49eeb6de021cd04af632c81027af1f510021d7653cdae60"}
25222
+ Authenticating with gds_sso strategy
25223
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25224
+  (0.1ms) begin transaction
25225
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25226
+ - signin
25227
+ ' WHERE "users"."id" = 5
25228
+  (7.3ms) commit transaction
25229
+  (0.1ms) begin transaction
25230
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25231
+ - signin
25232
+ ' WHERE "users"."id" = 5
25233
+  (2.5ms) commit transaction
25234
+ Redirected to http://www.example-client.com/restricted
25235
+ Completed 302 Found in 17ms (ActiveRecord: 10.7ms)
25236
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25237
+ Processing by ExampleController#restricted as HTML
25238
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25239
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
25240
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-21 11:15:40 +0000
25241
+ Processing by ExampleController#restricted as HTML
25242
+ Authenticating with gds_sso strategy
25243
+ Completed in 0ms
25244
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-21 11:15:40 +0000
25245
+ Started GET "/auth/gds/callback?code=dfc19a37dc63fa3630bb2baa5af2fad7d4c68f8ca5a6434a04718b3c92db5cd1&state=b812b8e21d41c3b8d4b1b8ea33e296ab110e70dc319dabd1" for 127.0.0.1 at 2013-03-21 11:15:40 +0000
25246
+ Processing by AuthenticationsController#callback as HTML
25247
+ Parameters: {"code"=>"dfc19a37dc63fa3630bb2baa5af2fad7d4c68f8ca5a6434a04718b3c92db5cd1", "state"=>"b812b8e21d41c3b8d4b1b8ea33e296ab110e70dc319dabd1"}
25248
+ Authenticating with gds_sso strategy
25249
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25250
+  (0.1ms) begin transaction
25251
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25252
+ - signin
25253
+ ' WHERE "users"."id" = 5
25254
+  (9.3ms) commit transaction
25255
+  (0.1ms) begin transaction
25256
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25257
+ - signin
25258
+ ' WHERE "users"."id" = 5
25259
+  (2.2ms) commit transaction
25260
+ Redirected to http://www.example-client.com/restricted
25261
+ Completed 302 Found in 17ms (ActiveRecord: 12.4ms)
25262
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-21 11:15:40 +0000
25263
+ Processing by ExampleController#restricted as HTML
25264
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25265
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
25266
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25267
+ Processing by ExampleController#restricted as HTML
25268
+ Authenticating with gds_sso strategy
25269
+ Completed in 0ms
25270
+ Started GET "/auth/gds" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25271
+ Started GET "/auth/gds/callback?code=b4876550743315bc3f55121cbc3bc07435189c79a4f76d3f92db6825798aaeff&state=8b037ffa99565960988cad72683214275d6253b8b18262d1" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25272
+ Processing by AuthenticationsController#callback as HTML
25273
+ Parameters: {"code"=>"b4876550743315bc3f55121cbc3bc07435189c79a4f76d3f92db6825798aaeff", "state"=>"8b037ffa99565960988cad72683214275d6253b8b18262d1"}
25274
+ Authenticating with gds_sso strategy
25275
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25276
+  (0.1ms) begin transaction
25277
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25278
+ - signin
25279
+ ' WHERE "users"."id" = 5
25280
+  (8.8ms) commit transaction
25281
+  (0.0ms) begin transaction
25282
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25283
+ - signin
25284
+ ' WHERE "users"."id" = 5
25285
+  (2.3ms) commit transaction
25286
+ Redirected to http://www.example-client.com/restricted
25287
+ Completed 302 Found in 18ms (ActiveRecord: 12.2ms)
25288
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:40 +0000
25289
+ Processing by ExampleController#restricted as HTML
25290
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25291
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
25292
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-21 11:05:40 +0000
25293
+ Processing by ExampleController#restricted as HTML
25294
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25295
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
25296
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:41 +0000
25297
+ Processing by ExampleController#restricted as JSON
25298
+ Authenticating with gds_sso_api_access strategy
25299
+ Completed in 13ms
25300
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:41 +0000
25301
+ Processing by ExampleController#restricted as JSON
25302
+ Authenticating with gds_sso_api_access strategy
25303
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
25304
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:10:41 +0000
25305
+ Processing by ExampleController#this_requires_signin_permission as JSON
25306
+ Authenticating with gds_sso_api_access strategy
25307
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
25308
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:41 +0000
25309
+ Processing by ExampleController#restricted as JSON
25310
+ Authenticating with gds_bearer_token strategy
25311
+ Completed in 10ms
25312
+ Started GET "/restricted" for 127.0.0.1 at 2013-03-20 15:10:41 +0000
25313
+ Processing by ExampleController#restricted as JSON
25314
+ Authenticating with gds_bearer_token strategy
25315
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25316
+  (0.1ms) begin transaction
25317
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25318
+ - signin
25319
+ ' WHERE "users"."id" = 5
25320
+  (9.4ms) commit transaction
25321
+  (0.1ms) begin transaction
25322
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25323
+ - signin
25324
+ ' WHERE "users"."id" = 5
25325
+  (2.0ms) commit transaction
25326
+ Completed 200 OK in 47ms (Views: 0.6ms | ActiveRecord: 12.4ms)
25327
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-03-20 15:10:41 +0000
25328
+ Processing by ExampleController#this_requires_signin_permission as JSON
25329
+ Authenticating with gds_bearer_token strategy
25330
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
25331
+  (0.1ms) begin transaction
25332
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25333
+ - signin
25334
+ ' WHERE "users"."id" = 5
25335
+  (9.7ms) commit transaction
25336
+  (0.1ms) begin transaction
25337
+  (0.3ms) UPDATE "users" SET "permissions" = '---
25338
+ - signin
25339
+ ' WHERE "users"."id" = 5
25340
+  (1.7ms) commit transaction
25341
+ Completed 200 OK in 67ms (Views: 0.6ms | ActiveRecord: 12.4ms)