gds-sso 9.0.0 → 9.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +1 -1
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +766 -0
- metadata +3 -3
data/lib/gds-sso/version.rb
CHANGED
@@ -169,7 +169,7 @@ Warden::Strategies.add(:mock_gds_sso_api_access) do
|
|
169
169
|
|
170
170
|
def authenticate!
|
171
171
|
logger.debug("Authenticating with mock_gds_sso_api_access strategy")
|
172
|
-
dummy_api_user = GDS::SSO::Config.user_klass.find_by_email("dummyapiuser@domain.com")
|
172
|
+
dummy_api_user = GDS::SSO.test_user || GDS::SSO::Config.user_klass.find_by_email("dummyapiuser@domain.com")
|
173
173
|
if dummy_api_user.nil?
|
174
174
|
dummy_api_user = GDS::SSO::Config.user_klass.create!(
|
175
175
|
uid: "#{rand(10000)}",
|
Binary file
|
data/spec/internal/log/test.log
CHANGED
@@ -12009,3 +12009,769 @@ Authenticating with gds_bearer_token strategy
|
|
12009
12009
|
' WHERE "users"."id" = 11
|
12010
12010
|
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
12011
12011
|
Completed 200 OK in 64.9ms (Views: 0.3ms | ActiveRecord: 21.0ms)
|
12012
|
+
Connecting to database specified by database.yml
|
12013
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
12014
|
+
[1m[35m (65.7ms)[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))
|
12015
|
+
[1m[36m (26.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
12016
|
+
[1m[35m (25.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
12017
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12018
|
+
[1m[35mSQL (14.8ms)[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", "a1s2d37041"]]
|
12019
|
+
[1m[36m (79.8ms)[0m [1mcommit transaction[0m
|
12020
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12021
|
+
[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", "a1s2d32682"]]
|
12022
|
+
[1m[35m (93.4ms)[0m commit transaction
|
12023
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
12024
|
+
Processing by Api::UserController#update as HTML
|
12025
|
+
Parameters: {"uid"=>"a1s2d37041"}
|
12026
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (1.3ms)
|
12027
|
+
Completed 403 Forbidden in 162.1ms (Views: 153.8ms | ActiveRecord: 0.0ms)
|
12028
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12029
|
+
[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", "a1s2d39994"]]
|
12030
|
+
[1m[36m (62.5ms)[0m [1mcommit transaction[0m
|
12031
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12032
|
+
[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", "a1s2d36187"]]
|
12033
|
+
[1m[35m (46.3ms)[0m commit transaction
|
12034
|
+
Processing by Api::UserController#update as HTML
|
12035
|
+
Parameters: {"uid"=>"a1s2d39994"}
|
12036
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39994' LIMIT 1[0m
|
12037
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12038
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
12039
|
+
- signin
|
12040
|
+
- new permission
|
12041
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3[0m
|
12042
|
+
[1m[35m (19.9ms)[0m commit transaction
|
12043
|
+
Completed 200 OK in 43.2ms (ActiveRecord: 20.5ms)
|
12044
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
12045
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12046
|
+
[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", "a1s2d33125"]]
|
12047
|
+
[1m[35m (28.4ms)[0m commit transaction
|
12048
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12049
|
+
[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", "a1s2d35955"]]
|
12050
|
+
[1m[36m (23.5ms)[0m [1mcommit transaction[0m
|
12051
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
12052
|
+
Processing by Api::UserController#reauth as HTML
|
12053
|
+
Parameters: {"uid"=>"a1s2d33125"}
|
12054
|
+
Completed 403 Forbidden in 2.0ms (Views: 1.2ms | ActiveRecord: 0.0ms)
|
12055
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12056
|
+
[1m[36mSQL (0.3ms)[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", "a1s2d32969"]]
|
12057
|
+
[1m[35m (24.1ms)[0m commit transaction
|
12058
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12059
|
+
[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", "a1s2d34011"]]
|
12060
|
+
[1m[36m (23.8ms)[0m [1mcommit transaction[0m
|
12061
|
+
Processing by Api::UserController#reauth as HTML
|
12062
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
12063
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
|
12064
|
+
Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
|
12065
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12066
|
+
[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", "a1s2d3614"]]
|
12067
|
+
[1m[36m (54.6ms)[0m [1mcommit transaction[0m
|
12068
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12069
|
+
[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", "a1s2d36556"]]
|
12070
|
+
[1m[35m (16.7ms)[0m commit transaction
|
12071
|
+
Processing by Api::UserController#reauth as HTML
|
12072
|
+
Parameters: {"uid"=>"a1s2d3614"}
|
12073
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3614' LIMIT 1[0m
|
12074
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12075
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
12076
|
+
- signin
|
12077
|
+
' WHERE "users"."id" = 9[0m
|
12078
|
+
[1m[35m (32.3ms)[0m commit transaction
|
12079
|
+
Completed 200 OK in 40.7ms (ActiveRecord: 33.1ms)
|
12080
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 9]]
|
12081
|
+
Started GET "/" for 127.0.0.1 at 2013-11-28 11:51:32 +0000
|
12082
|
+
Processing by ExampleController#index as HTML
|
12083
|
+
Completed 200 OK in 13.2ms (Views: 12.5ms | ActiveRecord: 0.0ms)
|
12084
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:32 +0000
|
12085
|
+
Processing by ExampleController#restricted as HTML
|
12086
|
+
Authenticating with gds_sso strategy
|
12087
|
+
Completed in 3.5ms
|
12088
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:32 +0000
|
12089
|
+
Started GET "/auth/gds/callback?code=19bfeacf88fd3585202019e85c5f4e66e8561d8c939da78c558f3db82b55589e&state=63b3b3519833d0ac0e29b9dbe8ab950c14a4f26c14629f18" for 127.0.0.1 at 2013-11-28 11:51:34 +0000
|
12090
|
+
Processing by AuthenticationsController#callback as HTML
|
12091
|
+
Parameters: {"code"=>"19bfeacf88fd3585202019e85c5f4e66e8561d8c939da78c558f3db82b55589e", "state"=>"63b3b3519833d0ac0e29b9dbe8ab950c14a4f26c14629f18"}
|
12092
|
+
Authenticating with gds_sso strategy
|
12093
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12094
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12095
|
+
[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"]]
|
12096
|
+
[1m[36m (39.0ms)[0m [1mcommit transaction[0m
|
12097
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12098
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
12099
|
+
- signin
|
12100
|
+
' WHERE "users"."id" = 11[0m
|
12101
|
+
[1m[35m (14.7ms)[0m commit transaction
|
12102
|
+
Redirected to http://www.example-client.com/restricted
|
12103
|
+
Completed 302 Found in 127.8ms (ActiveRecord: 54.6ms)
|
12104
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:35 +0000
|
12105
|
+
Processing by ExampleController#restricted as HTML
|
12106
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12107
|
+
Completed 200 OK in 1.8ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
12108
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:35 +0000
|
12109
|
+
Processing by ExampleController#restricted as HTML
|
12110
|
+
Authenticating with gds_sso strategy
|
12111
|
+
Completed in 0.4ms
|
12112
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:35 +0000
|
12113
|
+
Started GET "/auth/gds/callback?code=103294850e0191390bd60af84fb321393e3accf7c6acebb1b487c53b1bc35ffb&state=32d1c31bbcba333773b43ba31604b45b1fc392528745ffb2" for 127.0.0.1 at 2013-11-28 11:51:35 +0000
|
12114
|
+
Processing by AuthenticationsController#callback as HTML
|
12115
|
+
Parameters: {"code"=>"103294850e0191390bd60af84fb321393e3accf7c6acebb1b487c53b1bc35ffb", "state"=>"32d1c31bbcba333773b43ba31604b45b1fc392528745ffb2"}
|
12116
|
+
Authenticating with gds_sso strategy
|
12117
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12118
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12119
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
12120
|
+
- signin
|
12121
|
+
' WHERE "users"."id" = 11
|
12122
|
+
[1m[36m (25.1ms)[0m [1mcommit transaction[0m
|
12123
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12124
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12125
|
+
- signin
|
12126
|
+
' WHERE "users"."id" = 11[0m
|
12127
|
+
[1m[35m (43.3ms)[0m commit transaction
|
12128
|
+
Redirected to http://www.example-client.com/restricted
|
12129
|
+
Completed 302 Found in 130.5ms (ActiveRecord: 69.4ms)
|
12130
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:36 +0000
|
12131
|
+
Processing by ExampleController#restricted as HTML
|
12132
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12133
|
+
Completed 200 OK in 1.9ms (Views: 0.5ms | ActiveRecord: 0.3ms)
|
12134
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:36 +0000
|
12135
|
+
Processing by ExampleController#restricted as HTML
|
12136
|
+
Authenticating with gds_sso strategy
|
12137
|
+
Completed in 0.2ms
|
12138
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:36 +0000
|
12139
|
+
Started GET "/auth/gds/callback?code=b2faff4a2b743f6038c89d9b102f2e21f077c4673970423ac94b9f006c4bc77e&state=2f10c89ada17d07240a80a7141849663525b1f5c6a0b5e29" for 127.0.0.1 at 2013-11-28 11:51:36 +0000
|
12140
|
+
Processing by AuthenticationsController#callback as HTML
|
12141
|
+
Parameters: {"code"=>"b2faff4a2b743f6038c89d9b102f2e21f077c4673970423ac94b9f006c4bc77e", "state"=>"2f10c89ada17d07240a80a7141849663525b1f5c6a0b5e29"}
|
12142
|
+
Authenticating with gds_sso strategy
|
12143
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12144
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12145
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12146
|
+
- signin
|
12147
|
+
' WHERE "users"."id" = 11
|
12148
|
+
[1m[36m (21.0ms)[0m [1mcommit transaction[0m
|
12149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12150
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12151
|
+
- signin
|
12152
|
+
' WHERE "users"."id" = 11[0m
|
12153
|
+
[1m[35m (9.6ms)[0m commit transaction
|
12154
|
+
Redirected to http://www.example-client.com/restricted
|
12155
|
+
Completed 302 Found in 41.4ms (ActiveRecord: 31.4ms)
|
12156
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:36 +0000
|
12157
|
+
Processing by ExampleController#restricted as HTML
|
12158
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12159
|
+
Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
12160
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:51:37 +0000
|
12161
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
12162
|
+
Authenticating with gds_sso strategy
|
12163
|
+
Completed in 0.8ms
|
12164
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:37 +0000
|
12165
|
+
Started GET "/auth/gds/callback?code=18eb3ec979018dbd8b3cec9d1fc287751d24ac8ddfdd13a12a04e8c405e648ac&state=e96f3618a37b6599629497dfa21e19392dc50794c45449d4" for 127.0.0.1 at 2013-11-28 11:51:37 +0000
|
12166
|
+
Processing by AuthenticationsController#callback as HTML
|
12167
|
+
Parameters: {"code"=>"18eb3ec979018dbd8b3cec9d1fc287751d24ac8ddfdd13a12a04e8c405e648ac", "state"=>"e96f3618a37b6599629497dfa21e19392dc50794c45449d4"}
|
12168
|
+
Authenticating with gds_sso strategy
|
12169
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12171
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12172
|
+
- signin
|
12173
|
+
' WHERE "users"."id" = 11
|
12174
|
+
[1m[36m (24.0ms)[0m [1mcommit transaction[0m
|
12175
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12176
|
+
[1m[36m (2.0ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12177
|
+
- signin
|
12178
|
+
' WHERE "users"."id" = 11[0m
|
12179
|
+
[1m[35m (16.4ms)[0m commit transaction
|
12180
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
12181
|
+
Completed 302 Found in 59.7ms (ActiveRecord: 43.0ms)
|
12182
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:51:37 +0000
|
12183
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
12184
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12185
|
+
Completed 200 OK in 5.1ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
12186
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:51:37 +0000
|
12187
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
12188
|
+
Authenticating with gds_sso strategy
|
12189
|
+
Completed in 0.4ms
|
12190
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:37 +0000
|
12191
|
+
Started GET "/auth/gds/callback?code=8e47359481ed0d725c089c084a6fd7323305aec697d278d71b9537daa51e8ef2&state=f9354c1ba5e13e375ceaa1b7b70137706185f6a3aaf641eb" for 127.0.0.1 at 2013-11-28 11:51:37 +0000
|
12192
|
+
Processing by AuthenticationsController#callback as HTML
|
12193
|
+
Parameters: {"code"=>"8e47359481ed0d725c089c084a6fd7323305aec697d278d71b9537daa51e8ef2", "state"=>"f9354c1ba5e13e375ceaa1b7b70137706185f6a3aaf641eb"}
|
12194
|
+
Authenticating with gds_sso strategy
|
12195
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12196
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12197
|
+
[1m[35m (3.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12198
|
+
- signin
|
12199
|
+
' WHERE "users"."id" = 11
|
12200
|
+
[1m[36m (23.4ms)[0m [1mcommit transaction[0m
|
12201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12202
|
+
[1m[36m (1.0ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12203
|
+
- signin
|
12204
|
+
' WHERE "users"."id" = 11[0m
|
12205
|
+
[1m[35m (19.3ms)[0m commit transaction
|
12206
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
12207
|
+
Completed 302 Found in 63.0ms (ActiveRecord: 47.3ms)
|
12208
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:51:38 +0000
|
12209
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
12210
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12211
|
+
Completed 200 OK in 4.6ms (Views: 0.4ms | ActiveRecord: 0.3ms)
|
12212
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:38 +0000
|
12213
|
+
Processing by ExampleController#restricted as HTML
|
12214
|
+
Authenticating with gds_sso strategy
|
12215
|
+
Completed in 0.3ms
|
12216
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:38 +0000
|
12217
|
+
Started GET "/auth/gds/callback?code=ccb2ca1540c15b6354079e7ca2f12b4e15232d8174242f05322a7a9600f64623&state=a0416786f08c85462a79c486d2ac5aa3499258957456b4b0" for 127.0.0.1 at 2013-11-28 11:51:38 +0000
|
12218
|
+
Processing by AuthenticationsController#callback as HTML
|
12219
|
+
Parameters: {"code"=>"ccb2ca1540c15b6354079e7ca2f12b4e15232d8174242f05322a7a9600f64623", "state"=>"a0416786f08c85462a79c486d2ac5aa3499258957456b4b0"}
|
12220
|
+
Authenticating with gds_sso strategy
|
12221
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12222
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12223
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "permissions" = '---
|
12224
|
+
- signin
|
12225
|
+
' WHERE "users"."id" = 11
|
12226
|
+
[1m[36m (32.6ms)[0m [1mcommit transaction[0m
|
12227
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12228
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12229
|
+
- signin
|
12230
|
+
' WHERE "users"."id" = 11[0m
|
12231
|
+
[1m[35m (35.0ms)[0m commit transaction
|
12232
|
+
Redirected to http://www.example-client.com/restricted
|
12233
|
+
Completed 302 Found in 93.5ms (ActiveRecord: 68.6ms)
|
12234
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:38 +0000
|
12235
|
+
Processing by ExampleController#restricted as HTML
|
12236
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12237
|
+
Completed 200 OK in 2.3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
12238
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12240
|
+
[1m[35m (3.8ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
12241
|
+
- signin
|
12242
|
+
' WHERE "users"."id" = 11
|
12243
|
+
[1m[36m (35.7ms)[0m [1mcommit transaction[0m
|
12244
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:38 +0000
|
12245
|
+
Processing by ExampleController#restricted as HTML
|
12246
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12247
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
12248
|
+
Completed 403 Forbidden in 5.8ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
12249
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-28 11:51:38 +0000
|
12250
|
+
Processing by AuthenticationsController#sign_out as HTML
|
12251
|
+
Redirected to http://localhost:4567/users/sign_out
|
12252
|
+
Completed 302 Found in 0.8ms (ActiveRecord: 0.0ms)
|
12253
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:39 +0000
|
12254
|
+
Processing by ExampleController#restricted as HTML
|
12255
|
+
Authenticating with gds_sso strategy
|
12256
|
+
Completed in 0.3ms
|
12257
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:39 +0000
|
12258
|
+
Started GET "/auth/gds/callback?code=be49416c8ec0a5cc4bc33f2f5f44ec5b0b98546ca7aa1487e4eaadb1058b1581&state=72b31895fdb7e65f0715a83515d9df50a8e01163b964fb4a" for 127.0.0.1 at 2013-11-28 11:51:39 +0000
|
12259
|
+
Processing by AuthenticationsController#callback as HTML
|
12260
|
+
Parameters: {"code"=>"be49416c8ec0a5cc4bc33f2f5f44ec5b0b98546ca7aa1487e4eaadb1058b1581", "state"=>"72b31895fdb7e65f0715a83515d9df50a8e01163b964fb4a"}
|
12261
|
+
Authenticating with gds_sso strategy
|
12262
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12263
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12264
|
+
[1m[36m (0.7ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12265
|
+
- signin
|
12266
|
+
' WHERE "users"."id" = 11[0m
|
12267
|
+
[1m[35m (26.4ms)[0m commit transaction
|
12268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12269
|
+
[1m[35m (1.6ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
12270
|
+
- signin
|
12271
|
+
' WHERE "users"."id" = 11
|
12272
|
+
[1m[36m (20.2ms)[0m [1mcommit transaction[0m
|
12273
|
+
Redirected to http://www.example-client.com/restricted
|
12274
|
+
Completed 302 Found in 60.2ms (ActiveRecord: 49.2ms)
|
12275
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:39 +0000
|
12276
|
+
Processing by ExampleController#restricted as HTML
|
12277
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12278
|
+
Completed 200 OK in 1.7ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
12279
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:39 +0000
|
12280
|
+
Processing by ExampleController#restricted as HTML
|
12281
|
+
Authenticating with gds_sso strategy
|
12282
|
+
Completed in 0.3ms
|
12283
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:39 +0000
|
12284
|
+
Started GET "/auth/gds/callback?code=f6385e0bd76fa24eaee8d8334c5b2a5b79fc61ce7e09bd543090a21314788eff&state=293040a383471a1a17e021d0be3ad6574b954e464cc2c0f4" for 127.0.0.1 at 2013-11-28 11:51:40 +0000
|
12285
|
+
Processing by AuthenticationsController#callback as HTML
|
12286
|
+
Parameters: {"code"=>"f6385e0bd76fa24eaee8d8334c5b2a5b79fc61ce7e09bd543090a21314788eff", "state"=>"293040a383471a1a17e021d0be3ad6574b954e464cc2c0f4"}
|
12287
|
+
Authenticating with gds_sso strategy
|
12288
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12289
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12290
|
+
[1m[36m (3.4ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12291
|
+
- signin
|
12292
|
+
' WHERE "users"."id" = 11[0m
|
12293
|
+
[1m[35m (26.1ms)[0m commit transaction
|
12294
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12295
|
+
[1m[35m (0.4ms)[0m UPDATE "users" SET "permissions" = '---
|
12296
|
+
- signin
|
12297
|
+
' WHERE "users"."id" = 11
|
12298
|
+
[1m[36m (39.3ms)[0m [1mcommit transaction[0m
|
12299
|
+
Redirected to http://www.example-client.com/restricted
|
12300
|
+
Completed 302 Found in 83.8ms (ActiveRecord: 69.6ms)
|
12301
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:40 +0000
|
12302
|
+
Processing by ExampleController#restricted as HTML
|
12303
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12304
|
+
Completed 200 OK in 1.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
12305
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-29 07:56:40 +0000
|
12306
|
+
Processing by ExampleController#restricted as HTML
|
12307
|
+
Authenticating with gds_sso strategy
|
12308
|
+
Completed in 0.3ms
|
12309
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-29 07:56:40 +0000
|
12310
|
+
Started GET "/auth/gds/callback?code=8eeeb6b4fb16ce959e6329a0402da5fa07452b237d1d70cbaf2952b4b2bf083a&state=1549a62aa958397d84d88fd25bf09d9fa5effc4712c76871" for 127.0.0.1 at 2013-11-29 07:56:40 +0000
|
12311
|
+
Processing by AuthenticationsController#callback as HTML
|
12312
|
+
Parameters: {"code"=>"8eeeb6b4fb16ce959e6329a0402da5fa07452b237d1d70cbaf2952b4b2bf083a", "state"=>"1549a62aa958397d84d88fd25bf09d9fa5effc4712c76871"}
|
12313
|
+
Authenticating with gds_sso strategy
|
12314
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12316
|
+
[1m[36m (4.4ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12317
|
+
- signin
|
12318
|
+
' WHERE "users"."id" = 11[0m
|
12319
|
+
[1m[35m (23.2ms)[0m commit transaction
|
12320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12321
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12322
|
+
- signin
|
12323
|
+
' WHERE "users"."id" = 11
|
12324
|
+
[1m[36m (38.6ms)[0m [1mcommit transaction[0m
|
12325
|
+
Redirected to http://www.example-client.com/restricted
|
12326
|
+
Completed 302 Found in 81.2ms (ActiveRecord: 66.7ms)
|
12327
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-29 07:56:40 +0000
|
12328
|
+
Processing by ExampleController#restricted as HTML
|
12329
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12330
|
+
Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
12331
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:40 +0000
|
12332
|
+
Processing by ExampleController#restricted as HTML
|
12333
|
+
Authenticating with gds_sso strategy
|
12334
|
+
Completed in 0.3ms
|
12335
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 11:51:40 +0000
|
12336
|
+
Started GET "/auth/gds/callback?code=721bfa0967956bf0a84e970443c1e22135946ba0d1b4aae125d6ad0bc05ded40&state=e10769b13c424d781ecf03d2ed7e5a286f43d5e01f067d6a" for 127.0.0.1 at 2013-11-28 11:51:41 +0000
|
12337
|
+
Processing by AuthenticationsController#callback as HTML
|
12338
|
+
Parameters: {"code"=>"721bfa0967956bf0a84e970443c1e22135946ba0d1b4aae125d6ad0bc05ded40", "state"=>"e10769b13c424d781ecf03d2ed7e5a286f43d5e01f067d6a"}
|
12339
|
+
Authenticating with gds_sso strategy
|
12340
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12341
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12342
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12343
|
+
- signin
|
12344
|
+
' WHERE "users"."id" = 11[0m
|
12345
|
+
[1m[35m (32.9ms)[0m commit transaction
|
12346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12347
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12348
|
+
- signin
|
12349
|
+
' WHERE "users"."id" = 11
|
12350
|
+
[1m[36m (20.1ms)[0m [1mcommit transaction[0m
|
12351
|
+
Redirected to http://www.example-client.com/restricted
|
12352
|
+
Completed 302 Found in 70.7ms (ActiveRecord: 54.1ms)
|
12353
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:41 +0000
|
12354
|
+
Processing by ExampleController#restricted as HTML
|
12355
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12356
|
+
Completed 200 OK in 1.9ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
12357
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-29 07:46:41 +0000
|
12358
|
+
Processing by ExampleController#restricted as HTML
|
12359
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12360
|
+
Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
12361
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:41 +0000
|
12362
|
+
Processing by ExampleController#restricted as JSON
|
12363
|
+
Authenticating with gds_bearer_token strategy
|
12364
|
+
Completed in 14.9ms
|
12365
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 11:51:42 +0000
|
12366
|
+
Processing by ExampleController#restricted as JSON
|
12367
|
+
Authenticating with gds_bearer_token strategy
|
12368
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12370
|
+
[1m[35m (2.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12371
|
+
- signin
|
12372
|
+
' WHERE "users"."id" = 11
|
12373
|
+
[1m[36m (22.3ms)[0m [1mcommit transaction[0m
|
12374
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12375
|
+
[1m[36m (3.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12376
|
+
- signin
|
12377
|
+
' WHERE "users"."id" = 11[0m
|
12378
|
+
[1m[35m (23.9ms)[0m commit transaction
|
12379
|
+
Completed 200 OK in 129.4ms (Views: 0.3ms | ActiveRecord: 52.1ms)
|
12380
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 11:51:42 +0000
|
12381
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
12382
|
+
Authenticating with gds_bearer_token strategy
|
12383
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12384
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12385
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12386
|
+
- signin
|
12387
|
+
' WHERE "users"."id" = 11[0m
|
12388
|
+
[1m[35m (32.9ms)[0m commit transaction
|
12389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12390
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12391
|
+
- signin
|
12392
|
+
' WHERE "users"."id" = 11
|
12393
|
+
[1m[36m (40.7ms)[0m [1mcommit transaction[0m
|
12394
|
+
Completed 200 OK in 161.0ms (Views: 0.3ms | ActiveRecord: 74.4ms)
|
12395
|
+
Connecting to database specified by database.yml
|
12396
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
12397
|
+
[1m[35m (26.4ms)[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))
|
12398
|
+
[1m[36m (62.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
12399
|
+
[1m[35m (22.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
12400
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12401
|
+
[1m[35mSQL (2.0ms)[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", "a1s2d37529"]]
|
12402
|
+
[1m[36m (61.1ms)[0m [1mcommit transaction[0m
|
12403
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12404
|
+
[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", "a1s2d31254"]]
|
12405
|
+
[1m[35m (18.7ms)[0m commit transaction
|
12406
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
12407
|
+
Processing by Api::UserController#update as HTML
|
12408
|
+
Parameters: {"uid"=>"a1s2d37529"}
|
12409
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.8ms)
|
12410
|
+
Completed 403 Forbidden in 223.2ms (Views: 222.6ms | ActiveRecord: 0.0ms)
|
12411
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12412
|
+
[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", "a1s2d33131"]]
|
12413
|
+
[1m[36m (19.1ms)[0m [1mcommit transaction[0m
|
12414
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12415
|
+
[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", "a1s2d33594"]]
|
12416
|
+
[1m[35m (42.9ms)[0m commit transaction
|
12417
|
+
Processing by Api::UserController#update as HTML
|
12418
|
+
Parameters: {"uid"=>"a1s2d33131"}
|
12419
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33131' LIMIT 1[0m
|
12420
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12421
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
12422
|
+
- signin
|
12423
|
+
- new permission
|
12424
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3[0m
|
12425
|
+
[1m[35m (20.2ms)[0m commit transaction
|
12426
|
+
Completed 200 OK in 30.7ms (ActiveRecord: 20.8ms)
|
12427
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
12428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12429
|
+
[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", "a1s2d34609"]]
|
12430
|
+
[1m[35m (41.2ms)[0m commit transaction
|
12431
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12432
|
+
[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", "a1s2d3922"]]
|
12433
|
+
[1m[36m (16.1ms)[0m [1mcommit transaction[0m
|
12434
|
+
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
12435
|
+
Processing by Api::UserController#reauth as HTML
|
12436
|
+
Parameters: {"uid"=>"a1s2d34609"}
|
12437
|
+
Completed 403 Forbidden in 1.6ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
12438
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12439
|
+
[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", "a1s2d34171"]]
|
12440
|
+
[1m[35m (65.8ms)[0m commit transaction
|
12441
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12442
|
+
[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", "a1s2d31765"]]
|
12443
|
+
[1m[36m (24.1ms)[0m [1mcommit transaction[0m
|
12444
|
+
Processing by Api::UserController#reauth as HTML
|
12445
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
12446
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
|
12447
|
+
Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)
|
12448
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12449
|
+
[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", "a1s2d33521"]]
|
12450
|
+
[1m[36m (53.9ms)[0m [1mcommit transaction[0m
|
12451
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12452
|
+
[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", "a1s2d35704"]]
|
12453
|
+
[1m[35m (18.1ms)[0m commit transaction
|
12454
|
+
Processing by Api::UserController#reauth as HTML
|
12455
|
+
Parameters: {"uid"=>"a1s2d33521"}
|
12456
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33521' LIMIT 1[0m
|
12457
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12458
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
12459
|
+
- signin
|
12460
|
+
' WHERE "users"."id" = 9[0m
|
12461
|
+
[1m[35m (44.4ms)[0m commit transaction
|
12462
|
+
Completed 200 OK in 49.1ms (ActiveRecord: 44.8ms)
|
12463
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 9]]
|
12464
|
+
Started GET "/" for 127.0.0.1 at 2013-11-28 12:14:43 +0000
|
12465
|
+
Processing by ExampleController#index as HTML
|
12466
|
+
Completed 200 OK in 2.3ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
12467
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:43 +0000
|
12468
|
+
Processing by ExampleController#restricted as HTML
|
12469
|
+
Authenticating with gds_sso strategy
|
12470
|
+
Completed in 2.7ms
|
12471
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:43 +0000
|
12472
|
+
Started GET "/auth/gds/callback?code=efa919f01eb681635a5e710ce0f30206bcb316b58c235e6588b2bdfec77c8f4e&state=f1f240ade99ca46747f566118633be53d60d398b1c1eda36" for 127.0.0.1 at 2013-11-28 12:14:45 +0000
|
12473
|
+
Processing by AuthenticationsController#callback as HTML
|
12474
|
+
Parameters: {"code"=>"efa919f01eb681635a5e710ce0f30206bcb316b58c235e6588b2bdfec77c8f4e", "state"=>"f1f240ade99ca46747f566118633be53d60d398b1c1eda36"}
|
12475
|
+
Authenticating with gds_sso strategy
|
12476
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12477
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12478
|
+
[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"]]
|
12479
|
+
[1m[36m (25.4ms)[0m [1mcommit transaction[0m
|
12480
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12481
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
12482
|
+
- signin
|
12483
|
+
' WHERE "users"."id" = 11[0m
|
12484
|
+
[1m[35m (34.0ms)[0m commit transaction
|
12485
|
+
Redirected to http://www.example-client.com/restricted
|
12486
|
+
Completed 302 Found in 68.8ms (ActiveRecord: 60.3ms)
|
12487
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:45 +0000
|
12488
|
+
Processing by ExampleController#restricted as HTML
|
12489
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12490
|
+
Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
12491
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:46 +0000
|
12492
|
+
Processing by ExampleController#restricted as HTML
|
12493
|
+
Authenticating with gds_sso strategy
|
12494
|
+
Completed in 0.3ms
|
12495
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:46 +0000
|
12496
|
+
Started GET "/auth/gds/callback?code=4736d3ec1358a053e617ed98032025ba46a9db7dfd83c9087b20152eadeaff38&state=ca40252b3f141b49da9ec1cc6af10640312671f539c860a4" for 127.0.0.1 at 2013-11-28 12:14:46 +0000
|
12497
|
+
Processing by AuthenticationsController#callback as HTML
|
12498
|
+
Parameters: {"code"=>"4736d3ec1358a053e617ed98032025ba46a9db7dfd83c9087b20152eadeaff38", "state"=>"ca40252b3f141b49da9ec1cc6af10640312671f539c860a4"}
|
12499
|
+
Authenticating with gds_sso strategy
|
12500
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12501
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12502
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12503
|
+
- signin
|
12504
|
+
' WHERE "users"."id" = 11
|
12505
|
+
[1m[36m (66.2ms)[0m [1mcommit transaction[0m
|
12506
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12507
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12508
|
+
- signin
|
12509
|
+
' WHERE "users"."id" = 11[0m
|
12510
|
+
[1m[35m (22.4ms)[0m commit transaction
|
12511
|
+
Redirected to http://www.example-client.com/restricted
|
12512
|
+
Completed 302 Found in 99.7ms (ActiveRecord: 89.3ms)
|
12513
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:46 +0000
|
12514
|
+
Processing by ExampleController#restricted as HTML
|
12515
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12516
|
+
Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
12517
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:46 +0000
|
12518
|
+
Processing by ExampleController#restricted as HTML
|
12519
|
+
Authenticating with gds_sso strategy
|
12520
|
+
Completed in 0.2ms
|
12521
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:46 +0000
|
12522
|
+
Started GET "/auth/gds/callback?code=d319f132765e59fc2bea0b4960841e611c68f607a211c8a2480ecb486fe76031&state=3e935a6fab986858fde365f0f7b16a527826e497fcc11269" for 127.0.0.1 at 2013-11-28 12:14:47 +0000
|
12523
|
+
Processing by AuthenticationsController#callback as HTML
|
12524
|
+
Parameters: {"code"=>"d319f132765e59fc2bea0b4960841e611c68f607a211c8a2480ecb486fe76031", "state"=>"3e935a6fab986858fde365f0f7b16a527826e497fcc11269"}
|
12525
|
+
Authenticating with gds_sso strategy
|
12526
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12527
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12528
|
+
[1m[35m (56.3ms)[0m UPDATE "users" SET "permissions" = '---
|
12529
|
+
- signin
|
12530
|
+
' WHERE "users"."id" = 11
|
12531
|
+
[1m[36m (24.6ms)[0m [1mcommit transaction[0m
|
12532
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12533
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12534
|
+
- signin
|
12535
|
+
' WHERE "users"."id" = 11[0m
|
12536
|
+
[1m[35m (58.9ms)[0m commit transaction
|
12537
|
+
Redirected to http://www.example-client.com/restricted
|
12538
|
+
Completed 302 Found in 149.2ms (ActiveRecord: 140.4ms)
|
12539
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:47 +0000
|
12540
|
+
Processing by ExampleController#restricted as HTML
|
12541
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12542
|
+
Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
12543
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 12:14:47 +0000
|
12544
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
12545
|
+
Authenticating with gds_sso strategy
|
12546
|
+
Completed in 0.7ms
|
12547
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:47 +0000
|
12548
|
+
Started GET "/auth/gds/callback?code=68f8da87ea67b145a0c23123d442c56b0b5ef4dab86ffb8a3da7e9057392e25f&state=88baeccb886d19c0b95a314685a980ffaaed8d2264c0a77b" for 127.0.0.1 at 2013-11-28 12:14:48 +0000
|
12549
|
+
Processing by AuthenticationsController#callback as HTML
|
12550
|
+
Parameters: {"code"=>"68f8da87ea67b145a0c23123d442c56b0b5ef4dab86ffb8a3da7e9057392e25f", "state"=>"88baeccb886d19c0b95a314685a980ffaaed8d2264c0a77b"}
|
12551
|
+
Authenticating with gds_sso strategy
|
12552
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12553
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12554
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12555
|
+
- signin
|
12556
|
+
' WHERE "users"."id" = 11
|
12557
|
+
[1m[36m (37.2ms)[0m [1mcommit transaction[0m
|
12558
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12559
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12560
|
+
- signin
|
12561
|
+
' WHERE "users"."id" = 11[0m
|
12562
|
+
[1m[35m (58.8ms)[0m commit transaction
|
12563
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
12564
|
+
Completed 302 Found in 106.5ms (ActiveRecord: 96.7ms)
|
12565
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 12:14:48 +0000
|
12566
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
12567
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12568
|
+
Completed 200 OK in 3.6ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
12569
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 12:14:48 +0000
|
12570
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
12571
|
+
Authenticating with gds_sso strategy
|
12572
|
+
Completed in 0.2ms
|
12573
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:48 +0000
|
12574
|
+
Started GET "/auth/gds/callback?code=e5f958fd174e384c5b7764f714c1a9abd7b6e4c952e854a43720187508768426&state=66c6e7ece465f73e44fde14582d7ea4d6568950a031c202d" for 127.0.0.1 at 2013-11-28 12:14:49 +0000
|
12575
|
+
Processing by AuthenticationsController#callback as HTML
|
12576
|
+
Parameters: {"code"=>"e5f958fd174e384c5b7764f714c1a9abd7b6e4c952e854a43720187508768426", "state"=>"66c6e7ece465f73e44fde14582d7ea4d6568950a031c202d"}
|
12577
|
+
Authenticating with gds_sso strategy
|
12578
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12579
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12580
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12581
|
+
- signin
|
12582
|
+
' WHERE "users"."id" = 11
|
12583
|
+
[1m[36m (71.7ms)[0m [1mcommit transaction[0m
|
12584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12585
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12586
|
+
- signin
|
12587
|
+
' WHERE "users"."id" = 11[0m
|
12588
|
+
[1m[35m (19.3ms)[0m commit transaction
|
12589
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
12590
|
+
Completed 302 Found in 100.8ms (ActiveRecord: 91.8ms)
|
12591
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 12:14:49 +0000
|
12592
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
12593
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12594
|
+
Completed 200 OK in 41.1ms (Views: 0.3ms | ActiveRecord: 0.3ms)
|
12595
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:49 +0000
|
12596
|
+
Processing by ExampleController#restricted as HTML
|
12597
|
+
Authenticating with gds_sso strategy
|
12598
|
+
Completed in 0.3ms
|
12599
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:49 +0000
|
12600
|
+
Started GET "/auth/gds/callback?code=656b0acbcfcd7f24a13bfe1dfebbe527f9f44a9f8d8871788994f73973ae38d0&state=c9f171f98e1acde00aafca67e43d38e140b70adab442b64d" for 127.0.0.1 at 2013-11-28 12:14:50 +0000
|
12601
|
+
Processing by AuthenticationsController#callback as HTML
|
12602
|
+
Parameters: {"code"=>"656b0acbcfcd7f24a13bfe1dfebbe527f9f44a9f8d8871788994f73973ae38d0", "state"=>"c9f171f98e1acde00aafca67e43d38e140b70adab442b64d"}
|
12603
|
+
Authenticating with gds_sso strategy
|
12604
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12605
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12606
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12607
|
+
- signin
|
12608
|
+
' WHERE "users"."id" = 11
|
12609
|
+
[1m[36m (62.0ms)[0m [1mcommit transaction[0m
|
12610
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12611
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12612
|
+
- signin
|
12613
|
+
' WHERE "users"."id" = 11[0m
|
12614
|
+
[1m[35m (15.0ms)[0m commit transaction
|
12615
|
+
Redirected to http://www.example-client.com/restricted
|
12616
|
+
Completed 302 Found in 87.8ms (ActiveRecord: 77.8ms)
|
12617
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:50 +0000
|
12618
|
+
Processing by ExampleController#restricted as HTML
|
12619
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12620
|
+
Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
12621
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12622
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12623
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
12624
|
+
- signin
|
12625
|
+
' WHERE "users"."id" = 11
|
12626
|
+
[1m[36m (17.7ms)[0m [1mcommit transaction[0m
|
12627
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:50 +0000
|
12628
|
+
Processing by ExampleController#restricted as HTML
|
12629
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12630
|
+
Filter chain halted as :authenticate_user! rendered or redirected
|
12631
|
+
Completed 403 Forbidden in 3.6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
12632
|
+
Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2013-11-28 12:14:50 +0000
|
12633
|
+
Processing by AuthenticationsController#sign_out as HTML
|
12634
|
+
Redirected to http://localhost:4567/users/sign_out
|
12635
|
+
Completed 302 Found in 0.6ms (ActiveRecord: 0.0ms)
|
12636
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:50 +0000
|
12637
|
+
Processing by ExampleController#restricted as HTML
|
12638
|
+
Authenticating with gds_sso strategy
|
12639
|
+
Completed in 0.2ms
|
12640
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:50 +0000
|
12641
|
+
Started GET "/auth/gds/callback?code=929ddadea5f87e8c703d42c2c66d50f53306137abc0cef6950888714f8b9785c&state=4713b72c33131b964ed4eca2fa0e9f96d278e972d884654f" for 127.0.0.1 at 2013-11-28 12:14:50 +0000
|
12642
|
+
Processing by AuthenticationsController#callback as HTML
|
12643
|
+
Parameters: {"code"=>"929ddadea5f87e8c703d42c2c66d50f53306137abc0cef6950888714f8b9785c", "state"=>"4713b72c33131b964ed4eca2fa0e9f96d278e972d884654f"}
|
12644
|
+
Authenticating with gds_sso strategy
|
12645
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12646
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12647
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12648
|
+
- signin
|
12649
|
+
' WHERE "users"."id" = 11[0m
|
12650
|
+
[1m[35m (37.2ms)[0m commit transaction
|
12651
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12652
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
12653
|
+
- signin
|
12654
|
+
' WHERE "users"."id" = 11
|
12655
|
+
[1m[36m (24.3ms)[0m [1mcommit transaction[0m
|
12656
|
+
Redirected to http://www.example-client.com/restricted
|
12657
|
+
Completed 302 Found in 71.1ms (ActiveRecord: 62.2ms)
|
12658
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:51 +0000
|
12659
|
+
Processing by ExampleController#restricted as HTML
|
12660
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12661
|
+
Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
12662
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:51 +0000
|
12663
|
+
Processing by ExampleController#restricted as HTML
|
12664
|
+
Authenticating with gds_sso strategy
|
12665
|
+
Completed in 0.2ms
|
12666
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:51 +0000
|
12667
|
+
Started GET "/auth/gds/callback?code=a9fb6f3b8280745760bdcc84b3db2853332db30e7b002703c5f98777e0fd4fc0&state=f4dae1f6ab61cea36dbb3059fa01a1cc8edd89a1c79c7053" for 127.0.0.1 at 2013-11-28 12:14:51 +0000
|
12668
|
+
Processing by AuthenticationsController#callback as HTML
|
12669
|
+
Parameters: {"code"=>"a9fb6f3b8280745760bdcc84b3db2853332db30e7b002703c5f98777e0fd4fc0", "state"=>"f4dae1f6ab61cea36dbb3059fa01a1cc8edd89a1c79c7053"}
|
12670
|
+
Authenticating with gds_sso strategy
|
12671
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12672
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12673
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12674
|
+
- signin
|
12675
|
+
' WHERE "users"."id" = 11[0m
|
12676
|
+
[1m[35m (50.1ms)[0m commit transaction
|
12677
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12678
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12679
|
+
- signin
|
12680
|
+
' WHERE "users"."id" = 11
|
12681
|
+
[1m[36m (20.7ms)[0m [1mcommit transaction[0m
|
12682
|
+
Redirected to http://www.example-client.com/restricted
|
12683
|
+
Completed 302 Found in 81.6ms (ActiveRecord: 71.6ms)
|
12684
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:52 +0000
|
12685
|
+
Processing by ExampleController#restricted as HTML
|
12686
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12687
|
+
Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
12688
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-29 08:19:52 +0000
|
12689
|
+
Processing by ExampleController#restricted as HTML
|
12690
|
+
Authenticating with gds_sso strategy
|
12691
|
+
Completed in 0.2ms
|
12692
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-29 08:19:52 +0000
|
12693
|
+
Started GET "/auth/gds/callback?code=b1f5269f6edac21a30a9a4fdd2f58cde9fedf3688963df4962d78841667f20a1&state=619073f1ad286c798a002883c78b2edf6484390b8b9d21cd" for 127.0.0.1 at 2013-11-29 08:19:52 +0000
|
12694
|
+
Processing by AuthenticationsController#callback as HTML
|
12695
|
+
Parameters: {"code"=>"b1f5269f6edac21a30a9a4fdd2f58cde9fedf3688963df4962d78841667f20a1", "state"=>"619073f1ad286c798a002883c78b2edf6484390b8b9d21cd"}
|
12696
|
+
Authenticating with gds_sso strategy
|
12697
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12698
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12699
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12700
|
+
- signin
|
12701
|
+
' WHERE "users"."id" = 11[0m
|
12702
|
+
[1m[35m (72.7ms)[0m commit transaction
|
12703
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12704
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12705
|
+
- signin
|
12706
|
+
' WHERE "users"."id" = 11
|
12707
|
+
[1m[36m (49.0ms)[0m [1mcommit transaction[0m
|
12708
|
+
Redirected to http://www.example-client.com/restricted
|
12709
|
+
Completed 302 Found in 131.1ms (ActiveRecord: 122.4ms)
|
12710
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-29 08:19:52 +0000
|
12711
|
+
Processing by ExampleController#restricted as HTML
|
12712
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12713
|
+
Completed 200 OK in 1.3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
12714
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:52 +0000
|
12715
|
+
Processing by ExampleController#restricted as HTML
|
12716
|
+
Authenticating with gds_sso strategy
|
12717
|
+
Completed in 0.2ms
|
12718
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2013-11-28 12:14:52 +0000
|
12719
|
+
Started GET "/auth/gds/callback?code=30af4e8d779f964d3d3ce63eb5402c2dff8c905791765bf55c88a1056deedc14&state=4cf199a45f4292849b8ef9531ccc28273da4443e4a789f98" for 127.0.0.1 at 2013-11-28 12:14:53 +0000
|
12720
|
+
Processing by AuthenticationsController#callback as HTML
|
12721
|
+
Parameters: {"code"=>"30af4e8d779f964d3d3ce63eb5402c2dff8c905791765bf55c88a1056deedc14", "state"=>"4cf199a45f4292849b8ef9531ccc28273da4443e4a789f98"}
|
12722
|
+
Authenticating with gds_sso strategy
|
12723
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12724
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12725
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12726
|
+
- signin
|
12727
|
+
' WHERE "users"."id" = 11[0m
|
12728
|
+
[1m[35m (21.1ms)[0m commit transaction
|
12729
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12730
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12731
|
+
- signin
|
12732
|
+
' WHERE "users"."id" = 11
|
12733
|
+
[1m[36m (10.6ms)[0m [1mcommit transaction[0m
|
12734
|
+
Redirected to http://www.example-client.com/restricted
|
12735
|
+
Completed 302 Found in 42.6ms (ActiveRecord: 32.5ms)
|
12736
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:53 +0000
|
12737
|
+
Processing by ExampleController#restricted as HTML
|
12738
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12739
|
+
Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
12740
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-29 08:09:53 +0000
|
12741
|
+
Processing by ExampleController#restricted as HTML
|
12742
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12743
|
+
Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
12744
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:53 +0000
|
12745
|
+
Processing by ExampleController#restricted as JSON
|
12746
|
+
Authenticating with gds_bearer_token strategy
|
12747
|
+
Completed in 7.3ms
|
12748
|
+
Started GET "/restricted" for 127.0.0.1 at 2013-11-28 12:14:54 +0000
|
12749
|
+
Processing by ExampleController#restricted as JSON
|
12750
|
+
Authenticating with gds_bearer_token strategy
|
12751
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
12752
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12753
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12754
|
+
- signin
|
12755
|
+
' WHERE "users"."id" = 11
|
12756
|
+
[1m[36m (49.4ms)[0m [1mcommit transaction[0m
|
12757
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12758
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12759
|
+
- signin
|
12760
|
+
' WHERE "users"."id" = 11[0m
|
12761
|
+
[1m[35m (19.9ms)[0m commit transaction
|
12762
|
+
Completed 200 OK in 163.5ms (Views: 0.3ms | ActiveRecord: 70.1ms)
|
12763
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2013-11-28 12:14:54 +0000
|
12764
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
12765
|
+
Authenticating with gds_bearer_token strategy
|
12766
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
12767
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12768
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
12769
|
+
- signin
|
12770
|
+
' WHERE "users"."id" = 11[0m
|
12771
|
+
[1m[35m (24.6ms)[0m commit transaction
|
12772
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12773
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
12774
|
+
- signin
|
12775
|
+
' WHERE "users"."id" = 11
|
12776
|
+
[1m[36m (64.7ms)[0m [1mcommit transaction[0m
|
12777
|
+
Completed 200 OK in 187.8ms (Views: 0.3ms | ActiveRecord: 90.1ms)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -332,7 +332,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
332
332
|
version: '0'
|
333
333
|
segments:
|
334
334
|
- 0
|
335
|
-
hash: -
|
335
|
+
hash: -922460000355330119
|
336
336
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
337
337
|
none: false
|
338
338
|
requirements:
|
@@ -341,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
341
341
|
version: '0'
|
342
342
|
segments:
|
343
343
|
- 0
|
344
|
-
hash: -
|
344
|
+
hash: -922460000355330119
|
345
345
|
requirements: []
|
346
346
|
rubyforge_project: gds-sso
|
347
347
|
rubygems_version: 1.8.23
|