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.
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "9.0.0"
3
+ VERSION = "9.1.0"
4
4
  end
5
5
  end
@@ -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)}",
@@ -12009,3 +12009,769 @@ Authenticating with gds_bearer_token strategy
12009
12009
  ' WHERE "users"."id" = 11
12010
12010
   (9.1ms) commit transaction
12011
12011
  Completed 200 OK in 64.9ms (Views: 0.3ms | ActiveRecord: 21.0ms)
12012
+ Connecting to database specified by database.yml
12013
+  (0.9ms) select sqlite_version(*)
12014
+  (65.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255))
12015
+  (26.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
12016
+  (25.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12017
+  (0.1ms) begin transaction
12018
+ SQL (14.8ms) 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
+  (79.8ms) commit transaction
12020
+  (0.1ms) begin transaction
12021
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32682"]]
12022
+  (93.4ms) 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
+  (0.1ms) begin transaction
12029
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39994"]]
12030
+  (62.5ms) commit transaction
12031
+  (0.1ms) begin transaction
12032
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36187"]]
12033
+  (46.3ms) commit transaction
12034
+ Processing by Api::UserController#update as HTML
12035
+ Parameters: {"uid"=>"a1s2d39994"}
12036
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39994' LIMIT 1
12037
+  (0.1ms) begin transaction
12038
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
12039
+ - signin
12040
+ - new permission
12041
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
12042
+  (19.9ms) commit transaction
12043
+ Completed 200 OK in 43.2ms (ActiveRecord: 20.5ms)
12044
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
12045
+  (0.1ms) begin transaction
12046
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33125"]]
12047
+  (28.4ms) commit transaction
12048
+  (0.1ms) begin transaction
12049
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35955"]]
12050
+  (23.5ms) commit transaction
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
+  (0.1ms) begin transaction
12056
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32969"]]
12057
+  (24.1ms) commit transaction
12058
+  (0.1ms) begin transaction
12059
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34011"]]
12060
+  (23.8ms) commit transaction
12061
+ Processing by Api::UserController#reauth as HTML
12062
+ Parameters: {"uid"=>"nonexistent-user"}
12063
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
12064
+ Completed 200 OK in 1.4ms (ActiveRecord: 0.2ms)
12065
+  (0.1ms) begin transaction
12066
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3614"]]
12067
+  (54.6ms) commit transaction
12068
+  (0.1ms) begin transaction
12069
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36556"]]
12070
+  (16.7ms) commit transaction
12071
+ Processing by Api::UserController#reauth as HTML
12072
+ Parameters: {"uid"=>"a1s2d3614"}
12073
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3614' LIMIT 1
12074
+  (0.1ms) begin transaction
12075
+  (0.4ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12076
+ - signin
12077
+ ' WHERE "users"."id" = 9
12078
+  (32.3ms) commit transaction
12079
+ Completed 200 OK in 40.7ms (ActiveRecord: 33.1ms)
12080
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12094
+  (0.1ms) begin transaction
12095
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
12096
+  (39.0ms) commit transaction
12097
+  (0.1ms) begin transaction
12098
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12099
+ - signin
12100
+ ' WHERE "users"."id" = 11
12101
+  (14.7ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12118
+  (0.1ms) begin transaction
12119
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12120
+ - signin
12121
+ ' WHERE "users"."id" = 11
12122
+  (25.1ms) commit transaction
12123
+  (0.1ms) begin transaction
12124
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12125
+ - signin
12126
+ ' WHERE "users"."id" = 11
12127
+  (43.3ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12144
+  (0.1ms) begin transaction
12145
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12146
+ - signin
12147
+ ' WHERE "users"."id" = 11
12148
+  (21.0ms) commit transaction
12149
+  (0.1ms) begin transaction
12150
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12151
+ - signin
12152
+ ' WHERE "users"."id" = 11
12153
+  (9.6ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12170
+  (0.1ms) begin transaction
12171
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12172
+ - signin
12173
+ ' WHERE "users"."id" = 11
12174
+  (24.0ms) commit transaction
12175
+  (0.1ms) begin transaction
12176
+  (2.0ms) UPDATE "users" SET "permissions" = '---
12177
+ - signin
12178
+ ' WHERE "users"."id" = 11
12179
+  (16.4ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12196
+  (0.1ms) begin transaction
12197
+  (3.2ms) UPDATE "users" SET "permissions" = '---
12198
+ - signin
12199
+ ' WHERE "users"."id" = 11
12200
+  (23.4ms) commit transaction
12201
+  (0.1ms) begin transaction
12202
+  (1.0ms) UPDATE "users" SET "permissions" = '---
12203
+ - signin
12204
+ ' WHERE "users"."id" = 11
12205
+  (19.3ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12222
+  (0.1ms) begin transaction
12223
+  (0.4ms) UPDATE "users" SET "permissions" = '---
12224
+ - signin
12225
+ ' WHERE "users"."id" = 11
12226
+  (32.6ms) commit transaction
12227
+  (0.1ms) begin transaction
12228
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12229
+ - signin
12230
+ ' WHERE "users"."id" = 11
12231
+  (35.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12237
+ Completed 200 OK in 2.3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
12238
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12239
+  (0.0ms) begin transaction
12240
+  (3.8ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12241
+ - signin
12242
+ ' WHERE "users"."id" = 11
12243
+  (35.7ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12263
+  (0.0ms) begin transaction
12264
+  (0.7ms) UPDATE "users" SET "permissions" = '---
12265
+ - signin
12266
+ ' WHERE "users"."id" = 11
12267
+  (26.4ms) commit transaction
12268
+  (0.1ms) begin transaction
12269
+  (1.6ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12270
+ - signin
12271
+ ' WHERE "users"."id" = 11
12272
+  (20.2ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12289
+  (0.1ms) begin transaction
12290
+  (3.4ms) UPDATE "users" SET "permissions" = '---
12291
+ - signin
12292
+ ' WHERE "users"."id" = 11
12293
+  (26.1ms) commit transaction
12294
+  (0.1ms) begin transaction
12295
+  (0.4ms) UPDATE "users" SET "permissions" = '---
12296
+ - signin
12297
+ ' WHERE "users"."id" = 11
12298
+  (39.3ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12315
+  (0.1ms) begin transaction
12316
+  (4.4ms) UPDATE "users" SET "permissions" = '---
12317
+ - signin
12318
+ ' WHERE "users"."id" = 11
12319
+  (23.2ms) commit transaction
12320
+  (0.1ms) begin transaction
12321
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12322
+ - signin
12323
+ ' WHERE "users"."id" = 11
12324
+  (38.6ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12341
+  (0.1ms) begin transaction
12342
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12343
+ - signin
12344
+ ' WHERE "users"."id" = 11
12345
+  (32.9ms) commit transaction
12346
+  (0.1ms) begin transaction
12347
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12348
+ - signin
12349
+ ' WHERE "users"."id" = 11
12350
+  (20.1ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12369
+  (0.1ms) begin transaction
12370
+  (2.2ms) UPDATE "users" SET "permissions" = '---
12371
+ - signin
12372
+ ' WHERE "users"."id" = 11
12373
+  (22.3ms) commit transaction
12374
+  (0.1ms) begin transaction
12375
+  (3.3ms) UPDATE "users" SET "permissions" = '---
12376
+ - signin
12377
+ ' WHERE "users"."id" = 11
12378
+  (23.9ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12384
+  (0.1ms) begin transaction
12385
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12386
+ - signin
12387
+ ' WHERE "users"."id" = 11
12388
+  (32.9ms) commit transaction
12389
+  (0.1ms) begin transaction
12390
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12391
+ - signin
12392
+ ' WHERE "users"."id" = 11
12393
+  (40.7ms) commit transaction
12394
+ Completed 200 OK in 161.0ms (Views: 0.3ms | ActiveRecord: 74.4ms)
12395
+ Connecting to database specified by database.yml
12396
+  (0.8ms) select sqlite_version(*)
12397
+  (26.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255))
12398
+  (62.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
12399
+  (22.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12400
+  (0.1ms) begin transaction
12401
+ SQL (2.0ms) 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
+  (61.1ms) commit transaction
12403
+  (0.1ms) begin transaction
12404
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31254"]]
12405
+  (18.7ms) 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
+  (0.1ms) begin transaction
12412
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33131"]]
12413
+  (19.1ms) commit transaction
12414
+  (0.1ms) begin transaction
12415
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33594"]]
12416
+  (42.9ms) commit transaction
12417
+ Processing by Api::UserController#update as HTML
12418
+ Parameters: {"uid"=>"a1s2d33131"}
12419
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33131' LIMIT 1
12420
+  (0.0ms) begin transaction
12421
+  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
12422
+ - signin
12423
+ - new permission
12424
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
12425
+  (20.2ms) commit transaction
12426
+ Completed 200 OK in 30.7ms (ActiveRecord: 20.8ms)
12427
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
12428
+  (0.1ms) begin transaction
12429
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34609"]]
12430
+  (41.2ms) commit transaction
12431
+  (0.1ms) begin transaction
12432
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3922"]]
12433
+  (16.1ms) commit transaction
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
+  (0.1ms) begin transaction
12439
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34171"]]
12440
+  (65.8ms) commit transaction
12441
+  (0.1ms) begin transaction
12442
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31765"]]
12443
+  (24.1ms) commit transaction
12444
+ Processing by Api::UserController#reauth as HTML
12445
+ Parameters: {"uid"=>"nonexistent-user"}
12446
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
12447
+ Completed 200 OK in 1.2ms (ActiveRecord: 0.2ms)
12448
+  (0.1ms) begin transaction
12449
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33521"]]
12450
+  (53.9ms) commit transaction
12451
+  (0.1ms) begin transaction
12452
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35704"]]
12453
+  (18.1ms) commit transaction
12454
+ Processing by Api::UserController#reauth as HTML
12455
+ Parameters: {"uid"=>"a1s2d33521"}
12456
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33521' LIMIT 1
12457
+  (0.0ms) begin transaction
12458
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12459
+ - signin
12460
+ ' WHERE "users"."id" = 9
12461
+  (44.4ms) commit transaction
12462
+ Completed 200 OK in 49.1ms (ActiveRecord: 44.8ms)
12463
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12477
+  (0.1ms) begin transaction
12478
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
12479
+  (25.4ms) commit transaction
12480
+  (0.1ms) begin transaction
12481
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12482
+ - signin
12483
+ ' WHERE "users"."id" = 11
12484
+  (34.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12501
+  (0.1ms) begin transaction
12502
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12503
+ - signin
12504
+ ' WHERE "users"."id" = 11
12505
+  (66.2ms) commit transaction
12506
+  (0.1ms) begin transaction
12507
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12508
+ - signin
12509
+ ' WHERE "users"."id" = 11
12510
+  (22.4ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12527
+  (0.0ms) begin transaction
12528
+  (56.3ms) UPDATE "users" SET "permissions" = '---
12529
+ - signin
12530
+ ' WHERE "users"."id" = 11
12531
+  (24.6ms) commit transaction
12532
+  (0.1ms) begin transaction
12533
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12534
+ - signin
12535
+ ' WHERE "users"."id" = 11
12536
+  (58.9ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12553
+  (0.1ms) begin transaction
12554
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12555
+ - signin
12556
+ ' WHERE "users"."id" = 11
12557
+  (37.2ms) commit transaction
12558
+  (0.1ms) begin transaction
12559
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12560
+ - signin
12561
+ ' WHERE "users"."id" = 11
12562
+  (58.8ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12579
+  (0.0ms) begin transaction
12580
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12581
+ - signin
12582
+ ' WHERE "users"."id" = 11
12583
+  (71.7ms) commit transaction
12584
+  (0.1ms) begin transaction
12585
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12586
+ - signin
12587
+ ' WHERE "users"."id" = 11
12588
+  (19.3ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12605
+  (0.1ms) begin transaction
12606
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12607
+ - signin
12608
+ ' WHERE "users"."id" = 11
12609
+  (62.0ms) commit transaction
12610
+  (0.1ms) begin transaction
12611
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12612
+ - signin
12613
+ ' WHERE "users"."id" = 11
12614
+  (15.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12620
+ Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
12621
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12622
+  (0.0ms) begin transaction
12623
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
12624
+ - signin
12625
+ ' WHERE "users"."id" = 11
12626
+  (17.7ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12646
+  (0.0ms) begin transaction
12647
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12648
+ - signin
12649
+ ' WHERE "users"."id" = 11
12650
+  (37.2ms) commit transaction
12651
+  (0.1ms) begin transaction
12652
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
12653
+ - signin
12654
+ ' WHERE "users"."id" = 11
12655
+  (24.3ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12672
+  (0.1ms) begin transaction
12673
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12674
+ - signin
12675
+ ' WHERE "users"."id" = 11
12676
+  (50.1ms) commit transaction
12677
+  (0.1ms) begin transaction
12678
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12679
+ - signin
12680
+ ' WHERE "users"."id" = 11
12681
+  (20.7ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12698
+  (0.1ms) begin transaction
12699
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12700
+ - signin
12701
+ ' WHERE "users"."id" = 11
12702
+  (72.7ms) commit transaction
12703
+  (0.1ms) begin transaction
12704
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12705
+ - signin
12706
+ ' WHERE "users"."id" = 11
12707
+  (49.0ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12724
+  (0.1ms) begin transaction
12725
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12726
+ - signin
12727
+ ' WHERE "users"."id" = 11
12728
+  (21.1ms) commit transaction
12729
+  (0.1ms) begin transaction
12730
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12731
+ - signin
12732
+ ' WHERE "users"."id" = 11
12733
+  (10.6ms) commit transaction
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
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12752
+  (0.0ms) begin transaction
12753
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12754
+ - signin
12755
+ ' WHERE "users"."id" = 11
12756
+  (49.4ms) commit transaction
12757
+  (0.1ms) begin transaction
12758
+  (0.3ms) UPDATE "users" SET "permissions" = '---
12759
+ - signin
12760
+ ' WHERE "users"."id" = 11
12761
+  (19.9ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
12767
+  (0.0ms) begin transaction
12768
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12769
+ - signin
12770
+ ' WHERE "users"."id" = 11
12771
+  (24.6ms) commit transaction
12772
+  (0.1ms) begin transaction
12773
+  (0.2ms) UPDATE "users" SET "permissions" = '---
12774
+ - signin
12775
+ ' WHERE "users"."id" = 11
12776
+  (64.7ms) commit transaction
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.0.0
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: -1566495386927358198
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: -1566495386927358198
344
+ hash: -922460000355330119
345
345
  requirements: []
346
346
  rubyforge_project: gds-sso
347
347
  rubygems_version: 1.8.23