gds-sso 9.3.0 → 9.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,9 +3,8 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in gds-sso.gemspec
4
4
  gemspec
5
5
 
6
- # The test suite currently assumes a Rails 3.2 client.
7
- # TODO: Investigate a matrix build against multiple Rails versions.
8
- gem 'rails', '~> 3.2.19'
6
+ # Default rails. Overridden in gemfiles during multi-build
7
+ gem 'rails', '3.2.19'
9
8
 
10
- ## Gems added to resolve dependency resolution
9
+ # Gems added to resolve dependency resolution
11
10
  gem 'mechanize', '2.6.0'
data/README.md CHANGED
@@ -17,7 +17,7 @@ These can be provided by one of the team with admin access to signonotron2.
17
17
 
18
18
  Then include the gem in your Gemfile:
19
19
 
20
- gem 'gds-sso', :git => 'https://github.com/alphagov/gds-sso.git'
20
+ gem 'gds-sso', '<version>'
21
21
 
22
22
  Create a `config/initializers/gds-sso.rb` that looks like:
23
23
 
@@ -32,7 +32,7 @@ Create a `config/initializers/gds-sso.rb` that looks like:
32
32
  config.oauth_root_url = "http://localhost:3001"
33
33
  end
34
34
 
35
- The user model must include the GDS::SSO::User module.
35
+ The user model must include the `GDS::SSO::User` module.
36
36
 
37
37
  It should have the following fields:
38
38
 
@@ -43,12 +43,21 @@ It should have the following fields:
43
43
  array "permissions"
44
44
  boolean "remotely_signed_out", :default => false
45
45
 
46
- You also need to include `GDS::SSO::ControllerMethods` in your ApplicationController
46
+ You also need to include `GDS::SSO::ControllerMethods` in your ApplicationController.
47
47
 
48
48
  For ActiveRecord, you probably want to declare permissions as "serialized" like this:
49
49
 
50
50
  serialize :permissions, Array
51
51
 
52
+ If your app is using `rspec`, there is a [shared examples spec](/lib/gds-sso/lint/user_spec.rb) that can be used to verify that your `User` model implements the necessary methods for `gds-sso` to work correctly. To use it:
53
+
54
+ ```ruby
55
+ require 'gds-sso/lint/user_spec'
56
+
57
+ describe User do
58
+ it_behaves_like "a gds-sso user class"
59
+ end
60
+ ```
52
61
 
53
62
  ## Use in development mode
54
63
 
