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