@@ -62,5 +71,4 @@ To make it use a real strategy (e.g. if you're testing an app against the signon
62
71
 
63
72
  Once that's done, set an environment variable when you run your app. e.g.:
64
73
 
65
- GDS_SSO_STRATEGY=real bundle exec rails s
66
-
74
+ GDS_SSO_STRATEGY=real bundle exec rails s
data/Rakefile CHANGED
@@ -1,4 +1,7 @@
1
- require 'bundler'
1
+ require 'bundler/setup'
2
+ require 'bundler/gem_tasks'
3
+ require 'wwtd/tasks'
4
+
2
5
  Bundler::GemHelper.install_tasks
3
6
 
4
7
  load File.dirname(__FILE__) + "/spec/tasks/signonotron_tasks.rake"
@@ -8,6 +11,7 @@ desc "Run all specs"
8
11
  RSpec::Core::RakeTask.new(:spec) do |task|
9
12
  task.pattern = 'spec/**/*_spec.rb'
10
13
  end
14
+
11
15
  namespace :spec do
12
16
  desc "Run integration specs"
13
17
  RSpec::Core::RakeTask.new(:integration) do |task|
@@ -21,4 +25,4 @@ task :publish_gem do |t|
21
25
  puts "Published #{gem}" if gem
22
26
  end
23
27
 
24
- task :default => [:"signonotron:start", :spec]
28
+ task :default => [:wwtd]
@@ -0,0 +1,52 @@
1
+ RSpec.shared_examples "a gds-sso user class" do
2
+ subject { described_class.new }
3
+
4
+ it "implements #where" do
5
+ expect(described_class).to respond_to(:where)
6
+
7
+ result = described_class.where(uid: '123')
8
+ expect(result).to respond_to(:first)
9
+ end
10
+
11
+ it "implements #update_attribute" do
12
+ expect(subject).to respond_to(:update_attribute)
13
+
14
+ subject.update_attribute(:remotely_signed_out, true)
15
+ expect(subject).to be_remotely_signed_out
16
+ end
17
+
18
+ it "implements #update_attributes" do
19
+ expect(subject).to respond_to(:update_attributes)
20
+ end
21
+
22
+ it "implements #create!" do
23
+ expect(described_class).to respond_to(:create!)
24
+ end
25
+
26
+ it "implements #remotely_signed_out?" do
27
+ expect(subject).to respond_to(:remotely_signed_out?)
28
+ end
29
+
30
+ specify "the User class and GDS::SSO::User mixin work together" do
31
+ auth_hash = {
32
+ 'uid' => '12345',
33
+ 'info' => {
34
+ 'name' => 'Joe Smith',
35
+ 'email' => 'joe.smith@example.com',
36
+ },
37
+ 'extra' => {
38
+ 'user' => {
39
+ 'permissions' => ['signin'],
40
+ 'organisation_slug' => 'cabinet-office',
41
+ }
42
+ }
43
+ }
44
+
45
+ user = described_class.find_for_gds_oauth(auth_hash)
46
+ expect(user).to be_an_instance_of(described_class)
47
+ expect(user.name).to eq("Joe Smith")
48
+ expect(user.email).to eq('joe.smith@example.com')
49
+ expect(user.permissions).to eq(['signin'])
50
+ expect(user.organisation_slug).to eq('cabinet-office')
51
+ end
52
+ end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "9.3.0"
3
+ VERSION = "9.4.0"
4
4
  end
5
5
  end
@@ -15,19 +15,25 @@ end
15
15
  describe Api::UserController, type: :controller do
16
16
 
17
17
  before :each do
18
- @user_to_update = User.create!({
19
- :uid => "a1s2d3#{rand(10000)}",
20
- :email => "old@domain.com",
21
- :name => "Moshua Jarshall",
22
- :permissions => ["signin"] },
23
- as: :oauth)
24
-
25
- @signon_sso_push_user = User.create!({
26
- :uid => "a1s2d3#{rand(10000)}",
27
- :email => "ssopushuser@legit.com",
28
- :name => "SSO Push user",
29
- :permissions => ["signin", "user_update_permission"] },
30
- as: :oauth)
18
+ user_to_update_attrs = [{
19
+ :uid => "a1s2d3#{rand(10000)}",
20
+ :email => "old@domain.com",
21
+ :name => "Moshua Jarshall",
22
+ :permissions => ["signin"] }]
23
+
24
+ signon_sso_push_user_attrs = [{
25
+ :uid => "a1s2d3#{rand(10000)}",
26
+ :email => "ssopushuser@legit.com",
27
+ :name => "SSO Push user",
28
+ :permissions => ["signin", "user_update_permission"] }]
29
+
30
+ if GDS::SSO::User.below_rails_4?
31
+ user_to_update_attrs << { as: :oauth }
32
+ signon_sso_push_user_attrs << { as: :oauth }
33
+ end
34
+
35
+ @user_to_update = User.create!(*user_to_update_attrs)
36
+ @signon_sso_push_user = User.create!(*signon_sso_push_user_attrs)
31
37
  end
32
38
 
33
39
  describe "PUT update" do
@@ -2,6 +2,4 @@ class User < ActiveRecord::Base
2
2
  include GDS::SSO::User
3
3
 
4
4
  serialize :permissions, Array
5
-
6
- attr_accessible :uid, :email, :name, :permissions, :organisation_slug, as: :oauth
7
5
  end
@@ -1,5 +1,5 @@
1
1
  Rails.application.routes.draw do
2
2
  root :to => 'example#index'
3
- match "/restricted" => 'example#restricted'
4
- match "/this_requires_signin_permission" => "example#this_requires_signin_permission"
3
+ get "/restricted" => 'example#restricted'
4
+ get "/this_requires_signin_permission" => "example#this_requires_signin_permission"
5
5
  end
@@ -1,412 +1,2178 @@
1
1
  Connecting to database specified by database.yml
2
-  (22.7ms) select sqlite_version(*)
3
-  (16.0ms) 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))
4
-  (8.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
-  (9.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
2
   (0.1ms) begin transaction
7
- SQL (4.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", "a1s2d36713"]]
8
-  (13.6ms) commit transaction
3
+ SQL (34.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", "a1s2d31543"]]
4
+  (22.1ms) commit transaction
9
5
   (0.1ms) begin transaction
10
- 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", "a1s2d34124"]]
11
-  (9.8ms) commit transaction
6
+ 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", "a1s2d39543"]]
7
+  (19.5ms) commit transaction
12
8
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
13
9
  Processing by Api::UserController#reauth as HTML
14
- Parameters: {"uid"=>"a1s2d36713"}
10
+ Parameters: {"uid"=>"a1s2d31543"}
15
11
  Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.2ms)
16
- Completed 403 Forbidden in 40.0ms (Views: 39.2ms | ActiveRecord: 0.0ms)
12
+ Completed 403 Forbidden in 70.4ms (Views: 69.6ms | ActiveRecord: 0.0ms)
17
13
   (0.1ms) begin transaction
18
- 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", "a1s2d36796"]]
19
-  (10.5ms) commit transaction
14
+ 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", "a1s2d38258"]]
15
+  (16.3ms) commit transaction
20
16
   (0.1ms) begin transaction
21
- 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", "a1s2d33045"]]
22
-  (11.3ms) commit transaction
17
+ 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", "a1s2d38740"]]
18
+  (18.1ms) commit transaction
23
19
  Processing by Api::UserController#reauth as HTML
24
20
  Parameters: {"uid"=>"nonexistent-user"}
25
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
26
- Completed 200 OK in 6.1ms (ActiveRecord: 0.3ms)
21
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
22
+ Completed 200 OK in 16.3ms (ActiveRecord: 0.2ms)
27
23
   (0.1ms) begin transaction
28
- 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", "a1s2d34574"]]
29
-  (10.8ms) commit transaction
24
+ 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", "a1s2d38987"]]
25
+  (13.5ms) commit transaction
30
26
   (0.1ms) begin transaction
31
- SQL (0.1ms) 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", "a1s2d32625"]]
32
-  (11.6ms) commit transaction
27
+ 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", "a1s2d35286"]]
28
+  (10.7ms) commit transaction
33
29
  Processing by Api::UserController#reauth as HTML
34
- Parameters: {"uid"=>"a1s2d34574"}
35
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34574' LIMIT 1
30
+ Parameters: {"uid"=>"a1s2d38987"}
31
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38987' LIMIT 1
36
32
   (0.0ms) begin transaction
37
33
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
38
34
  - signin
39
35
  ' WHERE "users"."id" = 5
40
-  (13.8ms) commit transaction
41
- Completed 200 OK in 17.9ms (ActiveRecord: 14.2ms)
36
+  (10.0ms) commit transaction
37
+ Completed 200 OK in 14.1ms (ActiveRecord: 10.4ms)
42
38
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
43
39
   (0.1ms) begin transaction
44
- 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", "a1s2d34826"]]
45
-  (12.4ms) commit transaction
46
-  (0.0ms) begin transaction
47
- SQL (0.1ms) 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", "a1s2d35052"]]
48
-  (23.7ms) commit transaction
40
+ 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", "a1s2d39782"]]
41
+  (10.5ms) commit transaction
42
+  (0.1ms) begin transaction
43
+ 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", "a1s2d37664"]]
44
+  (15.4ms) commit transaction
49
45
  Processing by Api::UserController#update as HTML
50
- Parameters: {"uid"=>"a1s2d34826"}
51
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34826' LIMIT 1
46
+ Parameters: {"uid"=>"a1s2d39782"}
47
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39782' LIMIT 1
52
48
   (0.0ms) begin transaction
53
49
   (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
54
50
  - signin
55
51
  - new permission
56
52
  ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 7
57
-  (11.1ms) commit transaction
58
- Completed 200 OK in 14.9ms (ActiveRecord: 11.5ms)
53
+  (20.2ms) commit transaction
54
+ Completed 200 OK in 23.8ms (ActiveRecord: 20.6ms)
59
55
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 7]]
60
56
   (0.1ms) begin transaction
61
- 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", "a1s2d31326"]]
62
-  (12.4ms) commit transaction
57
+ 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", "a1s2d36570"]]
58
+  (14.0ms) commit transaction
63
59
   (0.1ms) begin transaction
64
- 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", "a1s2d35875"]]
65
-  (11.9ms) commit transaction
60
+ SQL (0.1ms) 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", "a1s2d31038"]]
61
+  (13.7ms) commit transaction
66
62
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
67
63
  Processing by Api::UserController#update as HTML
68
- Parameters: {"uid"=>"a1s2d31326"}
64
+ Parameters: {"uid"=>"a1s2d36570"}
69
65
  Completed 403 Forbidden in 1.4ms (Views: 0.9ms | ActiveRecord: 0.0ms)
70
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:52 +0000
66
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:21:58 +0000
71
67
  Processing by ExampleController#restricted as JSON
72
- Completed in 231.0ms
73
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:52 +0000
68
+ Completed in 320.2ms
69
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:21:58 +0000
74
70
  Processing by ExampleController#restricted as JSON
75
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
71
+ Completed in 270.3ms
72
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:21:59 +0000
73
+ Processing by ExampleController#restricted as JSON
74
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
76
75
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
77
-  (0.1ms) begin transaction
76
+  (0.0ms) begin transaction
78
77
  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"]]
79
-  (13.4ms) commit transaction
78
+  (12.3ms) commit transaction
80
79
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
81
80
   (0.0ms) begin transaction
82
-  (0.2ms) UPDATE "users" SET "permissions" = '---
81
+  (0.1ms) UPDATE "users" SET "permissions" = '---
83
82
  - signin
84
83
  ' WHERE "users"."id" = 11
85
-  (10.9ms) commit transaction
86
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
84
+  (41.7ms) commit transaction
85
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
87
86
   (0.0ms) begin transaction
88
87
   (0.2ms) UPDATE "users" SET "permissions" = '---
89
88
  - signin
90
89
  ' WHERE "users"."id" = 11
91
-  (10.5ms) commit transaction
92
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
90
+  (28.5ms) commit transaction
91
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
93
92
   (0.0ms) begin transaction
94
93
   (0.2ms) UPDATE "users" SET "permissions" = '---
95
94
  - signin
96
95
  ' WHERE "users"."id" = 11
97
-  (11.9ms) commit transaction
98
-  (0.0ms) begin transaction
99
-  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
96
+  (28.4ms) commit transaction
97
+  (0.1ms) begin transaction
98
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
100
99
  - signin
101
100
  ' WHERE "users"."id" = 11
102
-  (8.2ms) commit transaction
103
- Completed 200 OK in 583.8ms (Views: 3.0ms | ActiveRecord: 56.9ms)
104
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-07-18 13:10:53 +0000
101
+  (15.6ms) commit transaction
102
+ Completed 200 OK in 660.6ms (Views: 35.4ms | ActiveRecord: 128.5ms)
103
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:00 +0000
105
104
  Processing by ExampleController#this_requires_signin_permission as JSON
106
105
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
107
106
   (0.1ms) begin transaction
108
-  (0.2ms) UPDATE "users" SET "permissions" = '---
107
+  (0.3ms) UPDATE "users" SET "permissions" = '---
109
108
  - signin
110
109
  ' WHERE "users"."id" = 11
111
-  (10.0ms) commit transaction
112
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
110
+  (33.9ms) commit transaction
111
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
113
112
   (0.0ms) begin transaction
114
-  (0.1ms) UPDATE "users" SET "permissions" = '---
113
+  (0.2ms) UPDATE "users" SET "permissions" = '---
115
114
  - signin
116
115
  ' WHERE "users"."id" = 11
117
-  (10.6ms) commit transaction
118
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
119
-  (0.0ms) begin transaction
120
-  (0.1ms) UPDATE "users" SET "permissions" = '---
116
+  (13.5ms) commit transaction
117
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
118
+  (0.1ms) begin transaction
119
+  (0.3ms) UPDATE "users" SET "permissions" = '---
121
120
  - signin
122
121
  ' WHERE "users"."id" = 11
123
-  (9.4ms) commit transaction
122
+  (10.9ms) commit transaction
124
123
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
125
124
   (0.1ms) begin transaction
126
-  (0.1ms) UPDATE "users" SET "permissions" = '---
125
+  (0.3ms) UPDATE "users" SET "permissions" = '---
127
126
  - signin
128
127
  ' WHERE "users"."id" = 11
129
-  (9.4ms) commit transaction
130
-  (0.0ms) begin transaction
131
-  (0.1ms) UPDATE "users" SET "permissions" = '---
128
+  (12.4ms) commit transaction
129
+  (0.1ms) begin transaction
130
+  (0.2ms) UPDATE "users" SET "permissions" = '---
132
131
  - signin
133
132
  ' WHERE "users"."id" = 11
134
-  (8.9ms) commit transaction
135
- Completed 200 OK in 209.9ms (Views: 0.5ms | ActiveRecord: 49.9ms)
136
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:53 +0000
137
- Processing by ExampleController#restricted as JSON
138
- Completed in 22.9ms
139
- Started GET "/" for 127.0.0.1 at 2014-07-18 13:10:54 +0000
133
+  (55.3ms) commit transaction
134
+ Completed 200 OK in 374.8ms (Views: 0.4ms | ActiveRecord: 128.4ms)
135
+ Started GET "/" for 127.0.0.1 at 2014-09-03 16:22:00 +0000
140
136
  Processing by ExampleController#index as HTML
141
- Completed 200 OK in 0.8ms (Views: 0.4ms | ActiveRecord: 0.0ms)
142
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:54 +0000
143
- Processing by ExampleController#restricted as HTML
137
+ Completed 200 OK in 1.1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
138
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:01 +0000
139
+ Processing by ExampleController#this_requires_signin_permission as HTML
144
140
  Authenticating with gds_sso strategy
145
141
  Completed in 0.3ms
146
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:54 +0000
147
- Started GET "/auth/gds/callback?code=5975db777d300dea19d732e349a1e11f7a32642833159c9df9906db5ffb9baa2&state=f0484e1e5be76776d650d5e35cf7a598239a5b50461aa916" for 127.0.0.1 at 2014-07-18 13:10:55 +0000
142
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:01 +0000
143
+ Started GET "/auth/gds/callback?code=b0db4fc24baf5226116caae3196975ce0e47d9db790566a12e42422d1d417c89&state=fc688b4039e81458150996716a801007175a99fdecc60237" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
148
144
  Processing by AuthenticationsController#callback as HTML
149
- Parameters: {"code"=>"5975db777d300dea19d732e349a1e11f7a32642833159c9df9906db5ffb9baa2", "state"=>"f0484e1e5be76776d650d5e35cf7a598239a5b50461aa916"}
145
+ Parameters: {"code"=>"b0db4fc24baf5226116caae3196975ce0e47d9db790566a12e42422d1d417c89", "state"=>"fc688b4039e81458150996716a801007175a99fdecc60237"}
150
146
  Authenticating with gds_sso strategy
151
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
147
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
152
148
   (0.1ms) begin transaction
153
-  (0.2ms) UPDATE "users" SET "permissions" = '---
149
+  (0.3ms) UPDATE "users" SET "permissions" = '---
154
150
  - signin
155
151
  ' WHERE "users"."id" = 11
156
-  (9.1ms) commit transaction
157
-  (0.0ms) begin transaction
158
-  (0.1ms) UPDATE "users" SET "permissions" = '---
152
+  (10.7ms) commit transaction
153
+  (0.1ms) begin transaction
154
+  (0.3ms) UPDATE "users" SET "permissions" = '---
159
155
  - signin
160
156
  ' WHERE "users"."id" = 11
161
-  (10.0ms) commit transaction
162
- Redirected to http://www.example-client.com/restricted
163
- Completed 302 Found in 24.6ms (ActiveRecord: 19.7ms)
164
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:55 +0000
165
- Processing by ExampleController#restricted as HTML
166
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
167
- Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
168
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:55 +0000
169
- Processing by ExampleController#restricted as HTML
157
+  (10.4ms) commit transaction
158
+ Redirected to http://www.example-client.com/this_requires_signin_permission
159
+ Completed 302 Found in 29.9ms (ActiveRecord: 22.2ms)
160
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
161
+ Processing by ExampleController#this_requires_signin_permission as HTML
162
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
163
+ Completed 200 OK in 3.5ms (Views: 0.6ms | ActiveRecord: 0.3ms)
164
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
165
+ Processing by ExampleController#this_requires_signin_permission as HTML
170
166
  Authenticating with gds_sso strategy
171
167
  Completed in 0.3ms
172
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:55 +0000
173
- Started GET "/auth/gds/callback?code=5afbdc652a40e339df83fd3b72dd1e08ac20c9e65887be4a919fb40b4b7658b4&state=f850257ee9f2c743b5ea0ee0f0360b96158b629566127ccc" for 127.0.0.1 at 2014-07-18 13:10:55 +0000
168
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
169
+ Started GET "/auth/gds/callback?code=374bb5edbf5397a12e5b4ef673f6e0289d73f9bd112a6541344824a599b995bb&state=3d57a780b3e31373e1a01d42a86b214dae4fd871904ec895" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
174
170
  Processing by AuthenticationsController#callback as HTML
175
- Parameters: {"code"=>"5afbdc652a40e339df83fd3b72dd1e08ac20c9e65887be4a919fb40b4b7658b4", "state"=>"f850257ee9f2c743b5ea0ee0f0360b96158b629566127ccc"}
171
+ Parameters: {"code"=>"374bb5edbf5397a12e5b4ef673f6e0289d73f9bd112a6541344824a599b995bb", "state"=>"3d57a780b3e31373e1a01d42a86b214dae4fd871904ec895"}
176
172
  Authenticating with gds_sso strategy
177
173
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
178
174
   (0.1ms) begin transaction
179
175
   (0.2ms) UPDATE "users" SET "permissions" = '---
180
176
  - signin
181
177
  ' WHERE "users"."id" = 11
182
-  (11.7ms) commit transaction
178
+  (14.5ms) commit transaction
183
179
   (0.1ms) begin transaction
184
180
   (0.2ms) UPDATE "users" SET "permissions" = '---
185
181
  - signin
186
182
  ' WHERE "users"."id" = 11
187
-  (8.0ms) commit transaction
188
- Redirected to http://www.example-client.com/restricted
189
- Completed 302 Found in 25.3ms (ActiveRecord: 20.4ms)
190
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:55 +0000
191
- Processing by ExampleController#restricted as HTML
183
+  (17.1ms) commit transaction
184
+ Redirected to http://www.example-client.com/this_requires_signin_permission
185
+ Completed 302 Found in 38.3ms (ActiveRecord: 32.4ms)
186
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:22:02 +0000
187
+ Processing by ExampleController#this_requires_signin_permission as HTML
192
188
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
193
- Completed 200 OK in 1.3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
194
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:55 +0000
189
+ Completed 200 OK in 2.1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
190
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
195
191
  Processing by ExampleController#restricted as HTML
196
192
  Authenticating with gds_sso strategy
197
193
  Completed in 0.2ms
198
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:55 +0000
199
- Started GET "/auth/gds/callback?code=e41b27b6bcd8d06e7f62f794a6254edcefe1463a770a5b048a3399da9b3d2456&state=f3c6d7b10c576e26ffcac9aa2e24a60fc0764fe6b5843d3f" for 127.0.0.1 at 2014-07-18 13:10:56 +0000
194
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
195
+ Started GET "/auth/gds/callback?code=c2621eb639eaeb7cbab1d0ebc74f48119882a2091fb96ede9ec0bb9f9a6d68cd&state=9f1af49c3c17aec998d8669cafac807adeef4b3f85bd9ab0" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
200
196
  Processing by AuthenticationsController#callback as HTML
201
- Parameters: {"code"=>"e41b27b6bcd8d06e7f62f794a6254edcefe1463a770a5b048a3399da9b3d2456", "state"=>"f3c6d7b10c576e26ffcac9aa2e24a60fc0764fe6b5843d3f"}
197
+ Parameters: {"code"=>"c2621eb639eaeb7cbab1d0ebc74f48119882a2091fb96ede9ec0bb9f9a6d68cd", "state"=>"9f1af49c3c17aec998d8669cafac807adeef4b3f85bd9ab0"}
202
198
  Authenticating with gds_sso strategy
203
199
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
204
200
   (0.0ms) begin transaction
205
-  (0.3ms) UPDATE "users" SET "permissions" = '---
201
+  (0.2ms) UPDATE "users" SET "permissions" = '---
206
202
  - signin
207
203
  ' WHERE "users"."id" = 11
208
-  (21.5ms) commit transaction
204
+  (10.8ms) commit transaction
209
205
   (0.1ms) begin transaction
210
206
   (0.2ms) UPDATE "users" SET "permissions" = '---
211
207
  - signin
212
208
  ' WHERE "users"."id" = 11
213
-  (14.7ms) commit transaction
209
+  (15.6ms) commit transaction
214
210
  Redirected to http://www.example-client.com/restricted
215
- Completed 302 Found in 68.1ms (ActiveRecord: 36.9ms)
216
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:56 +0000
211
+ Completed 302 Found in 32.0ms (ActiveRecord: 27.1ms)
212
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
217
213
  Processing by ExampleController#restricted as HTML
218
214
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
219
- Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
220
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-07-18 13:10:56 +0000
221
- Processing by ExampleController#this_requires_signin_permission as HTML
215
+ Completed 200 OK in 1.5ms (Views: 0.4ms | ActiveRecord: 0.2ms)
216
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
217
+ Processing by ExampleController#restricted as HTML
222
218
  Authenticating with gds_sso strategy
223
219
  Completed in 0.3ms
224
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:56 +0000
225
- Started GET "/auth/gds/callback?code=210b5d58b9ffe1bea1b9de5e2d153fd780f008363d642524024c378b62238e07&state=26b44a48b59d4ec1f55b4d079dcd744ffe007801fb59c273" for 127.0.0.1 at 2014-07-18 13:10:56 +0000
220
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
221
+ Started GET "/auth/gds/callback?code=f17f3111d54a052f34cf5b0711bceadb7b6a39fcf0e413c76b99c34258547407&state=11ee63d75c45a9bc1ba52931db07542e010a00c5cbfe6d44" for 127.0.0.1 at 2014-09-03 16:22:03 +0000
226
222
  Processing by AuthenticationsController#callback as HTML
227
- Parameters: {"code"=>"210b5d58b9ffe1bea1b9de5e2d153fd780f008363d642524024c378b62238e07", "state"=>"26b44a48b59d4ec1f55b4d079dcd744ffe007801fb59c273"}
223
+ Parameters: {"code"=>"f17f3111d54a052f34cf5b0711bceadb7b6a39fcf0e413c76b99c34258547407", "state"=>"11ee63d75c45a9bc1ba52931db07542e010a00c5cbfe6d44"}
228
224
  Authenticating with gds_sso strategy
229
225
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
230
-  (0.1ms) begin transaction
226
+  (0.0ms) begin transaction
231
227
   (0.2ms) UPDATE "users" SET "permissions" = '---
232
228
  - signin
233
229
  ' WHERE "users"."id" = 11
234
-  (10.3ms) commit transaction
230
+  (13.0ms) commit transaction
235
231
   (0.1ms) begin transaction
236
232
   (0.2ms) UPDATE "users" SET "permissions" = '---
237
233
  - signin
238
234
  ' WHERE "users"."id" = 11
239
-  (8.9ms) commit transaction
240
- Redirected to http://www.example-client.com/this_requires_signin_permission
241
- Completed 302 Found in 24.5ms (ActiveRecord: 19.8ms)
242
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-07-18 13:10:56 +0000
243
- Processing by ExampleController#this_requires_signin_permission as HTML
235
+  (9.5ms) commit transaction
236
+ Redirected to http://www.example-client.com/restricted
237
+ Completed 302 Found in 28.1ms (ActiveRecord: 23.1ms)
238
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
239
+ Processing by ExampleController#restricted as HTML
244
240
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
245
- Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
246
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-07-18 13:10:56 +0000
247
- Processing by ExampleController#this_requires_signin_permission as HTML
241
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
242
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
243
+ Processing by ExampleController#restricted as HTML
248
244
  Authenticating with gds_sso strategy
249
245
  Completed in 0.2ms
250
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:56 +0000
251
- Started GET "/auth/gds/callback?code=a3b9018ca8bd15809018c13c3647e342178769d152181e7577286d8c69ccb98e&state=a53779c75892eac4775139c3bad3dc74c7df9965c47b22ee" for 127.0.0.1 at 2014-07-18 13:10:57 +0000
246
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
247
+ Started GET "/auth/gds/callback?code=e92d1a233a614e89462a688733ad731db8ceb7ebe8fd623a80eb52b180af98b4&state=fa3cd5aecca58db71fea10bc8234d74a6480e49197721797" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
252
248
  Processing by AuthenticationsController#callback as HTML
253
- Parameters: {"code"=>"a3b9018ca8bd15809018c13c3647e342178769d152181e7577286d8c69ccb98e", "state"=>"a53779c75892eac4775139c3bad3dc74c7df9965c47b22ee"}
249
+ Parameters: {"code"=>"e92d1a233a614e89462a688733ad731db8ceb7ebe8fd623a80eb52b180af98b4", "state"=>"fa3cd5aecca58db71fea10bc8234d74a6480e49197721797"}
254
250
  Authenticating with gds_sso strategy
255
251
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
256
252
   (0.0ms) begin transaction
257
253
   (0.2ms) UPDATE "users" SET "permissions" = '---
258
254
  - signin
259
255
  ' WHERE "users"."id" = 11
260
-  (11.4ms) commit transaction
256
+  (6.8ms) commit transaction
261
257
   (0.1ms) begin transaction
262
258
   (0.2ms) UPDATE "users" SET "permissions" = '---
263
259
  - signin
264
260
  ' WHERE "users"."id" = 11
265
-  (6.4ms) commit transaction
266
- Redirected to http://www.example-client.com/this_requires_signin_permission
267
- Completed 302 Found in 22.8ms (ActiveRecord: 18.5ms)
268
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-07-18 13:10:57 +0000
269
- Processing by ExampleController#this_requires_signin_permission as HTML
270
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
271
- Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.1ms)
272
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:57 +0000
261
+  (18.3ms) commit transaction
262
+ Redirected to http://www.example-client.com/restricted
263
+ Completed 302 Found in 30.5ms (ActiveRecord: 25.8ms)
264
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
265
+ Processing by ExampleController#restricted as HTML
266
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
267
+ Completed 200 OK in 1.8ms (Views: 0.4ms | ActiveRecord: 0.2ms)
268
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
273
269
  Processing by ExampleController#restricted as HTML
274
270
  Authenticating with gds_sso strategy
275
271
  Completed in 0.3ms
276
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:57 +0000
277
- Started GET "/auth/gds/callback?code=f43f0a109a92ca6da4462731e056222aeb34085532afdc2dbbdeee8765b3bb1b&state=2b9882146c18215fb72946ccba69fbfec2f5c728e691eefa" for 127.0.0.1 at 2014-07-18 13:10:57 +0000
272
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:04 +0000
273
+ Started GET "/auth/gds/callback?code=15ff34bebc0526a601e45e08670326a0b2d58de736b4ee3f4d2f12eb70b2bcd1&state=83fe6996809d59921db4424c95c41494130fe657a111c58a" for 127.0.0.1 at 2014-09-03 16:22:05 +0000
278
274
  Processing by AuthenticationsController#callback as HTML
279
- Parameters: {"code"=>"f43f0a109a92ca6da4462731e056222aeb34085532afdc2dbbdeee8765b3bb1b", "state"=>"2b9882146c18215fb72946ccba69fbfec2f5c728e691eefa"}
275
+ Parameters: {"code"=>"15ff34bebc0526a601e45e08670326a0b2d58de736b4ee3f4d2f12eb70b2bcd1", "state"=>"83fe6996809d59921db4424c95c41494130fe657a111c58a"}
280
276
  Authenticating with gds_sso strategy
281
277
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
282
278
   (0.1ms) begin transaction
283
279
   (0.2ms) UPDATE "users" SET "permissions" = '---
284
280
  - signin
285
281
  ' WHERE "users"."id" = 11
286
-  (17.2ms) commit transaction
282
+  (75.2ms) commit transaction
287
283
   (0.1ms) begin transaction
288
284
   (0.2ms) UPDATE "users" SET "permissions" = '---
289
285
  - signin
290
286
  ' WHERE "users"."id" = 11
291
-  (7.8ms) commit transaction
287
+  (85.1ms) commit transaction
292
288
  Redirected to http://www.example-client.com/restricted
293
- Completed 302 Found in 30.9ms (ActiveRecord: 25.6ms)
294
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:57 +0000
289
+ Completed 302 Found in 168.0ms (ActiveRecord: 161.1ms)
290
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:05 +0000
295
291
  Processing by ExampleController#restricted as HTML
296
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
297
- Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
298
- Started GET "/restricted" for 127.0.0.1 at 2014-07-19 09:05:57 +0000
292
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
293
+ Completed 200 OK in 2.2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
294
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:17:05 +0000
299
295
  Processing by ExampleController#restricted as HTML
300
296
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
301
- Completed 200 OK in 2.0ms (Views: 0.4ms | ActiveRecord: 0.2ms)
302
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:58 +0000
297
+ Completed 200 OK in 1.9ms (Views: 0.3ms | ActiveRecord: 0.2ms)
298
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:05 +0000
303
299
  Processing by ExampleController#restricted as HTML
304
300
  Authenticating with gds_sso strategy
305
- Completed in 0.4ms
306
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:58 +0000
307
- Started GET "/auth/gds/callback?code=6e86a5ac211079540a91bd24d9e2d288bf63eca3eae8d673175e32e32e7f7130&state=9d588c1b54ad3155f986f4faaed309143cc4ccb34810385e" for 127.0.0.1 at 2014-07-18 13:10:58 +0000
301
+ Completed in 0.5ms
302
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:05 +0000
303
+ Started GET "/auth/gds/callback?code=403265f81f1add5efcbb242ed9fc16c6781bd1e17e90c2f2c4a19f7600ad1e7d&state=2f8283d7acdcacfdd42008812d93dfdc9381e9f32a751aaf" for 127.0.0.1 at 2014-09-03 16:22:06 +0000
308
304
  Processing by AuthenticationsController#callback as HTML
309
- Parameters: {"code"=>"6e86a5ac211079540a91bd24d9e2d288bf63eca3eae8d673175e32e32e7f7130", "state"=>"9d588c1b54ad3155f986f4faaed309143cc4ccb34810385e"}
305
+ Parameters: {"code"=>"403265f81f1add5efcbb242ed9fc16c6781bd1e17e90c2f2c4a19f7600ad1e7d", "state"=>"2f8283d7acdcacfdd42008812d93dfdc9381e9f32a751aaf"}
310
306
  Authenticating with gds_sso strategy
311
307
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
312
-  (0.1ms) begin transaction
308
+  (0.0ms) begin transaction
313
309
   (0.2ms) UPDATE "users" SET "permissions" = '---
314
310
  - signin
315
311
  ' WHERE "users"."id" = 11
316
-  (11.8ms) commit transaction
317
-  (0.0ms) begin transaction
318
-  (0.1ms) UPDATE "users" SET "permissions" = '---
312
+  (23.2ms) commit transaction
313
+  (0.1ms) begin transaction
314
+  (0.7ms) UPDATE "users" SET "permissions" = '---
319
315
  - signin
320
316
  ' WHERE "users"."id" = 11
321
-  (12.0ms) commit transaction
317
+  (23.6ms) commit transaction
322
318
  Redirected to http://www.example-client.com/restricted
323
- Completed 302 Found in 28.9ms (ActiveRecord: 24.4ms)
324
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:58 +0000
319
+ Completed 302 Found in 52.9ms (ActiveRecord: 48.0ms)
320
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:06 +0000
325
321
  Processing by ExampleController#restricted as HTML
326
322
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
327
- Completed 200 OK in 1.4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
328
- Started GET "/restricted" for 127.0.0.1 at 2014-07-19 09:15:58 +0000
323
+ Completed 200 OK in 2.3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
324
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:27:06 +0000
329
325
  Processing by ExampleController#restricted as HTML
330
326
  Authenticating with gds_sso strategy
331
327
  Completed in 0.3ms
332
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-19 09:15:58 +0000
333
- Started GET "/auth/gds/callback?code=1a3140979bcf7b3277dcf0246e252c3b07673b16c0960dc9fd11d5338079cd09&state=8abd43f4c4bf907ae34f3f3fc4b6e88f0dddc47b7304c202" for 127.0.0.1 at 2014-07-19 09:15:58 +0000
328
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:27:06 +0000
329
+ Started GET "/auth/gds/callback?code=47e7703f8e9d7999c7e59d89f72feccb066ac88b6a9bbd43a201e78243842429&state=df672180d63b0c9fb90de1088b6c28ad57c29079b743654e" for 127.0.0.1 at 2014-09-04 12:27:06 +0000
334
330
  Processing by AuthenticationsController#callback as HTML
335
- Parameters: {"code"=>"1a3140979bcf7b3277dcf0246e252c3b07673b16c0960dc9fd11d5338079cd09", "state"=>"8abd43f4c4bf907ae34f3f3fc4b6e88f0dddc47b7304c202"}
331
+ Parameters: {"code"=>"47e7703f8e9d7999c7e59d89f72feccb066ac88b6a9bbd43a201e78243842429", "state"=>"df672180d63b0c9fb90de1088b6c28ad57c29079b743654e"}
336
332
  Authenticating with gds_sso strategy
337
333
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
338
334
   (0.1ms) begin transaction
339
-  (0.2ms) UPDATE "users" SET "permissions" = '---
335
+  (0.3ms) UPDATE "users" SET "permissions" = '---
340
336
  - signin
341
337
  ' WHERE "users"."id" = 11
342
-  (15.0ms) commit transaction
338
+  (12.7ms) commit transaction
343
339
   (0.1ms) begin transaction
344
340
   (0.2ms) UPDATE "users" SET "permissions" = '---
345
341
  - signin
346
342
  ' WHERE "users"."id" = 11
347
-  (11.3ms) commit transaction
343
+  (15.3ms) commit transaction
348
344
  Redirected to http://www.example-client.com/restricted
349
- Completed 302 Found in 31.0ms (ActiveRecord: 26.9ms)
350
- Started GET "/restricted" for 127.0.0.1 at 2014-07-19 09:15:58 +0000
345
+ Completed 302 Found in 33.8ms (ActiveRecord: 28.9ms)
346
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:27:06 +0000
351
347
  Processing by ExampleController#restricted as HTML
352
348
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
353
- Completed 200 OK in 1.2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
354
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:58 +0000
349
+ Completed 200 OK in 1.7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
350
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:06 +0000
355
351
  Processing by ExampleController#restricted as HTML
356
352
  Authenticating with gds_sso strategy
357
353
  Completed in 0.3ms
358
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:58 +0000
359
- Started GET "/auth/gds/callback?code=03ef9abbd28b603a14ae6a14831ed972f90eee81c8b20b544aede2bd0aadb37c&state=61f2c111d40be99abb1c0fb13cf6da10cdeff618b7847110" for 127.0.0.1 at 2014-07-18 13:10:59 +0000
354
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:06 +0000
355
+ Started GET "/auth/gds/callback?code=9a7a37de502c8981bee5f85c3aa99cfbf0cf33a071dfa728c67a65c595a86013&state=9a6f99acdee3a0315f5b56581de3f1db369f5ada44564b37" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
360
356
  Processing by AuthenticationsController#callback as HTML
361
- Parameters: {"code"=>"03ef9abbd28b603a14ae6a14831ed972f90eee81c8b20b544aede2bd0aadb37c", "state"=>"61f2c111d40be99abb1c0fb13cf6da10cdeff618b7847110"}
357
+ Parameters: {"code"=>"9a7a37de502c8981bee5f85c3aa99cfbf0cf33a071dfa728c67a65c595a86013", "state"=>"9a6f99acdee3a0315f5b56581de3f1db369f5ada44564b37"}
362
358
  Authenticating with gds_sso strategy
363
359
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
364
360
   (0.1ms) begin transaction
365
-  (0.2ms) UPDATE "users" SET "permissions" = '---
361
+  (0.3ms) UPDATE "users" SET "permissions" = '---
366
362
  - signin
367
363
  ' WHERE "users"."id" = 11
368
-  (15.6ms) commit transaction
364
+  (32.2ms) commit transaction
369
365
   (0.1ms) begin transaction
370
-  (0.3ms) UPDATE "users" SET "permissions" = '---
366
+  (0.2ms) UPDATE "users" SET "permissions" = '---
371
367
  - signin
372
368
  ' WHERE "users"."id" = 11
373
-  (11.1ms) commit transaction
369
+  (18.2ms) commit transaction
374
370
  Redirected to http://www.example-client.com/restricted
375
- Completed 302 Found in 59.3ms (ActiveRecord: 27.6ms)
376
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:59 +0000
371
+ Completed 302 Found in 57.5ms (ActiveRecord: 51.3ms)
372
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
377
373
  Processing by ExampleController#restricted as HTML
378
374
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
379
- Completed 200 OK in 1.9ms (Views: 0.4ms | ActiveRecord: 0.2ms)
375
+ Completed 200 OK in 1.7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
380
376
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
381
-  (0.1ms) begin transaction
377
+  (0.0ms) begin transaction
382
378
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
383
379
  - signin
384
380
  ' WHERE "users"."id" = 11
385
-  (8.8ms) commit transaction
386
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:59 +0000
381
+  (17.5ms) commit transaction
382
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
387
383
  Processing by ExampleController#restricted as HTML
388
384
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
389
385
  Authenticating with gds_sso strategy
390
- Completed in 1.1ms
391
- Started GET "/auth/gds" for 127.0.0.1 at 2014-07-18 13:10:59 +0000
392
- Started GET "/auth/gds/callback?code=979607bcfbbc1794b923fa73d6fe319dd1be0bfc02086a961188b1de669bb8ff&state=ba10cbc1d53771830df04cb8d9cd264be7a05c80d204777c" for 127.0.0.1 at 2014-07-18 13:10:59 +0000
386
+ Completed in 1.0ms
387
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
388
+ Started GET "/auth/gds/callback?code=da9935976552d636886ad41941e7dd838444531bd6a1937caf4bf52a061d2fc3&state=23915f644980914cd141ce3647354c914b684b22e7608854" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
393
389
  Processing by AuthenticationsController#callback as HTML
394
- Parameters: {"code"=>"979607bcfbbc1794b923fa73d6fe319dd1be0bfc02086a961188b1de669bb8ff", "state"=>"ba10cbc1d53771830df04cb8d9cd264be7a05c80d204777c"}
390
+ Parameters: {"code"=>"da9935976552d636886ad41941e7dd838444531bd6a1937caf4bf52a061d2fc3", "state"=>"23915f644980914cd141ce3647354c914b684b22e7608854"}
395
391
  Authenticating with gds_sso strategy
396
392
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
397
-  (0.1ms) begin transaction
393
+  (0.0ms) begin transaction
398
394
   (0.2ms) UPDATE "users" SET "permissions" = '---
399
395
  - signin
400
396
  ' WHERE "users"."id" = 11
401
-  (13.3ms) commit transaction
402
-  (0.0ms) begin transaction
397
+  (6.6ms) commit transaction
398
+  (0.1ms) begin transaction
403
399
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
404
400
  - signin
405
401
  ' WHERE "users"."id" = 11
406
-  (15.2ms) commit transaction
402
+  (8.7ms) commit transaction
407
403
  Redirected to http://www.example-client.com/restricted
408
- Completed 302 Found in 34.0ms (ActiveRecord: 29.2ms)
409
- Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:59 +0000
404
+ Completed 302 Found in 20.3ms (ActiveRecord: 16.0ms)
405
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:22:07 +0000
410
406
  Processing by ExampleController#restricted as HTML
411
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
412
- Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
407
+ User Load (29.6ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
408
+ Completed 200 OK in 31.1ms (Views: 0.4ms | ActiveRecord: 29.6ms)
409
+  (0.1ms) begin transaction
410
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36363"]]
411
+  (67.6ms) commit transaction
412
+  (0.1ms) begin transaction
413
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d35959"]]
414
+  (21.8ms) commit transaction
415
+ Processing by Api::UserController#update as HTML
416
+ Parameters: {"uid"=>"a1s2d36363"}
417
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
418
+ Completed 403 Forbidden in 41ms (Views: 40.0ms | ActiveRecord: 0.0ms)
419
+  (0.1ms) begin transaction
420
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d37581"]]
421
+  (36.1ms) commit transaction
422
+  (0.1ms) begin transaction
423
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38289"]]
424
+  (41.3ms) commit transaction
425
+ Processing by Api::UserController#update as HTML
426
+ Parameters: {"uid"=>"a1s2d37581"}
427
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37581' ORDER BY "users"."id" ASC LIMIT 1
428
+  (0.1ms) begin transaction
429
+ SQL (0.4ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ? WHERE "users"."id" = 3 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"]]
430
+  (38.5ms) commit transaction
431
+ Completed 200 OK in 48ms (ActiveRecord: 39.2ms)
432
+ User Load (31.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
433
+  (0.1ms) begin transaction
434
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32874"]]
435
+  (13.5ms) commit transaction
436
+  (0.1ms) begin transaction
437
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d36635"]]
438
+  (38.8ms) commit transaction
439
+ Processing by Api::UserController#reauth as HTML
440
+ Parameters: {"uid"=>"a1s2d32874"}
441
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32874' ORDER BY "users"."id" ASC LIMIT 1
442
+  (0.1ms) begin transaction
443
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 5 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
444
+  (9.0ms) commit transaction
445
+ Completed 200 OK in 12ms (ActiveRecord: 9.6ms)
446
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
447
+  (0.1ms) begin transaction
448
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38045"]]
449
+  (11.5ms) commit transaction
450
+  (0.1ms) begin transaction
451
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d38126"]]
452
+  (12.4ms) commit transaction
453
+ Processing by Api::UserController#reauth as HTML
454
+ Parameters: {"uid"=>"nonexistent-user"}
455
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
456
+ Completed 200 OK in 2ms (ActiveRecord: 0.3ms)
457
+  (0.1ms) begin transaction
458
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36759"]]
459
+  (9.7ms) commit transaction
460
+  (0.1ms) begin transaction
461
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33128"]]
462
+  (10.5ms) commit transaction
463
+ Processing by Api::UserController#reauth as HTML
464
+ Parameters: {"uid"=>"a1s2d36759"}
465
+ Completed 403 Forbidden in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
466
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:02 +0000
467
+ Processing by ExampleController#this_requires_signin_permission as HTML
468
+ Authenticating with gds_sso strategy
469
+ Completed in 64ms
470
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:02 +0000
471
+ Started GET "/auth/gds/callback?code=e52d6da125ffea5e18c4fa5a50df28fbc2b55c5665ce77066d631bafda5b1716&state=8ea86598e865e20d7835f4c899f6c258ed04eee3bc2c2ff6" for 127.0.0.1 at 2014-09-03 16:23:03 +0000
472
+ Processing by AuthenticationsController#callback as HTML
473
+ Parameters: {"code"=>"e52d6da125ffea5e18c4fa5a50df28fbc2b55c5665ce77066d631bafda5b1716", "state"=>"8ea86598e865e20d7835f4c899f6c258ed04eee3bc2c2ff6"}
474
+ Authenticating with gds_sso strategy
475
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
476
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
477
+  (0.1ms) begin transaction
478
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
479
+  (41.0ms) commit transaction
480
+  (0.1ms) begin transaction
481
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
482
+  (32.6ms) commit transaction
483
+ Redirected to http://www.example-client.com/this_requires_signin_permission
484
+ Completed 302 Found in 80ms (ActiveRecord: 74.5ms)
485
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
486
+ Processing by ExampleController#this_requires_signin_permission as HTML
487
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
488
+ Completed 200 OK in 50ms (Views: 47.7ms | ActiveRecord: 0.2ms)
489
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
490
+ Processing by ExampleController#this_requires_signin_permission as HTML
491
+ Authenticating with gds_sso strategy
492
+ Completed in 1ms
493
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
494
+ Started GET "/auth/gds/callback?code=2424f3f5116483bbf0674ddb5ab8be0e68b56b0b0f23f578801f47cfb1a715eb&state=f644a4aed57b8183064682c8dc506df6b505ee80c207f944" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
495
+ Processing by AuthenticationsController#callback as HTML
496
+ Parameters: {"code"=>"2424f3f5116483bbf0674ddb5ab8be0e68b56b0b0f23f578801f47cfb1a715eb", "state"=>"f644a4aed57b8183064682c8dc506df6b505ee80c207f944"}
497
+ Authenticating with gds_sso strategy
498
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
499
+  (0.1ms) begin transaction
500
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
501
+  (14.7ms) commit transaction
502
+  (0.1ms) begin transaction
503
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
504
+  (14.7ms) commit transaction
505
+ Redirected to http://www.example-client.com/this_requires_signin_permission
506
+ Completed 302 Found in 34ms (ActiveRecord: 30.1ms)
507
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
508
+ Processing by ExampleController#this_requires_signin_permission as HTML
509
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
510
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
511
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
512
+ Processing by ExampleController#restricted as HTML
513
+ Authenticating with gds_sso strategy
514
+ Completed in 0ms
515
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:04 +0000
516
+ Started GET "/auth/gds/callback?code=aa62951593fd05612ee9b55ebccf6a6cd6e2da95766fe27abb421ef32a806a51&state=15bce04924443e5fe012b6fbbf961d389bf47b46adda52bb" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
517
+ Processing by AuthenticationsController#callback as HTML
518
+ Parameters: {"code"=>"aa62951593fd05612ee9b55ebccf6a6cd6e2da95766fe27abb421ef32a806a51", "state"=>"15bce04924443e5fe012b6fbbf961d389bf47b46adda52bb"}
519
+ Authenticating with gds_sso strategy
520
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
521
+  (0.1ms) begin transaction
522
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
523
+  (20.9ms) commit transaction
524
+  (0.1ms) begin transaction
525
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
526
+  (19.1ms) commit transaction
527
+ Redirected to http://www.example-client.com/restricted
528
+ Completed 302 Found in 46ms (ActiveRecord: 40.7ms)
529
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
530
+ Processing by ExampleController#restricted as HTML
531
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
532
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
533
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
534
+ Processing by ExampleController#restricted as HTML
535
+ Authenticating with gds_sso strategy
536
+ Completed in 0ms
537
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
538
+ Started GET "/auth/gds/callback?code=07379fc928a770c4a866ab87f0eb3107ceac0452c1ad49a89639074510aa506c&state=be754c7aa402045343402b3345ddd68acba9919d3e103daf" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
539
+ Processing by AuthenticationsController#callback as HTML
540
+ Parameters: {"code"=>"07379fc928a770c4a866ab87f0eb3107ceac0452c1ad49a89639074510aa506c", "state"=>"be754c7aa402045343402b3345ddd68acba9919d3e103daf"}
541
+ Authenticating with gds_sso strategy
542
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
543
+  (0.1ms) begin transaction
544
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
545
+  (16.8ms) commit transaction
546
+  (0.1ms) begin transaction
547
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
548
+  (11.6ms) commit transaction
549
+ Redirected to http://www.example-client.com/restricted
550
+ Completed 302 Found in 34ms (ActiveRecord: 29.1ms)
551
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
552
+ Processing by ExampleController#restricted as HTML
553
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
554
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
555
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
556
+ Processing by ExampleController#restricted as HTML
557
+ Authenticating with gds_sso strategy
558
+ Completed in 1ms
559
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:05 +0000
560
+ Started GET "/auth/gds/callback?code=a551abf2b5206cb1c709a0673da492c9d4d2bfa131e9519058b908bd8a45b2de&state=bb1140fd8c731a753f49d93a3df73d94f051ef65ba3e0831" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
561
+ Processing by AuthenticationsController#callback as HTML
562
+ Parameters: {"code"=>"a551abf2b5206cb1c709a0673da492c9d4d2bfa131e9519058b908bd8a45b2de", "state"=>"bb1140fd8c731a753f49d93a3df73d94f051ef65ba3e0831"}
563
+ Authenticating with gds_sso strategy
564
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
565
+  (0.1ms) begin transaction
566
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
567
+  (9.5ms) commit transaction
568
+  (0.1ms) begin transaction
569
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
570
+  (12.2ms) commit transaction
571
+ Redirected to http://www.example-client.com/restricted
572
+ Completed 302 Found in 27ms (ActiveRecord: 22.3ms)
573
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
574
+ Processing by ExampleController#restricted as HTML
575
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
576
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
577
+ Started GET "/" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
578
+ Processing by ExampleController#index as HTML
579
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
580
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
581
+ Processing by ExampleController#restricted as HTML
582
+ Authenticating with gds_sso strategy
583
+ Completed in 0ms
584
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
585
+ Started GET "/auth/gds/callback?code=cc66d91920a8ade9a61d7029627cc455a354c466dd132ac2995dfc1778ad2c27&state=d9b5367470e1199a5b65e647b8cff08ba84a9e302dfcf516" for 127.0.0.1 at 2014-09-03 16:23:06 +0000
586
+ Processing by AuthenticationsController#callback as HTML
587
+ Parameters: {"code"=>"cc66d91920a8ade9a61d7029627cc455a354c466dd132ac2995dfc1778ad2c27", "state"=>"d9b5367470e1199a5b65e647b8cff08ba84a9e302dfcf516"}
588
+ Authenticating with gds_sso strategy
589
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
590
+  (0.1ms) begin transaction
591
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
592
+  (10.6ms) commit transaction
593
+  (0.1ms) begin transaction
594
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
595
+  (10.7ms) commit transaction
596
+ Redirected to http://www.example-client.com/restricted
597
+ Completed 302 Found in 30ms (ActiveRecord: 22.3ms)
598
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
599
+ Processing by ExampleController#restricted as HTML
600
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
601
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)
602
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
603
+  (0.1ms) begin transaction
604
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
605
+  (12.7ms) commit transaction
606
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
607
+ Processing by ExampleController#restricted as HTML
608
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
609
+ Authenticating with gds_sso strategy
610
+ Completed in 1ms
611
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
612
+ Started GET "/auth/gds/callback?code=c61e586a42221b13fbd08d5ce5176769c45cd9cafa60a1ef0d1d7e8c1799ee77&state=1206d827ad7c8a3067b7d1a42dadd0987355ad5f5ce87052" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
613
+ Processing by AuthenticationsController#callback as HTML
614
+ Parameters: {"code"=>"c61e586a42221b13fbd08d5ce5176769c45cd9cafa60a1ef0d1d7e8c1799ee77", "state"=>"1206d827ad7c8a3067b7d1a42dadd0987355ad5f5ce87052"}
615
+ Authenticating with gds_sso strategy
616
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
617
+  (0.1ms) begin transaction
618
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
619
+  (13.8ms) commit transaction
620
+  (0.1ms) begin transaction
621
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 11 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
622
+  (12.9ms) commit transaction
623
+ Redirected to http://www.example-client.com/restricted
624
+ Completed 302 Found in 34ms (ActiveRecord: 27.6ms)
625
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
626
+ Processing by ExampleController#restricted as HTML
627
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
628
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
629
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
630
+ Processing by ExampleController#restricted as HTML
631
+ Authenticating with gds_sso strategy
632
+ Completed in 0ms
633
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
634
+ Started GET "/auth/gds/callback?code=8fdaa243920ba110504287e9ffe4fc9887bdb1bfb407fffb5306bd13e12f3327&state=c3f48d8c4c891987f2aadd549065f54ee11e52caaa5d1704" for 127.0.0.1 at 2014-09-03 16:23:07 +0000
635
+ Processing by AuthenticationsController#callback as HTML
636
+ Parameters: {"code"=>"8fdaa243920ba110504287e9ffe4fc9887bdb1bfb407fffb5306bd13e12f3327", "state"=>"c3f48d8c4c891987f2aadd549065f54ee11e52caaa5d1704"}
637
+ Authenticating with gds_sso strategy
638
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
639
+  (0.1ms) begin transaction
640
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
641
+  (16.5ms) commit transaction
642
+  (0.1ms) begin transaction
643
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
644
+  (14.7ms) commit transaction
645
+ Redirected to http://www.example-client.com/restricted
646
+ Completed 302 Found in 38ms (ActiveRecord: 32.0ms)
647
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
648
+ Processing by ExampleController#restricted as HTML
649
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
650
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.3ms)
651
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:28:08 +0000
652
+ Processing by ExampleController#restricted as HTML
653
+ Authenticating with gds_sso strategy
654
+ Completed in 1ms
655
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:28:08 +0000
656
+ Started GET "/auth/gds/callback?code=450829d1570105aa7e8022061d5aad57e08ce6014a144669a4d7b7b667190602&state=d59097cc21031d1b195c8292236ad9f04d495934106e7aab" for 127.0.0.1 at 2014-09-04 12:28:08 +0000
657
+ Processing by AuthenticationsController#callback as HTML
658
+ Parameters: {"code"=>"450829d1570105aa7e8022061d5aad57e08ce6014a144669a4d7b7b667190602", "state"=>"d59097cc21031d1b195c8292236ad9f04d495934106e7aab"}
659
+ Authenticating with gds_sso strategy
660
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
661
+  (0.1ms) begin transaction
662
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
663
+  (12.7ms) commit transaction
664
+  (0.1ms) begin transaction
665
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
666
+  (12.4ms) commit transaction
667
+ Redirected to http://www.example-client.com/restricted
668
+ Completed 302 Found in 31ms (ActiveRecord: 25.9ms)
669
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:28:08 +0000
670
+ Processing by ExampleController#restricted as HTML
671
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
672
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
673
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
674
+ Processing by ExampleController#restricted as HTML
675
+ Authenticating with gds_sso strategy
676
+ Completed in 0ms
677
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
678
+ Started GET "/auth/gds/callback?code=0fdeeaad558331ed910cd66657c66c555d5af06bc26f40291aab33717d75d3d3&state=ce380fcbb19e3b25ac71beb4f0a3e29a1dc5ac10072e9d65" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
679
+ Processing by AuthenticationsController#callback as HTML
680
+ Parameters: {"code"=>"0fdeeaad558331ed910cd66657c66c555d5af06bc26f40291aab33717d75d3d3", "state"=>"ce380fcbb19e3b25ac71beb4f0a3e29a1dc5ac10072e9d65"}
681
+ Authenticating with gds_sso strategy
682
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
683
+  (0.1ms) begin transaction
684
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
685
+  (7.8ms) commit transaction
686
+  (0.1ms) begin transaction
687
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
688
+  (9.9ms) commit transaction
689
+ Redirected to http://www.example-client.com/restricted
690
+ Completed 302 Found in 23ms (ActiveRecord: 18.3ms)
691
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
692
+ Processing by ExampleController#restricted as HTML
693
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
694
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
695
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:18:08 +0000
696
+ Processing by ExampleController#restricted as HTML
697
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
698
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
699
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:08 +0000
700
+ Processing by ExampleController#restricted as JSON
701
+ Completed in 55ms
702
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:09 +0000
703
+ Processing by ExampleController#this_requires_signin_permission as JSON
704
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
705
+  (0.1ms) begin transaction
706
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
707
+  (6.6ms) commit transaction
708
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
709
+  (0.1ms) begin transaction
710
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
711
+  (8.8ms) commit transaction
712
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
713
+  (0.1ms) begin transaction
714
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
715
+  (7.8ms) commit transaction
716
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
717
+  (0.1ms) begin transaction
718
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
719
+  (17.9ms) commit transaction
720
+  (0.1ms) begin transaction
721
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
722
+  (15.9ms) commit transaction
723
+ Completed 200 OK in 218ms (Views: 0.4ms | ActiveRecord: 58.8ms)
724
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:09 +0000
725
+ Processing by ExampleController#restricted as JSON
726
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
727
+  (0.1ms) begin transaction
728
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
729
+  (10.6ms) commit transaction
730
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
731
+  (0.1ms) begin transaction
732
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
733
+  (13.7ms) commit transaction
734
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
735
+  (0.1ms) begin transaction
736
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
737
+  (10.8ms) commit transaction
738
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
739
+  (0.1ms) begin transaction
740
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
741
+  (11.9ms) commit transaction
742
+  (0.1ms) begin transaction
743
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
744
+  (12.4ms) commit transaction
745
+ Completed 200 OK in 228ms (Views: 0.4ms | ActiveRecord: 61.5ms)
746
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:09 +0000
747
+ Processing by ExampleController#restricted as JSON
748
+ Completed in 18ms
749
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:55 +0000
750
+ Processing by ExampleController#this_requires_signin_permission as HTML
751
+ Authenticating with gds_sso strategy
752
+ Completed in 21ms
753
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:55 +0000
754
+ Started GET "/auth/gds/callback?code=07562d4b7e4a06328300a9f0475f9a5fc576834c966914e47dc3b19f01aa7778&state=9aee5b0f276fd09785fed17f28d09b82d2e6d998d6ef2fb0" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
755
+ Processing by AuthenticationsController#callback as HTML
756
+ Parameters: {"code"=>"07562d4b7e4a06328300a9f0475f9a5fc576834c966914e47dc3b19f01aa7778", "state"=>"9aee5b0f276fd09785fed17f28d09b82d2e6d998d6ef2fb0"}
757
+ Authenticating with gds_sso strategy
758
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
759
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
760
+  (0.1ms) begin transaction
761
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
762
+  (12.8ms) commit transaction
763
+  (0.1ms) begin transaction
764
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
765
+  (10.5ms) commit transaction
766
+ Redirected to http://www.example-client.com/this_requires_signin_permission
767
+ Completed 302 Found in 120ms (ActiveRecord: 24.9ms)
768
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
769
+ Processing by ExampleController#this_requires_signin_permission as HTML
770
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
771
+ Rendered text template (0.0ms)
772
+ Completed 200 OK in 75ms (Views: 72.3ms | ActiveRecord: 0.2ms)
773
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
774
+ Processing by ExampleController#this_requires_signin_permission as HTML
775
+ Authenticating with gds_sso strategy
776
+ Completed in 0ms
777
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
778
+ Started GET "/auth/gds/callback?code=35d4fbd47d6f41090cfcc3d3527cbfc4b5d9412251a228d73c05c84e7f170ad7&state=81a37c241261cf3e898349ce3a8f70916c82231136c1d674" for 127.0.0.1 at 2014-09-03 16:23:57 +0000
779
+ Processing by AuthenticationsController#callback as HTML
780
+ Parameters: {"code"=>"35d4fbd47d6f41090cfcc3d3527cbfc4b5d9412251a228d73c05c84e7f170ad7", "state"=>"81a37c241261cf3e898349ce3a8f70916c82231136c1d674"}
781
+ Authenticating with gds_sso strategy
782
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
783
+  (0.1ms) begin transaction
784
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
785
+  (30.5ms) commit transaction
786
+  (0.1ms) begin transaction
787
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
788
+  (28.8ms) commit transaction
789
+ Redirected to http://www.example-client.com/this_requires_signin_permission
790
+ Completed 302 Found in 65ms (ActiveRecord: 60.1ms)
791
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
792
+ Processing by ExampleController#this_requires_signin_permission as HTML
793
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
794
+ Rendered text template (0.0ms)
795
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
796
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
797
+ Processing by ExampleController#restricted as HTML
798
+ Authenticating with gds_sso strategy
799
+ Completed in 0ms
800
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
801
+ Started GET "/auth/gds/callback?code=ce99065b80f884173b18921a5591a6d8d9819c138f586dcee4b2cf72da23b955&state=697054b1fcdd79e8af58fe28be9cb5378e0221ada736d719" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
802
+ Processing by AuthenticationsController#callback as HTML
803
+ Parameters: {"code"=>"ce99065b80f884173b18921a5591a6d8d9819c138f586dcee4b2cf72da23b955", "state"=>"697054b1fcdd79e8af58fe28be9cb5378e0221ada736d719"}
804
+ Authenticating with gds_sso strategy
805
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
806
+  (0.1ms) begin transaction
807
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
808
+  (21.5ms) commit transaction
809
+  (0.1ms) begin transaction
810
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
811
+  (18.2ms) commit transaction
812
+ Redirected to http://www.example-client.com/restricted
813
+ Completed 302 Found in 46ms (ActiveRecord: 40.3ms)
814
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
815
+ Processing by ExampleController#restricted as HTML
816
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
817
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
818
+ Started GET "/" for 127.0.0.1 at 2014-09-03 16:23:58 +0000
819
+ Processing by ExampleController#index as HTML
820
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
821
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
822
+ Processing by ExampleController#restricted as HTML
823
+ Authenticating with gds_sso strategy
824
+ Completed in 0ms
825
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
826
+ Started GET "/auth/gds/callback?code=89cb9745e1715c75d821f15649f64c721b3fbc2f875a4cefe33dfd154a2f29e7&state=beac0e7f871da2b402145025fee6c7f7e01f4681f5a6d8f9" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
827
+ Processing by AuthenticationsController#callback as HTML
828
+ Parameters: {"code"=>"89cb9745e1715c75d821f15649f64c721b3fbc2f875a4cefe33dfd154a2f29e7", "state"=>"beac0e7f871da2b402145025fee6c7f7e01f4681f5a6d8f9"}
829
+ Authenticating with gds_sso strategy
830
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
831
+  (0.1ms) begin transaction
832
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
833
+  (12.8ms) commit transaction
834
+  (0.1ms) begin transaction
835
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
836
+  (16.7ms) commit transaction
837
+ Redirected to http://www.example-client.com/restricted
838
+ Completed 302 Found in 36ms (ActiveRecord: 30.2ms)
839
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
840
+ Processing by ExampleController#restricted as HTML
841
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
842
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
843
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
844
+ Processing by ExampleController#restricted as HTML
845
+ Authenticating with gds_sso strategy
846
+ Completed in 0ms
847
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
848
+ Started GET "/auth/gds/callback?code=07d42dd0332d8f406f9f3afc1418a98bebbce4f511e131aef1a61f1540b29b10&state=3a5137abfdb7f8be9dd8939cdb7f7d13212580912d1b1c37" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
849
+ Processing by AuthenticationsController#callback as HTML
850
+ Parameters: {"code"=>"07d42dd0332d8f406f9f3afc1418a98bebbce4f511e131aef1a61f1540b29b10", "state"=>"3a5137abfdb7f8be9dd8939cdb7f7d13212580912d1b1c37"}
851
+ Authenticating with gds_sso strategy
852
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
853
+  (0.1ms) begin transaction
854
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
855
+  (15.4ms) commit transaction
856
+  (0.1ms) begin transaction
857
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
858
+  (12.9ms) commit transaction
859
+ Redirected to http://www.example-client.com/restricted
860
+ Completed 302 Found in 34ms (ActiveRecord: 29.0ms)
861
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:23:59 +0000
862
+ Processing by ExampleController#restricted as HTML
863
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
864
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
865
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
866
+ Processing by ExampleController#restricted as HTML
867
+ Authenticating with gds_sso strategy
868
+ Completed in 1ms
869
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
870
+ Started GET "/auth/gds/callback?code=f17796f9cdd2cf92e908dba6a9c313d216cf93fc33915bec0a10c34ad5c8c6e3&state=3d6a7ee364e9bbeb8dac03e829dc3e9334184f1ace204918" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
871
+ Processing by AuthenticationsController#callback as HTML
872
+ Parameters: {"code"=>"f17796f9cdd2cf92e908dba6a9c313d216cf93fc33915bec0a10c34ad5c8c6e3", "state"=>"3d6a7ee364e9bbeb8dac03e829dc3e9334184f1ace204918"}
873
+ Authenticating with gds_sso strategy
874
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
875
+  (0.1ms) begin transaction
876
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
877
+  (9.0ms) commit transaction
878
+  (0.1ms) begin transaction
879
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
880
+  (9.0ms) commit transaction
881
+ Redirected to http://www.example-client.com/restricted
882
+ Completed 302 Found in 25ms (ActiveRecord: 18.9ms)
883
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
884
+ Processing by ExampleController#restricted as HTML
885
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
886
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
887
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
888
+  (0.1ms) begin transaction
889
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
890
+  (14.3ms) commit transaction
891
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
892
+ Processing by ExampleController#restricted as HTML
893
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
894
+ Authenticating with gds_sso strategy
895
+ Completed in 1ms
896
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:00 +0000
897
+ Started GET "/auth/gds/callback?code=e9ee36b0dc2a65d0bbbad4523b6d865ea38ab29ba046a9d87bdb58762f455c40&state=b11ca64c09612dfd2e5caa033f9baf3fcc0d11bb96648567" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
898
+ Processing by AuthenticationsController#callback as HTML
899
+ Parameters: {"code"=>"e9ee36b0dc2a65d0bbbad4523b6d865ea38ab29ba046a9d87bdb58762f455c40", "state"=>"b11ca64c09612dfd2e5caa033f9baf3fcc0d11bb96648567"}
900
+ Authenticating with gds_sso strategy
901
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
902
+  (0.1ms) begin transaction
903
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
904
+  (11.1ms) commit transaction
905
+  (0.1ms) begin transaction
906
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
907
+  (14.9ms) commit transaction
908
+ Redirected to http://www.example-client.com/restricted
909
+ Completed 302 Found in 31ms (ActiveRecord: 26.6ms)
910
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
911
+ Processing by ExampleController#restricted as HTML
912
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
913
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
914
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
915
+ Processing by ExampleController#restricted as HTML
916
+ Authenticating with gds_sso strategy
917
+ Completed in 1ms
918
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
919
+ Started GET "/auth/gds/callback?code=0092b20c5805a214236ccb949ec1a58b5ae6046b154e562e6ca4788edd3b38d0&state=e045838209aec5b06df9ef90727a00a08ffb8b7f1961137f" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
920
+ Processing by AuthenticationsController#callback as HTML
921
+ Parameters: {"code"=>"0092b20c5805a214236ccb949ec1a58b5ae6046b154e562e6ca4788edd3b38d0", "state"=>"e045838209aec5b06df9ef90727a00a08ffb8b7f1961137f"}
922
+ Authenticating with gds_sso strategy
923
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
924
+  (0.1ms) begin transaction
925
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
926
+  (12.1ms) commit transaction
927
+  (0.1ms) begin transaction
928
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
929
+  (10.3ms) commit transaction
930
+ Redirected to http://www.example-client.com/restricted
931
+ Completed 302 Found in 28ms (ActiveRecord: 23.2ms)
932
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:01 +0000
933
+ Processing by ExampleController#restricted as HTML
934
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
935
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
936
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:01 +0000
937
+ Processing by ExampleController#restricted as HTML
938
+ Authenticating with gds_sso strategy
939
+ Completed in 1ms
940
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:29:01 +0000
941
+ Started GET "/auth/gds/callback?code=a8cc0d1f2cf2cfd01bd8e77eb35670d157cb55638d1e31abb902e34a9107428a&state=f52ffd98fe66f4c43713d3b19e8ae6fb1a7a49c9fa06b4e2" for 127.0.0.1 at 2014-09-04 12:29:01 +0000
942
+ Processing by AuthenticationsController#callback as HTML
943
+ Parameters: {"code"=>"a8cc0d1f2cf2cfd01bd8e77eb35670d157cb55638d1e31abb902e34a9107428a", "state"=>"f52ffd98fe66f4c43713d3b19e8ae6fb1a7a49c9fa06b4e2"}
944
+ Authenticating with gds_sso strategy
945
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
946
+  (0.1ms) begin transaction
947
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
948
+  (20.8ms) commit transaction
949
+  (0.1ms) begin transaction
950
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
951
+  (13.4ms) commit transaction
952
+ Redirected to http://www.example-client.com/restricted
953
+ Completed 302 Found in 40ms (ActiveRecord: 35.0ms)
954
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:01 +0000
955
+ Processing by ExampleController#restricted as HTML
956
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
957
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
958
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
959
+ Processing by ExampleController#restricted as HTML
960
+ Authenticating with gds_sso strategy
961
+ Completed in 0ms
962
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
963
+ Started GET "/auth/gds/callback?code=d7e5fe6339f08ac8ba7d58368dfb1015f49ecf7ac605eadc416673aa290eff94&state=725dc6d1a6646e3e467baf1eb377d45cf45abbae40efeb56" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
964
+ Processing by AuthenticationsController#callback as HTML
965
+ Parameters: {"code"=>"d7e5fe6339f08ac8ba7d58368dfb1015f49ecf7ac605eadc416673aa290eff94", "state"=>"725dc6d1a6646e3e467baf1eb377d45cf45abbae40efeb56"}
966
+ Authenticating with gds_sso strategy
967
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
968
+  (0.1ms) begin transaction
969
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
970
+  (12.9ms) commit transaction
971
+  (0.1ms) begin transaction
972
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
973
+  (13.7ms) commit transaction
974
+ Redirected to http://www.example-client.com/restricted
975
+ Completed 302 Found in 33ms (ActiveRecord: 27.3ms)
976
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
977
+ Processing by ExampleController#restricted as HTML
978
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
979
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
980
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:19:02 +0000
981
+ Processing by ExampleController#restricted as HTML
982
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
983
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
984
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
985
+ Processing by ExampleController#restricted as JSON
986
+ Completed in 22ms
987
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:02 +0000
988
+ Processing by ExampleController#restricted as JSON
989
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
990
+  (0.1ms) begin transaction
991
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
992
+  (12.3ms) commit transaction
993
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
994
+  (0.1ms) begin transaction
995
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
996
+  (9.5ms) commit transaction
997
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
998
+  (0.1ms) begin transaction
999
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1000
+  (9.7ms) commit transaction
1001
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1002
+  (0.1ms) begin transaction
1003
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1004
+  (9.5ms) commit transaction
1005
+  (0.1ms) begin transaction
1006
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1007
+  (8.4ms) commit transaction
1008
+ Completed 200 OK in 204ms (Views: 0.5ms | ActiveRecord: 51.4ms)
1009
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:03 +0000
1010
+ Processing by ExampleController#restricted as JSON
1011
+ Completed in 13ms
1012
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:03 +0000
1013
+ Processing by ExampleController#this_requires_signin_permission as JSON
1014
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1015
+  (0.1ms) begin transaction
1016
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1017
+  (15.7ms) commit transaction
1018
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1019
+  (0.1ms) begin transaction
1020
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1021
+  (8.9ms) commit transaction
1022
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1023
+  (0.1ms) begin transaction
1024
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1025
+  (12.9ms) commit transaction
1026
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1027
+  (0.1ms) begin transaction
1028
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1029
+  (10.3ms) commit transaction
1030
+  (0.1ms) begin transaction
1031
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1032
+  (12.5ms) commit transaction
1033
+ Completed 200 OK in 279ms (Views: 0.5ms | ActiveRecord: 62.3ms)
1034
+  (0.1ms) begin transaction
1035
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33067"]]
1036
+  (18.4ms) commit transaction
1037
+  (0.1ms) begin transaction
1038
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3744"]]
1039
+  (10.6ms) commit transaction
1040
+ Processing by Api::UserController#update as HTML
1041
+ Parameters: {"uid"=>"a1s2d33067"}
1042
+ Completed 403 Forbidden in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
1043
+  (0.1ms) begin transaction
1044
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36884"]]
1045
+  (10.2ms) commit transaction
1046
+  (0.1ms) begin transaction
1047
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d381"]]
1048
+  (15.3ms) commit transaction
1049
+ Processing by Api::UserController#update as HTML
1050
+ Parameters: {"uid"=>"a1s2d36884"}
1051
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36884' ORDER BY "users"."id" ASC LIMIT 1
1052
+  (0.1ms) begin transaction
1053
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 4 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]
1054
+  (13.9ms) commit transaction
1055
+ Completed 200 OK in 18ms (ActiveRecord: 14.4ms)
1056
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
1057
+  (0.1ms) begin transaction
1058
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35753"]]
1059
+  (12.9ms) commit transaction
1060
+  (0.1ms) begin transaction
1061
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33729"]]
1062
+  (27.9ms) commit transaction
1063
+ Processing by Api::UserController#reauth as HTML
1064
+ Parameters: {"uid"=>"a1s2d35753"}
1065
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35753' ORDER BY "users"."id" ASC LIMIT 1
1066
+  (0.1ms) begin transaction
1067
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 6 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
1068
+  (10.8ms) commit transaction
1069
+ Completed 200 OK in 14ms (ActiveRecord: 11.2ms)
1070
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
1071
+  (0.1ms) begin transaction
1072
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d3263"]]
1073
+  (27.7ms) commit transaction
1074
+  (0.1ms) begin transaction
1075
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33844"]]
1076
+  (22.7ms) commit transaction
1077
+ Processing by Api::UserController#reauth as HTML
1078
+ Parameters: {"uid"=>"nonexistent-user"}
1079
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1080
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1081
+  (0.1ms) begin transaction
1082
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33361"]]
1083
+  (12.2ms) commit transaction
1084
+  (0.1ms) begin transaction
1085
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d34004"]]
1086
+  (11.2ms) commit transaction
1087
+ Processing by Api::UserController#reauth as HTML
1088
+ Parameters: {"uid"=>"a1s2d33361"}
1089
+ Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1090
+ Connecting to database specified by database.yml
1091
+  (0.1ms) begin transaction
1092
+ SQL (12.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", "a1s2d36591"]]
1093
+  (22.2ms) commit transaction
1094
+  (0.1ms) begin transaction
1095
+ 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", "a1s2d33443"]]
1096
+  (22.4ms) commit transaction
1097
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1098
+ Processing by Api::UserController#update as HTML
1099
+ Parameters: {"uid"=>"a1s2d36591"}
1100
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1101
+ Completed 403 Forbidden in 6.7ms (Views: 6.1ms | ActiveRecord: 0.0ms)
1102
+  (0.1ms) begin transaction
1103
+ 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", "a1s2d34245"]]
1104
+  (17.5ms) commit transaction
1105
+  (0.1ms) begin transaction
1106
+ 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", "a1s2d32564"]]
1107
+  (11.8ms) commit transaction
1108
+ Processing by Api::UserController#update as HTML
1109
+ Parameters: {"uid"=>"a1s2d34245"}
1110
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34245' LIMIT 1
1111
+  (0.0ms) begin transaction
1112
+  (0.2ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
1113
+ - signin
1114
+ - new permission
1115
+ ', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3
1116
+  (16.4ms) commit transaction
1117
+ Completed 200 OK in 22.6ms (ActiveRecord: 16.8ms)
1118
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1119
+  (0.1ms) begin transaction
1120
+ 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", "a1s2d38521"]]
1121
+  (12.0ms) commit transaction
1122
+  (0.1ms) begin transaction
1123
+ 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", "a1s2d34402"]]
1124
+  (11.4ms) commit transaction
1125
+ WARNING: Can't mass-assign protected attributes: uid, name, permissions
1126
+ Processing by Api::UserController#reauth as HTML
1127
+ Parameters: {"uid"=>"a1s2d38521"}
1128
+ Completed 403 Forbidden in 1.5ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1129
+  (0.1ms) begin transaction
1130
+ 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", "a1s2d39168"]]
1131
+  (10.9ms) commit transaction
1132
+  (0.1ms) begin transaction
1133
+ 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", "a1s2d31545"]]
1134
+  (10.0ms) commit transaction
1135
+ Processing by Api::UserController#reauth as HTML
1136
+ Parameters: {"uid"=>"nonexistent-user"}
1137
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
1138
+ Completed 200 OK in 1.0ms (ActiveRecord: 0.2ms)
1139
+  (0.0ms) begin transaction
1140
+ 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", "a1s2d36285"]]
1141
+  (12.0ms) commit transaction
1142
+  (0.1ms) begin transaction
1143
+ 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", "a1s2d34931"]]
1144
+  (14.6ms) commit transaction
1145
+ Processing by Api::UserController#reauth as HTML
1146
+ Parameters: {"uid"=>"a1s2d36285"}
1147
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d36285' LIMIT 1
1148
+  (0.0ms) begin transaction
1149
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1150
+ - signin
1151
+ ' WHERE "users"."id" = 9
1152
+  (12.5ms) commit transaction
1153
+ Completed 200 OK in 15.0ms (ActiveRecord: 12.8ms)
1154
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 9]]
1155
+ Started GET "/" for 127.0.0.1 at 2014-09-03 16:24:22 +0000
1156
+ Processing by ExampleController#index as HTML
1157
+ Completed 200 OK in 1.9ms (Views: 1.5ms | ActiveRecord: 0.0ms)
1158
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1159
+ Processing by ExampleController#restricted as HTML
1160
+ Authenticating with gds_sso strategy
1161
+ Completed in 2.6ms
1162
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1163
+ Started GET "/auth/gds/callback?code=049128b9505521dc3198c97b1280a6ec791faac433cf860bb32ec7d82b46ab3a&state=ab21cc7555bd917873fad3fa7a39cc53b17a1fb976ddd398" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1164
+ Processing by AuthenticationsController#callback as HTML
1165
+ Parameters: {"code"=>"049128b9505521dc3198c97b1280a6ec791faac433cf860bb32ec7d82b46ab3a", "state"=>"ab21cc7555bd917873fad3fa7a39cc53b17a1fb976ddd398"}
1166
+ Authenticating with gds_sso strategy
1167
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1168
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1169
+  (0.0ms) begin transaction
1170
+ 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"]]
1171
+  (10.1ms) commit transaction
1172
+  (0.1ms) begin transaction
1173
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1174
+ - signin
1175
+ ' WHERE "users"."id" = 11
1176
+  (8.2ms) commit transaction
1177
+ Redirected to http://www.example-client.com/restricted
1178
+ Completed 302 Found in 24.8ms (ActiveRecord: 18.9ms)
1179
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1180
+ Processing by ExampleController#restricted as HTML
1181
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1182
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1183
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1184
+ Processing by ExampleController#restricted as HTML
1185
+ Authenticating with gds_sso strategy
1186
+ Completed in 0.3ms
1187
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:23 +0000
1188
+ Started GET "/auth/gds/callback?code=cb6168779f21e1ae0507ce5ec0ce3be7d3ba17dd05954f2c074eb3804337645a&state=6969c090136c3ae432e119aa0655152e820d6ec3bb7fc14f" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1189
+ Processing by AuthenticationsController#callback as HTML
1190
+ Parameters: {"code"=>"cb6168779f21e1ae0507ce5ec0ce3be7d3ba17dd05954f2c074eb3804337645a", "state"=>"6969c090136c3ae432e119aa0655152e820d6ec3bb7fc14f"}
1191
+ Authenticating with gds_sso strategy
1192
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1193
+  (0.1ms) begin transaction
1194
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1195
+ - signin
1196
+ ' WHERE "users"."id" = 11
1197
+  (22.2ms) commit transaction
1198
+  (0.1ms) begin transaction
1199
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1200
+ - signin
1201
+ ' WHERE "users"."id" = 11
1202
+  (22.4ms) commit transaction
1203
+ Redirected to http://www.example-client.com/restricted
1204
+ Completed 302 Found in 50.7ms (ActiveRecord: 45.4ms)
1205
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1206
+ Processing by ExampleController#restricted as HTML
1207
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1208
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1209
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1210
+ Processing by ExampleController#restricted as HTML
1211
+ Authenticating with gds_sso strategy
1212
+ Completed in 0.2ms
1213
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1214
+ Started GET "/auth/gds/callback?code=7f14e7c7739affebe4ca7b0535caeac4e026c09ccc1a2eb9d3a1002e04d2f177&state=c583c8001e465b1080b08504a0911847ef64edc3b8c971db" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1215
+ Processing by AuthenticationsController#callback as HTML
1216
+ Parameters: {"code"=>"7f14e7c7739affebe4ca7b0535caeac4e026c09ccc1a2eb9d3a1002e04d2f177", "state"=>"c583c8001e465b1080b08504a0911847ef64edc3b8c971db"}
1217
+ Authenticating with gds_sso strategy
1218
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1219
+  (0.0ms) begin transaction
1220
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1221
+ - signin
1222
+ ' WHERE "users"."id" = 11
1223
+  (17.9ms) commit transaction
1224
+  (0.1ms) begin transaction
1225
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1226
+ - signin
1227
+ ' WHERE "users"."id" = 11
1228
+  (19.5ms) commit transaction
1229
+ Redirected to http://www.example-client.com/restricted
1230
+ Completed 302 Found in 42.9ms (ActiveRecord: 38.2ms)
1231
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1232
+ Processing by ExampleController#restricted as HTML
1233
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1234
+ Completed 200 OK in 1.3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1235
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1236
+ Processing by ExampleController#this_requires_signin_permission as HTML
1237
+ Authenticating with gds_sso strategy
1238
+ Completed in 0.6ms
1239
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1240
+ Started GET "/auth/gds/callback?code=907b05f3cd27426b709220eb2f4a7560d300dd752c538e9c7ae82d514533ba9b&state=66b8a4232e98659ae9b17bbd6b6839a76bd692941aeec29f" for 127.0.0.1 at 2014-09-03 16:24:24 +0000
1241
+ Processing by AuthenticationsController#callback as HTML
1242
+ Parameters: {"code"=>"907b05f3cd27426b709220eb2f4a7560d300dd752c538e9c7ae82d514533ba9b", "state"=>"66b8a4232e98659ae9b17bbd6b6839a76bd692941aeec29f"}
1243
+ Authenticating with gds_sso strategy
1244
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1245
+  (0.0ms) begin transaction
1246
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1247
+ - signin
1248
+ ' WHERE "users"."id" = 11
1249
+  (12.5ms) commit transaction
1250
+  (0.1ms) begin transaction
1251
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1252
+ - signin
1253
+ ' WHERE "users"."id" = 11
1254
+  (6.6ms) commit transaction
1255
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1256
+ Completed 302 Found in 24.4ms (ActiveRecord: 19.7ms)
1257
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1258
+ Processing by ExampleController#this_requires_signin_permission as HTML
1259
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1260
+ Completed 200 OK in 1.9ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1261
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1262
+ Processing by ExampleController#this_requires_signin_permission as HTML
1263
+ Authenticating with gds_sso strategy
1264
+ Completed in 0.2ms
1265
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1266
+ Started GET "/auth/gds/callback?code=2dfe11eb90f9f53a53b3896bb324d69f4aa15f1ab78dacefcd0e546aafbc1eac&state=66007160269c5639731712be4bbe53648ce9722f8dae9c37" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1267
+ Processing by AuthenticationsController#callback as HTML
1268
+ Parameters: {"code"=>"2dfe11eb90f9f53a53b3896bb324d69f4aa15f1ab78dacefcd0e546aafbc1eac", "state"=>"66007160269c5639731712be4bbe53648ce9722f8dae9c37"}
1269
+ Authenticating with gds_sso strategy
1270
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1271
+  (0.0ms) begin transaction
1272
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1273
+ - signin
1274
+ ' WHERE "users"."id" = 11
1275
+  (12.2ms) commit transaction
1276
+  (0.1ms) begin transaction
1277
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1278
+ - signin
1279
+ ' WHERE "users"."id" = 11
1280
+  (5.9ms) commit transaction
1281
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1282
+ Completed 302 Found in 23.4ms (ActiveRecord: 18.7ms)
1283
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1284
+ Processing by ExampleController#this_requires_signin_permission as HTML
1285
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1286
+ Completed 200 OK in 1.4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1287
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1288
+ Processing by ExampleController#restricted as HTML
1289
+ Authenticating with gds_sso strategy
1290
+ Completed in 0.3ms
1291
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1292
+ Started GET "/auth/gds/callback?code=c0f574c3db995cc3c521030f1517b7b1ce5eab97ed404551ae84f498c66e57ce&state=a04fd6d7c61d384077a87fe5702d070783331ce0dd576fd1" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1293
+ Processing by AuthenticationsController#callback as HTML
1294
+ Parameters: {"code"=>"c0f574c3db995cc3c521030f1517b7b1ce5eab97ed404551ae84f498c66e57ce", "state"=>"a04fd6d7c61d384077a87fe5702d070783331ce0dd576fd1"}
1295
+ Authenticating with gds_sso strategy
1296
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1297
+  (0.1ms) begin transaction
1298
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1299
+ - signin
1300
+ ' WHERE "users"."id" = 11
1301
+  (11.6ms) commit transaction
1302
+  (0.1ms) begin transaction
1303
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1304
+ - signin
1305
+ ' WHERE "users"."id" = 11
1306
+  (11.8ms) commit transaction
1307
+ Redirected to http://www.example-client.com/restricted
1308
+ Completed 302 Found in 29.1ms (ActiveRecord: 24.0ms)
1309
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1310
+ Processing by ExampleController#restricted as HTML
1311
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1312
+ Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1313
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
1314
+  (0.0ms) begin transaction
1315
+  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
1316
+ - signin
1317
+ ' WHERE "users"."id" = 11
1318
+  (10.9ms) commit transaction
1319
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1320
+ Processing by ExampleController#restricted as HTML
1321
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1322
+ Authenticating with gds_sso strategy
1323
+ Completed in 1.0ms
1324
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:25 +0000
1325
+ Started GET "/auth/gds/callback?code=c696436a1cd23a3c8ebba0e7a0915ae1bd89080e3ab367bfd3b93e815ffad456&state=d8d9a434871214c3ce9e329194088c23b4d03eecf12eb862" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1326
+ Processing by AuthenticationsController#callback as HTML
1327
+ Parameters: {"code"=>"c696436a1cd23a3c8ebba0e7a0915ae1bd89080e3ab367bfd3b93e815ffad456", "state"=>"d8d9a434871214c3ce9e329194088c23b4d03eecf12eb862"}
1328
+ Authenticating with gds_sso strategy
1329
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1330
+  (0.0ms) begin transaction
1331
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1332
+ - signin
1333
+ ' WHERE "users"."id" = 11
1334
+  (11.2ms) commit transaction
1335
+  (0.1ms) begin transaction
1336
+  (0.1ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
1337
+ - signin
1338
+ ' WHERE "users"."id" = 11
1339
+  (9.7ms) commit transaction
1340
+ Redirected to http://www.example-client.com/restricted
1341
+ Completed 302 Found in 25.6ms (ActiveRecord: 21.4ms)
1342
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1343
+ Processing by ExampleController#restricted as HTML
1344
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1345
+ Completed 200 OK in 1.3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1346
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1347
+ Processing by ExampleController#restricted as HTML
1348
+ Authenticating with gds_sso strategy
1349
+ Completed in 0.2ms
1350
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1351
+ Started GET "/auth/gds/callback?code=832cd58ace2579f1fc60b3613ff253ff9b866654d2443df6382acc1e3bf50669&state=bfc736d7bc8f869f4fe12b89d0617c6900a13c024c8f49bd" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1352
+ Processing by AuthenticationsController#callback as HTML
1353
+ Parameters: {"code"=>"832cd58ace2579f1fc60b3613ff253ff9b866654d2443df6382acc1e3bf50669", "state"=>"bfc736d7bc8f869f4fe12b89d0617c6900a13c024c8f49bd"}
1354
+ Authenticating with gds_sso strategy
1355
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1356
+  (0.1ms) begin transaction
1357
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1358
+ - signin
1359
+ ' WHERE "users"."id" = 11
1360
+  (11.1ms) commit transaction
1361
+  (0.0ms) begin transaction
1362
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1363
+ - signin
1364
+ ' WHERE "users"."id" = 11
1365
+  (10.5ms) commit transaction
1366
+ Redirected to http://www.example-client.com/restricted
1367
+ Completed 302 Found in 26.7ms (ActiveRecord: 22.2ms)
1368
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1369
+ Processing by ExampleController#restricted as HTML
1370
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1371
+ Completed 200 OK in 1.6ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1372
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:26 +0000
1373
+ Processing by ExampleController#restricted as HTML
1374
+ Authenticating with gds_sso strategy
1375
+ Completed in 0.4ms
1376
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:29:26 +0000
1377
+ Started GET "/auth/gds/callback?code=ec82ea483bc36e92586817b9ea903c904e974e3a3992c84cac7cb6b80cb557f0&state=a82626753c9adacef196a3ce99b42fc2faf27a0746bbe073" for 127.0.0.1 at 2014-09-04 12:29:26 +0000
1378
+ Processing by AuthenticationsController#callback as HTML
1379
+ Parameters: {"code"=>"ec82ea483bc36e92586817b9ea903c904e974e3a3992c84cac7cb6b80cb557f0", "state"=>"a82626753c9adacef196a3ce99b42fc2faf27a0746bbe073"}
1380
+ Authenticating with gds_sso strategy
1381
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1382
+  (0.1ms) begin transaction
1383
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1384
+ - signin
1385
+ ' WHERE "users"."id" = 11
1386
+  (9.6ms) commit transaction
1387
+  (0.1ms) begin transaction
1388
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1389
+ - signin
1390
+ ' WHERE "users"."id" = 11
1391
+  (29.2ms) commit transaction
1392
+ Redirected to http://www.example-client.com/restricted
1393
+ Completed 302 Found in 44.1ms (ActiveRecord: 39.4ms)
1394
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:26 +0000
1395
+ Processing by ExampleController#restricted as HTML
1396
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1397
+ Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1398
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1399
+ Processing by ExampleController#restricted as HTML
1400
+ Authenticating with gds_sso strategy
1401
+ Completed in 0.2ms
1402
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:26 +0000
1403
+ Started GET "/auth/gds/callback?code=371c417edad02f67c5e78149169a71d28218c69bfa6b68ea6bddc7a977590f9a&state=4795bf9e9b82dfd340befc84f4f70fd8c952020d9f1b7540" for 127.0.0.1 at 2014-09-03 16:24:27 +0000
1404
+ Processing by AuthenticationsController#callback as HTML
1405
+ Parameters: {"code"=>"371c417edad02f67c5e78149169a71d28218c69bfa6b68ea6bddc7a977590f9a", "state"=>"4795bf9e9b82dfd340befc84f4f70fd8c952020d9f1b7540"}
1406
+ Authenticating with gds_sso strategy
1407
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1408
+  (0.0ms) begin transaction
1409
+  (0.1ms) UPDATE "users" SET "permissions" = '---
1410
+ - signin
1411
+ ' WHERE "users"."id" = 11
1412
+  (9.7ms) commit transaction
1413
+  (0.1ms) begin transaction
1414
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1415
+ - signin
1416
+ ' WHERE "users"."id" = 11
1417
+  (8.5ms) commit transaction
1418
+ Redirected to http://www.example-client.com/restricted
1419
+ Completed 302 Found in 23.6ms (ActiveRecord: 18.8ms)
1420
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:27 +0000
1421
+ Processing by ExampleController#restricted as HTML
1422
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1423
+ Completed 200 OK in 1.6ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1424
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:19:27 +0000
1425
+ Processing by ExampleController#restricted as HTML
1426
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
1427
+ Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1428
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:27 +0000
1429
+ Processing by ExampleController#restricted as JSON
1430
+ Completed in 15.3ms
1431
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:27 +0000
1432
+ Processing by ExampleController#restricted as JSON
1433
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1434
+  (0.1ms) begin transaction
1435
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1436
+ - signin
1437
+ ' WHERE "users"."id" = 11
1438
+  (11.8ms) commit transaction
1439
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1440
+  (0.0ms) begin transaction
1441
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1442
+ - signin
1443
+ ' WHERE "users"."id" = 11
1444
+  (25.5ms) commit transaction
1445
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1446
+  (0.0ms) begin transaction
1447
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1448
+ - signin
1449
+ ' WHERE "users"."id" = 11
1450
+  (8.8ms) commit transaction
1451
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1452
+  (0.0ms) begin transaction
1453
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1454
+ - signin
1455
+ ' WHERE "users"."id" = 11
1456
+  (8.3ms) commit transaction
1457
+  (0.1ms) begin transaction
1458
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1459
+ - signin
1460
+ ' WHERE "users"."id" = 11
1461
+  (10.2ms) commit transaction
1462
+ Completed 200 OK in 208.4ms (Views: 0.4ms | ActiveRecord: 66.5ms)
1463
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:28 +0000
1464
+ Processing by ExampleController#this_requires_signin_permission as JSON
1465
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1466
+  (0.0ms) begin transaction
1467
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1468
+ - signin
1469
+ ' WHERE "users"."id" = 11
1470
+  (8.6ms) commit transaction
1471
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1472
+  (0.0ms) begin transaction
1473
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1474
+ - signin
1475
+ ' WHERE "users"."id" = 11
1476
+  (10.5ms) commit transaction
1477
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1478
+  (0.0ms) begin transaction
1479
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1480
+ - signin
1481
+ ' WHERE "users"."id" = 11
1482
+  (9.1ms) commit transaction
1483
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
1484
+  (0.0ms) begin transaction
1485
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1486
+ - signin
1487
+ ' WHERE "users"."id" = 11
1488
+  (11.6ms) commit transaction
1489
+  (0.1ms) begin transaction
1490
+  (0.2ms) UPDATE "users" SET "permissions" = '---
1491
+ - signin
1492
+ ' WHERE "users"."id" = 11
1493
+  (8.9ms) commit transaction
1494
+ Completed 200 OK in 193.9ms (Views: 0.4ms | ActiveRecord: 50.6ms)
1495
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:28 +0000
1496
+ Processing by ExampleController#restricted as JSON
1497
+ Completed in 14.6ms
1498
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:46 +0000
1499
+ Processing by ExampleController#this_requires_signin_permission as HTML
1500
+ Authenticating with gds_sso strategy
1501
+ Completed in 14ms
1502
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:46 +0000
1503
+ Started GET "/auth/gds/callback?code=ddd5761525b76f952b2bf9a4e82d1e9a6d8a160c30f470ac71d475101ec29f46&state=6c57dabed9d0f7df34eb96db8c3496e9a4f5a163890d5ec0" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1504
+ Processing by AuthenticationsController#callback as HTML
1505
+ Parameters: {"code"=>"ddd5761525b76f952b2bf9a4e82d1e9a6d8a160c30f470ac71d475101ec29f46", "state"=>"6c57dabed9d0f7df34eb96db8c3496e9a4f5a163890d5ec0"}
1506
+ Authenticating with gds_sso strategy
1507
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1508
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1509
+  (0.1ms) begin transaction
1510
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
1511
+  (7.7ms) commit transaction
1512
+  (0.1ms) begin transaction
1513
+ SQL (2.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1514
+  (14.4ms) commit transaction
1515
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1516
+ Completed 302 Found in 46ms (ActiveRecord: 25.6ms)
1517
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1518
+ Processing by ExampleController#this_requires_signin_permission as HTML
1519
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1520
+ Rendered text template (0.1ms)
1521
+ Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.2ms)
1522
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1523
+ Processing by ExampleController#this_requires_signin_permission as HTML
1524
+ Authenticating with gds_sso strategy
1525
+ Completed in 0ms
1526
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1527
+ Started GET "/auth/gds/callback?code=6cb9db3c52b8b3a0cd353f94d6c098abcbe6199055e14f7f1c66898e83536966&state=88c7780d960e96286d3041f8d3212594b3f776d0651702ba" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1528
+ Processing by AuthenticationsController#callback as HTML
1529
+ Parameters: {"code"=>"6cb9db3c52b8b3a0cd353f94d6c098abcbe6199055e14f7f1c66898e83536966", "state"=>"88c7780d960e96286d3041f8d3212594b3f776d0651702ba"}
1530
+ Authenticating with gds_sso strategy
1531
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1532
+  (0.1ms) begin transaction
1533
+ SQL (0.3ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1534
+  (10.5ms) commit transaction
1535
+  (0.1ms) begin transaction
1536
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1537
+  (7.9ms) commit transaction
1538
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1539
+ Completed 302 Found in 24ms (ActiveRecord: 19.2ms)
1540
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1541
+ Processing by ExampleController#this_requires_signin_permission as HTML
1542
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1543
+ Rendered text template (0.0ms)
1544
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1545
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1546
+ Processing by ExampleController#restricted as HTML
1547
+ Authenticating with gds_sso strategy
1548
+ Completed in 0ms
1549
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1550
+ Started GET "/auth/gds/callback?code=50126bf7ad712c0b5759a70f0f31a1fcb815b110b7e8180cad459d991711a79e&state=df77d8f6da7b58f64c8ece48935711fbdac1dd105f717e06" for 127.0.0.1 at 2014-09-03 16:24:47 +0000
1551
+ Processing by AuthenticationsController#callback as HTML
1552
+ Parameters: {"code"=>"50126bf7ad712c0b5759a70f0f31a1fcb815b110b7e8180cad459d991711a79e", "state"=>"df77d8f6da7b58f64c8ece48935711fbdac1dd105f717e06"}
1553
+ Authenticating with gds_sso strategy
1554
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1555
+  (0.1ms) begin transaction
1556
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1557
+  (13.5ms) commit transaction
1558
+  (0.1ms) begin transaction
1559
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1560
+  (9.9ms) commit transaction
1561
+ Redirected to http://www.example-client.com/restricted
1562
+ Completed 302 Found in 29ms (ActiveRecord: 24.1ms)
1563
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1564
+ Processing by ExampleController#restricted as HTML
1565
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1566
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1567
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1568
+ Processing by ExampleController#restricted as HTML
1569
+ Authenticating with gds_sso strategy
1570
+ Completed in 0ms
1571
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1572
+ Started GET "/auth/gds/callback?code=382c08e4766dce4b4b0dc6955ed5ca6f14ecd65aaff441dbddb0534e7d95b8ae&state=b4ea8759e56dea634dcb7628ea2a61270937c7952b057281" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1573
+ Processing by AuthenticationsController#callback as HTML
1574
+ Parameters: {"code"=>"382c08e4766dce4b4b0dc6955ed5ca6f14ecd65aaff441dbddb0534e7d95b8ae", "state"=>"b4ea8759e56dea634dcb7628ea2a61270937c7952b057281"}
1575
+ Authenticating with gds_sso strategy
1576
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1577
+  (0.1ms) begin transaction
1578
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1579
+  (10.7ms) commit transaction
1580
+  (0.1ms) begin transaction
1581
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1582
+  (9.6ms) commit transaction
1583
+ Redirected to http://www.example-client.com/restricted
1584
+ Completed 302 Found in 25ms (ActiveRecord: 20.9ms)
1585
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1586
+ Processing by ExampleController#restricted as HTML
1587
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1588
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1589
+ Started GET "/" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1590
+ Processing by ExampleController#index as HTML
1591
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1592
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1593
+ Processing by ExampleController#restricted as HTML
1594
+ Authenticating with gds_sso strategy
1595
+ Completed in 0ms
1596
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1597
+ Started GET "/auth/gds/callback?code=3dac6ac9387873f76ecbc44bcbd0c087cdb798db4d1ccbba60e6510b452b9521&state=9d324f22911cd867e4dde2b9c492d84746d3eda88f042a23" for 127.0.0.1 at 2014-09-03 16:24:48 +0000
1598
+ Processing by AuthenticationsController#callback as HTML
1599
+ Parameters: {"code"=>"3dac6ac9387873f76ecbc44bcbd0c087cdb798db4d1ccbba60e6510b452b9521", "state"=>"9d324f22911cd867e4dde2b9c492d84746d3eda88f042a23"}
1600
+ Authenticating with gds_sso strategy
1601
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1602
+  (0.1ms) begin transaction
1603
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1604
+  (9.6ms) commit transaction
1605
+  (0.1ms) begin transaction
1606
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1607
+  (12.4ms) commit transaction
1608
+ Redirected to http://www.example-client.com/restricted
1609
+ Completed 302 Found in 28ms (ActiveRecord: 22.8ms)
1610
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1611
+ Processing by ExampleController#restricted as HTML
1612
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1613
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1614
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1615
+ Processing by ExampleController#restricted as HTML
1616
+ Authenticating with gds_sso strategy
1617
+ Completed in 0ms
1618
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1619
+ Started GET "/auth/gds/callback?code=0f281d6794a806828440b67e427ae0dd997f531f63a9601b28d8c49f5d770ff4&state=9c04e464017635d714e53cb2bcc017f74b96d6a93e2c3e52" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1620
+ Processing by AuthenticationsController#callback as HTML
1621
+ Parameters: {"code"=>"0f281d6794a806828440b67e427ae0dd997f531f63a9601b28d8c49f5d770ff4", "state"=>"9c04e464017635d714e53cb2bcc017f74b96d6a93e2c3e52"}
1622
+ Authenticating with gds_sso strategy
1623
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1624
+  (0.1ms) begin transaction
1625
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1626
+  (8.4ms) commit transaction
1627
+  (0.1ms) begin transaction
1628
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1629
+  (13.3ms) commit transaction
1630
+ Redirected to http://www.example-client.com/restricted
1631
+ Completed 302 Found in 27ms (ActiveRecord: 22.3ms)
1632
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1633
+ Processing by ExampleController#restricted as HTML
1634
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1635
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1636
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1637
+  (0.1ms) begin transaction
1638
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1639
+  (83.0ms) commit transaction
1640
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1641
+ Processing by ExampleController#restricted as HTML
1642
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1643
+ Authenticating with gds_sso strategy
1644
+ Completed in 1ms
1645
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1646
+ Started GET "/auth/gds/callback?code=5736b56828296a18869c885db51a79a00c1966ab69e04b9762448571a5a30aa3&state=8fa00e8df8cb520d1f631fd94acc19c2e146751f31e9f161" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1647
+ Processing by AuthenticationsController#callback as HTML
1648
+ Parameters: {"code"=>"5736b56828296a18869c885db51a79a00c1966ab69e04b9762448571a5a30aa3", "state"=>"8fa00e8df8cb520d1f631fd94acc19c2e146751f31e9f161"}
1649
+ Authenticating with gds_sso strategy
1650
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1651
+  (0.1ms) begin transaction
1652
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1653
+  (13.1ms) commit transaction
1654
+  (0.1ms) begin transaction
1655
+ SQL (0.2ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 1 [["remotely_signed_out", false], ["permissions", "---\n- signin\n"]]
1656
+  (13.4ms) commit transaction
1657
+ Redirected to http://www.example-client.com/restricted
1658
+ Completed 302 Found in 31ms (ActiveRecord: 27.1ms)
1659
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:49 +0000
1660
+ Processing by ExampleController#restricted as HTML
1661
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1662
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1663
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1664
+ Processing by ExampleController#restricted as HTML
1665
+ Authenticating with gds_sso strategy
1666
+ Completed in 1ms
1667
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1668
+ Started GET "/auth/gds/callback?code=dd673a9dd18c1b96c56da7203aa3692f6d80be4970dcbfc1494677490063d682&state=c7df9c834454ca17b37c8f73e812267ddd7fc03c64c9cc09" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1669
+ Processing by AuthenticationsController#callback as HTML
1670
+ Parameters: {"code"=>"dd673a9dd18c1b96c56da7203aa3692f6d80be4970dcbfc1494677490063d682", "state"=>"c7df9c834454ca17b37c8f73e812267ddd7fc03c64c9cc09"}
1671
+ Authenticating with gds_sso strategy
1672
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1673
+  (0.1ms) begin transaction
1674
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1675
+  (10.6ms) commit transaction
1676
+  (0.1ms) begin transaction
1677
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1678
+  (12.7ms) commit transaction
1679
+ Redirected to http://www.example-client.com/restricted
1680
+ Completed 302 Found in 29ms (ActiveRecord: 24.1ms)
1681
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1682
+ Processing by ExampleController#restricted as HTML
1683
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1684
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1685
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:50 +0000
1686
+ Processing by ExampleController#restricted as HTML
1687
+ Authenticating with gds_sso strategy
1688
+ Completed in 1ms
1689
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:29:50 +0000
1690
+ Started GET "/auth/gds/callback?code=3a6dbf5531e084fd07832634d62c6ec45d505d6f0686f824f05ab539f5933af5&state=e25373d8b0f085616b3b3665de623de1cef7f6ea1c2a7d39" for 127.0.0.1 at 2014-09-04 12:29:50 +0000
1691
+ Processing by AuthenticationsController#callback as HTML
1692
+ Parameters: {"code"=>"3a6dbf5531e084fd07832634d62c6ec45d505d6f0686f824f05ab539f5933af5", "state"=>"e25373d8b0f085616b3b3665de623de1cef7f6ea1c2a7d39"}
1693
+ Authenticating with gds_sso strategy
1694
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1695
+  (0.1ms) begin transaction
1696
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1697
+  (13.1ms) commit transaction
1698
+  (0.1ms) begin transaction
1699
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1700
+  (18.1ms) commit transaction
1701
+ Redirected to http://www.example-client.com/restricted
1702
+ Completed 302 Found in 37ms (ActiveRecord: 32.0ms)
1703
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:29:50 +0000
1704
+ Processing by ExampleController#restricted as HTML
1705
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1706
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1707
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1708
+ Processing by ExampleController#restricted as HTML
1709
+ Authenticating with gds_sso strategy
1710
+ Completed in 0ms
1711
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:24:50 +0000
1712
+ Started GET "/auth/gds/callback?code=b75851e9964d13277986d75879fa9bda0abbe249fe91aeeec3d6cc81128f8de9&state=285ad78a156a0d7361e8495e7f3f77c23e0436d69ebfd3e3" for 127.0.0.1 at 2014-09-03 16:24:51 +0000
1713
+ Processing by AuthenticationsController#callback as HTML
1714
+ Parameters: {"code"=>"b75851e9964d13277986d75879fa9bda0abbe249fe91aeeec3d6cc81128f8de9", "state"=>"285ad78a156a0d7361e8495e7f3f77c23e0436d69ebfd3e3"}
1715
+ Authenticating with gds_sso strategy
1716
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1717
+  (0.1ms) begin transaction
1718
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1719
+  (21.3ms) commit transaction
1720
+  (0.1ms) begin transaction
1721
+ SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1722
+  (13.0ms) commit transaction
1723
+ Redirected to http://www.example-client.com/restricted
1724
+ Completed 302 Found in 40ms (ActiveRecord: 35.1ms)
1725
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:51 +0000
1726
+ Processing by ExampleController#restricted as HTML
1727
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1728
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1729
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:19:51 +0000
1730
+ Processing by ExampleController#restricted as HTML
1731
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1732
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1733
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:51 +0000
1734
+ Processing by ExampleController#restricted as JSON
1735
+ Completed in 16ms
1736
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:24:51 +0000
1737
+ Processing by ExampleController#this_requires_signin_permission as JSON
1738
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1739
+  (0.1ms) begin transaction
1740
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1741
+  (7.2ms) commit transaction
1742
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1743
+  (0.1ms) begin transaction
1744
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1745
+  (7.9ms) commit transaction
1746
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1747
+  (0.1ms) begin transaction
1748
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1749
+  (9.1ms) commit transaction
1750
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1751
+  (0.1ms) begin transaction
1752
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1753
+  (9.5ms) commit transaction
1754
+  (0.1ms) begin transaction
1755
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1756
+  (9.9ms) commit transaction
1757
+ Completed 200 OK in 174ms (Views: 0.4ms | ActiveRecord: 45.7ms)
1758
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:52 +0000
1759
+ Processing by ExampleController#restricted as JSON
1760
+ Completed in 12ms
1761
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:24:52 +0000
1762
+ Processing by ExampleController#restricted as JSON
1763
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1764
+  (0.1ms) begin transaction
1765
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1766
+  (8.7ms) commit transaction
1767
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1768
+  (0.1ms) begin transaction
1769
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1770
+  (6.8ms) commit transaction
1771
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1772
+  (0.1ms) begin transaction
1773
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1774
+  (8.7ms) commit transaction
1775
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1776
+  (0.1ms) begin transaction
1777
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1778
+  (7.5ms) commit transaction
1779
+  (0.1ms) begin transaction
1780
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 1 [["permissions", "---\n- signin\n"]]
1781
+  (9.8ms) commit transaction
1782
+ Completed 200 OK in 176ms (Views: 0.4ms | ActiveRecord: 43.5ms)
1783
+  (0.1ms) begin transaction
1784
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38772"]]
1785
+  (11.4ms) commit transaction
1786
+  (0.1ms) begin transaction
1787
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d33047"]]
1788
+  (11.0ms) commit transaction
1789
+ Processing by Api::UserController#update as HTML
1790
+ Parameters: {"uid"=>"a1s2d38772"}
1791
+ Completed 403 Forbidden in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
1792
+  (0.1ms) begin transaction
1793
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38969"]]
1794
+  (13.0ms) commit transaction
1795
+  (0.1ms) begin transaction
1796
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d37935"]]
1797
+  (12.4ms) commit transaction
1798
+ Processing by Api::UserController#update as HTML
1799
+ Parameters: {"uid"=>"a1s2d38969"}
1800
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38969' ORDER BY "users"."id" ASC LIMIT 1
1801
+  (0.1ms) begin transaction
1802
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "permissions" = ?, "organisation_slug" = ? WHERE "users"."id" = 4 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["permissions", "---\n- signin\n- new permission\n"], ["organisation_slug", "justice-league"]]
1803
+  (11.3ms) commit transaction
1804
+ Completed 200 OK in 15ms (ActiveRecord: 11.9ms)
1805
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
1806
+  (0.1ms) begin transaction
1807
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d34395"]]
1808
+  (13.4ms) commit transaction
1809
+  (0.1ms) begin transaction
1810
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3860"]]
1811
+  (15.0ms) commit transaction
1812
+ Processing by Api::UserController#reauth as HTML
1813
+ Parameters: {"uid"=>"a1s2d34395"}
1814
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34395' ORDER BY "users"."id" ASC LIMIT 1
1815
+  (0.1ms) begin transaction
1816
+ SQL (0.3ms) UPDATE "users" SET "remotely_signed_out" = ?, "permissions" = ? WHERE "users"."id" = 6 [["remotely_signed_out", true], ["permissions", "---\n- signin\n"]]
1817
+  (9.8ms) commit transaction
1818
+ Completed 200 OK in 13ms (ActiveRecord: 10.4ms)
1819
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
1820
+  (0.1ms) begin transaction
1821
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d39713"]]
1822
+  (14.2ms) commit transaction
1823
+  (0.1ms) begin transaction
1824
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32695"]]
1825
+  (23.3ms) commit transaction
1826
+ Processing by Api::UserController#reauth as HTML
1827
+ Parameters: {"uid"=>"nonexistent-user"}
1828
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1829
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1830
+  (0.1ms) begin transaction
1831
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38178"]]
1832
+  (23.0ms) commit transaction
1833
+  (0.1ms) begin transaction
1834
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d32182"]]
1835
+  (13.4ms) commit transaction
1836
+ Processing by Api::UserController#reauth as HTML
1837
+ Parameters: {"uid"=>"a1s2d38178"}
1838
+ Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1839
+  (0.1ms) begin transaction
1840
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d36870"]]
1841
+  (15.5ms) commit transaction
1842
+  (0.1ms) begin transaction
1843
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d37225"]]
1844
+  (10.1ms) commit transaction
1845
+ Processing by Api::UserController#update as HTML
1846
+ Parameters: {"uid"=>"a1s2d36870"}
1847
+ Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
1848
+ Completed 403 Forbidden in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
1849
+  (0.1ms) begin transaction
1850
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d38375"]]
1851
+  (19.0ms) commit transaction
1852
+  (0.1ms) begin transaction
1853
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3392"]]
1854
+  (13.5ms) commit transaction
1855
+ Processing by Api::UserController#update as HTML
1856
+ Parameters: {"uid"=>"a1s2d38375"}
1857
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38375' ORDER BY "users"."id" ASC LIMIT 1
1858
+  (0.1ms) begin transaction
1859
+ SQL (0.2ms) UPDATE "users" SET "email" = ?, "name" = ?, "organisation_slug" = ?, "permissions" = ? WHERE "users"."id" = 3 [["email", "user@domain.com"], ["name", "Joshua Marshall"], ["organisation_slug", "justice-league"], ["permissions", "---\n- signin\n- new permission\n"]]
1860
+  (18.5ms) commit transaction
1861
+ Completed 200 OK in 28ms (ActiveRecord: 19.0ms)
1862
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
1863
+  (0.1ms) begin transaction
1864
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d33946"]]
1865
+  (7.8ms) commit transaction
1866
+  (0.1ms) begin transaction
1867
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d31968"]]
1868
+  (14.5ms) commit transaction
1869
+ Processing by Api::UserController#reauth as HTML
1870
+ Parameters: {"uid"=>"a1s2d33946"}
1871
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33946' ORDER BY "users"."id" ASC LIMIT 1
1872
+  (0.1ms) begin transaction
1873
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 5 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
1874
+  (22.3ms) commit transaction
1875
+ Completed 200 OK in 25ms (ActiveRecord: 22.8ms)
1876
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
1877
+  (0.1ms) begin transaction
1878
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d32133"]]
1879
+  (26.2ms) commit transaction
1880
+  (0.1ms) begin transaction
1881
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d3488"]]
1882
+  (14.3ms) commit transaction
1883
+ Processing by Api::UserController#reauth as HTML
1884
+ Parameters: {"uid"=>"nonexistent-user"}
1885
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' ORDER BY "users"."id" ASC LIMIT 1
1886
+ Completed 200 OK in 1ms (ActiveRecord: 0.2ms)
1887
+  (0.1ms) begin transaction
1888
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "---\n- signin\n"], ["uid", "a1s2d35011"]]
1889
+  (11.9ms) commit transaction
1890
+  (0.1ms) begin transaction
1891
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["permissions", "---\n- signin\n- user_update_permission\n"], ["uid", "a1s2d34765"]]
1892
+  (10.1ms) commit transaction
1893
+ Processing by Api::UserController#reauth as HTML
1894
+ Parameters: {"uid"=>"a1s2d35011"}
1895
+ Completed 403 Forbidden in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1896
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:10 +0000
1897
+ Processing by ExampleController#this_requires_signin_permission as HTML
1898
+ Authenticating with gds_sso strategy
1899
+ Completed in 15ms
1900
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:10 +0000
1901
+ Started GET "/auth/gds/callback?code=e64513342e8863f7f5a471060db383853c3b059da995f7ed800c7def93c9866d&state=58f649d4f4d3380ff98f7b72acaf6562f23a156086403b03" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1902
+ Processing by AuthenticationsController#callback as HTML
1903
+ Parameters: {"code"=>"e64513342e8863f7f5a471060db383853c3b059da995f7ed800c7def93c9866d", "state"=>"58f649d4f4d3380ff98f7b72acaf6562f23a156086403b03"}
1904
+ Authenticating with gds_sso strategy
1905
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1906
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
1907
+  (0.1ms) begin transaction
1908
+ SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "uid") VALUES (?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "---\n- signin\n"], ["uid", "integration-uid"]]
1909
+  (44.1ms) commit transaction
1910
+  (0.1ms) begin transaction
1911
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
1912
+  (54.6ms) commit transaction
1913
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1914
+ Completed 302 Found in 105ms (ActiveRecord: 99.5ms)
1915
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1916
+ Processing by ExampleController#this_requires_signin_permission as HTML
1917
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1918
+ Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.2ms)
1919
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1920
+ Processing by ExampleController#this_requires_signin_permission as HTML
1921
+ Authenticating with gds_sso strategy
1922
+ Completed in 0ms
1923
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1924
+ Started GET "/auth/gds/callback?code=02ee52ba09c3dffa5b55732871d5d9bf3024bb40a53be7b86f48c4c6cd6de671&state=f4a3ec8e33aa25d81c1e9b4b43f033ae4c3e8d8ec31d0ddb" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1925
+ Processing by AuthenticationsController#callback as HTML
1926
+ Parameters: {"code"=>"02ee52ba09c3dffa5b55732871d5d9bf3024bb40a53be7b86f48c4c6cd6de671", "state"=>"f4a3ec8e33aa25d81c1e9b4b43f033ae4c3e8d8ec31d0ddb"}
1927
+ Authenticating with gds_sso strategy
1928
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1929
+  (0.1ms) begin transaction
1930
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1931
+  (37.2ms) commit transaction
1932
+  (0.1ms) begin transaction
1933
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1934
+  (25.1ms) commit transaction
1935
+ Redirected to http://www.example-client.com/this_requires_signin_permission
1936
+ Completed 302 Found in 68ms (ActiveRecord: 63.1ms)
1937
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:11 +0000
1938
+ Processing by ExampleController#this_requires_signin_permission as HTML
1939
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1940
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1941
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1942
+ Processing by ExampleController#restricted as HTML
1943
+ Authenticating with gds_sso strategy
1944
+ Completed in 0ms
1945
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1946
+ Started GET "/auth/gds/callback?code=9157de77d24ed08e94e9b1eda42afbc86d60456debbad73860627bafedf415f3&state=666e68ab435046d2eb4b6fd49a4d001c7477e2a149ac6efe" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1947
+ Processing by AuthenticationsController#callback as HTML
1948
+ Parameters: {"code"=>"9157de77d24ed08e94e9b1eda42afbc86d60456debbad73860627bafedf415f3", "state"=>"666e68ab435046d2eb4b6fd49a4d001c7477e2a149ac6efe"}
1949
+ Authenticating with gds_sso strategy
1950
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1951
+  (0.1ms) begin transaction
1952
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1953
+  (20.6ms) commit transaction
1954
+  (0.1ms) begin transaction
1955
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1956
+  (19.6ms) commit transaction
1957
+ Redirected to http://www.example-client.com/restricted
1958
+ Completed 302 Found in 46ms (ActiveRecord: 40.9ms)
1959
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1960
+ Processing by ExampleController#restricted as HTML
1961
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1962
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1963
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1964
+ Processing by ExampleController#restricted as HTML
1965
+ Authenticating with gds_sso strategy
1966
+ Completed in 0ms
1967
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1968
+ Started GET "/auth/gds/callback?code=2a203e2d0b3fc56dd597f968e4f49dbdae41d596ca89bef1e95b089892946d57&state=83e8bdbe59d0263eb6333c298791ba43f369f6e79b58e843" for 127.0.0.1 at 2014-09-03 16:25:12 +0000
1969
+ Processing by AuthenticationsController#callback as HTML
1970
+ Parameters: {"code"=>"2a203e2d0b3fc56dd597f968e4f49dbdae41d596ca89bef1e95b089892946d57", "state"=>"83e8bdbe59d0263eb6333c298791ba43f369f6e79b58e843"}
1971
+ Authenticating with gds_sso strategy
1972
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1973
+  (0.1ms) begin transaction
1974
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1975
+  (13.6ms) commit transaction
1976
+  (0.1ms) begin transaction
1977
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1978
+  (28.0ms) commit transaction
1979
+ Redirected to http://www.example-client.com/restricted
1980
+ Completed 302 Found in 47ms (ActiveRecord: 42.5ms)
1981
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1982
+ Processing by ExampleController#restricted as HTML
1983
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
1984
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1985
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1986
+ Processing by ExampleController#restricted as HTML
1987
+ Authenticating with gds_sso strategy
1988
+ Completed in 0ms
1989
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1990
+ Started GET "/auth/gds/callback?code=3c645a0c67cfa681c943c91b45ca7fa51137117e82e91632812cf656460dd09f&state=c763a0d8537d3cc3bd64f4e5271fa380b2bdcd56a965008a" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
1991
+ Processing by AuthenticationsController#callback as HTML
1992
+ Parameters: {"code"=>"3c645a0c67cfa681c943c91b45ca7fa51137117e82e91632812cf656460dd09f", "state"=>"c763a0d8537d3cc3bd64f4e5271fa380b2bdcd56a965008a"}
1993
+ Authenticating with gds_sso strategy
1994
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
1995
+  (0.1ms) begin transaction
1996
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
1997
+  (25.7ms) commit transaction
1998
+  (0.1ms) begin transaction
1999
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2000
+  (9.8ms) commit transaction
2001
+ Redirected to http://www.example-client.com/restricted
2002
+ Completed 302 Found in 40ms (ActiveRecord: 36.1ms)
2003
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
2004
+ Processing by ExampleController#restricted as HTML
2005
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2006
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2007
+ Started GET "/" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
2008
+ Processing by ExampleController#index as HTML
2009
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2010
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
2011
+ Processing by ExampleController#restricted as HTML
2012
+ Authenticating with gds_sso strategy
2013
+ Completed in 1ms
2014
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:13 +0000
2015
+ Started GET "/auth/gds/callback?code=94c7888da7f291892f34a985113b2a8a712573cbe8c7aa6723e58bca705fa3af&state=6c9518d8a3866dc01171e5f4d7e22641b6a6fdfbcbde20d3" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2016
+ Processing by AuthenticationsController#callback as HTML
2017
+ Parameters: {"code"=>"94c7888da7f291892f34a985113b2a8a712573cbe8c7aa6723e58bca705fa3af", "state"=>"6c9518d8a3866dc01171e5f4d7e22641b6a6fdfbcbde20d3"}
2018
+ Authenticating with gds_sso strategy
2019
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2020
+  (0.1ms) begin transaction
2021
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2022
+  (23.2ms) commit transaction
2023
+  (0.1ms) begin transaction
2024
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2025
+  (19.4ms) commit transaction
2026
+ Redirected to http://www.example-client.com/restricted
2027
+ Completed 302 Found in 49ms (ActiveRecord: 43.5ms)
2028
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2029
+ Processing by ExampleController#restricted as HTML
2030
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2031
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2032
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' ORDER BY "users"."id" ASC LIMIT 1
2033
+  (0.1ms) begin transaction
2034
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "t"]]
2035
+  (14.8ms) commit transaction
2036
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2037
+ Processing by ExampleController#restricted as HTML
2038
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2039
+ Authenticating with gds_sso strategy
2040
+ Completed in 1ms
2041
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2042
+ Started GET "/auth/gds/callback?code=a537dd6615e7850e1c7652a598ba2a66ee2be7db53d656ea9db6a30f7dce5354&state=4b15a8e0f033f2acb99ae0f22e4edc2195eb4008bd9bdffe" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2043
+ Processing by AuthenticationsController#callback as HTML
2044
+ Parameters: {"code"=>"a537dd6615e7850e1c7652a598ba2a66ee2be7db53d656ea9db6a30f7dce5354", "state"=>"4b15a8e0f033f2acb99ae0f22e4edc2195eb4008bd9bdffe"}
2045
+ Authenticating with gds_sso strategy
2046
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2047
+  (0.1ms) begin transaction
2048
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2049
+  (10.1ms) commit transaction
2050
+  (0.1ms) begin transaction
2051
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ?, "remotely_signed_out" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"], ["remotely_signed_out", "f"]]
2052
+  (6.8ms) commit transaction
2053
+ Redirected to http://www.example-client.com/restricted
2054
+ Completed 302 Found in 21ms (ActiveRecord: 17.5ms)
2055
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2056
+ Processing by ExampleController#restricted as HTML
2057
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2058
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2059
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2060
+ Processing by ExampleController#restricted as HTML
2061
+ Authenticating with gds_sso strategy
2062
+ Completed in 1ms
2063
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:14 +0000
2064
+ Started GET "/auth/gds/callback?code=1003860500097f6ad3a3bd0b96cbddecff7c866f96f1b7c0e1beaa115e96ca01&state=96430d2ad9c66e04a25ca125a022965776d7bc39a0cb61e2" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2065
+ Processing by AuthenticationsController#callback as HTML
2066
+ Parameters: {"code"=>"1003860500097f6ad3a3bd0b96cbddecff7c866f96f1b7c0e1beaa115e96ca01", "state"=>"96430d2ad9c66e04a25ca125a022965776d7bc39a0cb61e2"}
2067
+ Authenticating with gds_sso strategy
2068
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2069
+  (0.1ms) begin transaction
2070
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2071
+  (12.1ms) commit transaction
2072
+  (0.1ms) begin transaction
2073
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2074
+  (18.8ms) commit transaction
2075
+ Redirected to http://www.example-client.com/restricted
2076
+ Completed 302 Found in 36ms (ActiveRecord: 31.6ms)
2077
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2078
+ Processing by ExampleController#restricted as HTML
2079
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2080
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
2081
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:30:15 +0000
2082
+ Processing by ExampleController#restricted as HTML
2083
+ Authenticating with gds_sso strategy
2084
+ Completed in 1ms
2085
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-04 12:30:15 +0000
2086
+ Started GET "/auth/gds/callback?code=d5e8732e4060268a1c60e1a997aed95f26324df34bdca453cd94a01ff936dd83&state=1b6527cf8c88eb0aa8d11380fa409235eae5f3f0567991d6" for 127.0.0.1 at 2014-09-04 12:30:15 +0000
2087
+ Processing by AuthenticationsController#callback as HTML
2088
+ Parameters: {"code"=>"d5e8732e4060268a1c60e1a997aed95f26324df34bdca453cd94a01ff936dd83", "state"=>"1b6527cf8c88eb0aa8d11380fa409235eae5f3f0567991d6"}
2089
+ Authenticating with gds_sso strategy
2090
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2091
+  (0.1ms) begin transaction
2092
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2093
+  (15.1ms) commit transaction
2094
+  (0.1ms) begin transaction
2095
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2096
+  (14.9ms) commit transaction
2097
+ Redirected to http://www.example-client.com/restricted
2098
+ Completed 302 Found in 36ms (ActiveRecord: 30.7ms)
2099
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:30:15 +0000
2100
+ Processing by ExampleController#restricted as HTML
2101
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2102
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
2103
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2104
+ Processing by ExampleController#restricted as HTML
2105
+ Authenticating with gds_sso strategy
2106
+ Completed in 0ms
2107
+ Started GET "/auth/gds" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2108
+ Started GET "/auth/gds/callback?code=13b5fc01b820619d77ca8f5a383851300fad8c6bad2b713684195fb73b0615f0&state=8aa197a812c2fd1442eae4751ac7469fb8b8f738349778dd" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2109
+ Processing by AuthenticationsController#callback as HTML
2110
+ Parameters: {"code"=>"13b5fc01b820619d77ca8f5a383851300fad8c6bad2b713684195fb73b0615f0", "state"=>"8aa197a812c2fd1442eae4751ac7469fb8b8f738349778dd"}
2111
+ Authenticating with gds_sso strategy
2112
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2113
+  (0.1ms) begin transaction
2114
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2115
+  (15.4ms) commit transaction
2116
+  (0.1ms) begin transaction
2117
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2118
+  (14.7ms) commit transaction
2119
+ Redirected to http://www.example-client.com/restricted
2120
+ Completed 302 Found in 36ms (ActiveRecord: 30.7ms)
2121
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:15 +0000
2122
+ Processing by ExampleController#restricted as HTML
2123
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2124
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
2125
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-04 12:20:15 +0000
2126
+ Processing by ExampleController#restricted as HTML
2127
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' ORDER BY "users"."id" ASC LIMIT 1
2128
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2129
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:16 +0000
2130
+ Processing by ExampleController#restricted as JSON
2131
+ Completed in 17ms
2132
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:16 +0000
2133
+ Processing by ExampleController#restricted as JSON
2134
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2135
+  (0.1ms) begin transaction
2136
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2137
+  (9.8ms) commit transaction
2138
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2139
+  (0.1ms) begin transaction
2140
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2141
+  (9.9ms) commit transaction
2142
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2143
+  (0.1ms) begin transaction
2144
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2145
+  (64.7ms) commit transaction
2146
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2147
+  (0.1ms) begin transaction
2148
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2149
+  (12.9ms) commit transaction
2150
+  (0.1ms) begin transaction
2151
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2152
+  (15.9ms) commit transaction
2153
+ Completed 200 OK in 333ms (Views: 0.5ms | ActiveRecord: 115.4ms)
2154
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-09-03 16:25:16 +0000
2155
+ Processing by ExampleController#this_requires_signin_permission as JSON
2156
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2157
+  (0.1ms) begin transaction
2158
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2159
+  (38.9ms) commit transaction
2160
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2161
+  (0.1ms) begin transaction
2162
+ SQL (0.4ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2163
+  (46.5ms) commit transaction
2164
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2165
+  (0.1ms) begin transaction
2166
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2167
+  (11.0ms) commit transaction
2168
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' ORDER BY "users"."id" ASC LIMIT 1
2169
+  (0.1ms) begin transaction
2170
+ SQL (0.1ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2171
+  (18.0ms) commit transaction
2172
+  (0.1ms) begin transaction
2173
+ SQL (0.2ms) UPDATE "users" SET "permissions" = ? WHERE "users"."id" = 11 [["permissions", "---\n- signin\n"]]
2174
+  (11.6ms) commit transaction
2175
+ Completed 200 OK in 347ms (Views: 0.5ms | ActiveRecord: 128.5ms)
2176
+ Started GET "/restricted" for 127.0.0.1 at 2014-09-03 16:25:17 +0000
2177
+ Processing by ExampleController#restricted as JSON
2178
+ Completed in 12ms