gds-sso 1.2.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
  source 'https://gems.gemfury.com/vo6ZrmjBQu5szyywDszE/'
3
3
 
4
4
  # Specify your gem's dependencies in gds-sso.gemspec
data/lib/gds-sso.rb CHANGED
@@ -38,7 +38,7 @@ module GDS
38
38
  end
39
39
 
40
40
  def self.default_strategies
41
- use_mock_strategies? ? [:mock_gds_sso, :mock_gds_sso_api_access] : [:gds_sso, :gds_sso_api_access]
41
+ use_mock_strategies? ? [:mock_gds_sso, :mock_gds_sso_api_access] : [:gds_sso, :gds_bearer_token, :gds_sso_api_access]
42
42
  end
43
43
 
44
44
  config.app_middleware.use Warden::Manager do |config|
@@ -7,6 +7,14 @@ module GDS
7
7
  request = Rack::Accept::Request.new(env)
8
8
  request.best_media_type(%w{text/html application/json}) == 'application/json'
9
9
  end
10
+
11
+ def self.has_bearer_token?(env)
12
+ env['HTTP_AUTHORIZATION'] && env['HTTP_AUTHORIZATION'].match(/^Bearer /)
13
+ end
14
+
15
+ def self.oauth_api_call?(env)
16
+ has_bearer_token?(env)
17
+ end
10
18
  end
11
19
  end
12
20
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "1.2.2"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -51,6 +51,82 @@ Warden::Strategies.add(:gds_sso) do
51
51
  end
52
52
  end
53
53
 
54
+ Warden::Strategies.add(:gds_bearer_token) do
55
+ def valid?
56
+ ::GDS::SSO::ApiAccess.api_call?(env) &&
57
+ ::GDS::SSO::ApiAccess.oauth_api_call?(env)
58
+ end
59
+
60
+ def authenticate!
61
+ Rails.logger.debug("Authenticating with gds_bearer_token strategy")
62
+
63
+ begin
64
+ access_token = OAuth2::AccessToken.new(oauth_client, token_from_authorization_header)
65
+ response_body = access_token.get('/user.json').body
66
+ user_details = omniauth_style_response(response_body)
67
+ user = prep_user(user_details)
68
+ success!(user)
69
+ rescue OAuth2::Error
70
+ custom!(unauthorized)
71
+ end
72
+ end
73
+
74
+ def oauth_client
75
+ @oauth_client ||= OAuth2::Client.new(
76
+ GDS::SSO::Config.oauth_id,
77
+ GDS::SSO::Config.oauth_secret,
78
+ :site => GDS::SSO::Config.oauth_root_url
79
+ )
80
+ end
81
+
82
+ def token_from_authorization_header
83
+ env['HTTP_AUTHORIZATION'].gsub(/Bearer /, '')
84
+ end
85
+
86
+ # Our User code assumes we're getting our user data back
87
+ # via omniauth and so receiving it in omniauth's preferred
88
+ # structure. Here we're addressing signonotron directly so
89
+ # we need to transform the response ourselves.
90
+ #
91
+ # There may be a way to simplify matters by having this
92
+ # strategy work via omniauth too but I've not worked out how
93
+ # to wire that up yet.
94
+ def omniauth_style_response(response_body)
95
+ input = MultiJson.decode(response_body)['user']
96
+
97
+ {
98
+ 'uid' => input['uid'],
99
+ 'info' => {
100
+ 'email' => input['email'],
101
+ 'name' => input['name']
102
+ },
103
+ 'extra' => {
104
+ 'user' => {
105
+ 'permissions' => input['permissions']
106
+ }
107
+ }
108
+ }
109
+ end
110
+
111
+ def prep_user(auth_hash)
112
+ user = GDS::SSO::Config.user_klass.find_for_gds_oauth(auth_hash)
113
+ custom!(anauthorized) unless user
114
+ user
115
+ end
116
+
117
+ def unauthorized
118
+ [
119
+ 401,
120
+ {
121
+ 'Content-Type' => 'text/plain',
122
+ 'Content-Length' => '0',
123
+ 'WWW-Authenticate' => %(Bearer realm="#{GDS::SSO::Config.basic_auth_realm}", error="invalid_token")
124
+ },
125
+ []
126
+ ]
127
+ end
128
+ end
129
+
54
130
  Warden::Strategies.add(:gds_sso_api_access) do
55
131
  def api_user
56
132
  @api_user ||= GDS::SSO::ApiUser.new
@@ -0,0 +1,4 @@
1
+ DELETE FROM `oauth_access_tokens`;
2
+
3
+ INSERT INTO oauth_access_tokens VALUES
4
+ (NULL, 1, 1, 'caaeb53be5c7277fb0ef158181bfd1537b57f9e3b83eb795be3cd0af6e118b28', '1bc343797483954d7306d67e96687feccdfdaa8b23ed662ae23e2b03e6661d16', 307584000, NULL, '2012-06-27 13:57:47', NULL);
@@ -6,7 +6,7 @@ DELETE FROM `permissions`;
6
6
  DELETE FROM `users`;
7
7
 
8
8
  -- Setup fixture data
9
- INSERT INTO `oauth_applications` VALUES (1,'GDS_SSO integration test','gds-sso-test','secret','http://www.example-client.com/auth/gds/callback','2012-04-19 13:26:54','2012-04-19 13:26:54', 'http://www.example-client.com/', 'Example client description');
9
+ INSERT INTO `oauth_applications` VALUES (1,'GDS_SSO integration test','gds-sso-test','secret','http://www.example-client.com/auth/gds/callback','2012-04-19 13:26:54','2012-04-19 13:26:54', 'http://home.com', 'GDS_SSO integration test');
10
10
  INSERT INTO `users` (id, email, encrypted_password, created_at, updated_at, name, uid, is_admin) VALUES (1,'test@example-client.com','$2a$04$MdMkVFwTq5GLJJkHS8GLIe6dK1.C4ozzba5ZS5Ks2b/NenVsMGGRW','2012-04-19 13:26:54','2012-04-19 13:26:54','Test User','integration-uid', 0);
11
11
  INSERT INTO `permissions` (id, user_id, application_id, permissions) VALUES (1,1,1,"---
12
12
  - signin
@@ -1,297 +1,249 @@
1
1
  Connecting to database specified by database.yml
2
-  (2.9ms) select sqlite_version(*)
3
-  (9.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text)
4
-  (2.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (2.8ms) select sqlite_version(*)
3
+  (15.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)
4
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
5
   (0.0ms) PRAGMA index_list("schema_migrations")
6
6
   (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
7
   (0.1ms) begin transaction
8
- SQL (7.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39182"]]
9
-  (2.6ms) commit transaction
8
+ SQL (28.7ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33754"]]
9
+  (10.0ms) commit transaction
10
10
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
11
11
  Processing by Api::UserController#update as HTML
12
- Parameters: {"uid"=>"a1s2d39182"}
13
- Rendered /mnt/jenkins/workspace/GDS-SSO/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (3.5ms)
14
- Completed 403 Forbidden in 54ms (Views: 53.3ms | ActiveRecord: 0.0ms)
12
+ Parameters: {"uid"=>"a1s2d33754"}
13
+ Rendered /mnt/jenkins/workspace/GDS-SSO/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (4.4ms)
14
+ Completed 403 Forbidden in 203ms (Views: 202.0ms | ActiveRecord: 0.0ms)
15
15
   (0.1ms) begin transaction
16
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d3403"]]
17
-  (2.5ms) commit transaction
16
+ SQL (0.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d39954"]]
17
+  (2.6ms) commit transaction
18
18
  Processing by Api::UserController#update as HTML
19
- Parameters: {"uid"=>"a1s2d3403"}
20
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3403' LIMIT 1
19
+ Parameters: {"uid"=>"a1s2d39954"}
20
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d39954' LIMIT 1
21
21
   (0.1ms) begin transaction
22
-  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
22
+  (0.4ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
23
23
  GDS_SSO integration test:
24
24
  - signin
25
25
  - new permission
26
26
  ' WHERE "users"."id" = 2
27
-  (69.6ms) commit transaction
28
- Completed 200 OK in 120ms (ActiveRecord: 70.2ms)
27
+  (10.2ms) commit transaction
28
+ Completed 200 OK in 173ms (ActiveRecord: 10.9ms)
29
29
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
30
30
   (0.1ms) begin transaction
31
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d38236"]]
32
-  (2.1ms) commit transaction
31
+ SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33374"]]
32
+  (14.7ms) commit transaction
33
33
  WARNING: Can't mass-assign protected attributes: uid, name, permissions
34
34
  Processing by Api::UserController#reauth as HTML
35
- Parameters: {"uid"=>"a1s2d38236"}
35
+ Parameters: {"uid"=>"a1s2d33374"}
36
36
  Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
37
37
   (0.1ms) begin transaction
38
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33440"]]
39
-  (2.2ms) commit transaction
40
- Processing by Api::UserController#reauth as HTML
41
- Parameters: {"uid"=>"a1s2d33440"}
42
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d33440' LIMIT 1
43
-  (0.0ms) begin transaction
44
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
45
- GDS_SSO integration test:
46
- - signin
47
- ' WHERE "users"."id" = 4
48
-  (3.0ms) commit transaction
49
- Completed 200 OK in 6ms (ActiveRecord: 3.5ms)
50
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
51
- Connecting to database specified by database.yml
52
-  (2.6ms) select sqlite_version(*)
53
-  (10.9ms) DROP TABLE "users"
54
-  (3.1ms) 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) 
55
-  (0.1ms) begin transaction
56
- SQL (7.0ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34004"]]
57
-  (4.3ms) commit transaction
58
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
59
- Processing by Api::UserController#update as HTML
60
- Parameters: {"uid"=>"a1s2d34004"}
61
- Rendered /mnt/jenkins/workspace/GDS-SSO/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (3.6ms)
62
- Completed 403 Forbidden in 53ms (Views: 52.2ms | ActiveRecord: 0.0ms)
63
-  (0.1ms) begin transaction
64
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35273"]]
65
-  (2.7ms) commit transaction
66
- Processing by Api::UserController#update as HTML
67
- Parameters: {"uid"=>"a1s2d35273"}
68
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35273' LIMIT 1
69
-  (0.1ms) begin transaction
70
-  (0.3ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
71
- GDS_SSO integration test:
72
- - signin
73
- - new permission
74
- ' WHERE "users"."id" = 2
75
-  (2.9ms) commit transaction
76
- Completed 200 OK in 55ms (ActiveRecord: 3.5ms)
77
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
78
-  (0.1ms) begin transaction
79
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33207"]]
80
-  (2.7ms) commit transaction
81
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
38
+ SQL (10.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37905"]]
39
+  (11.5ms) commit transaction
82
40
  Processing by Api::UserController#reauth as HTML
83
- Parameters: {"uid"=>"a1s2d33207"}
84
- Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
41
+ Parameters: {"uid"=>"a1s2d37905"}
42
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37905' LIMIT 1
85
43
   (0.1ms) begin transaction
86
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32336"]]
87
-  (2.2ms) commit transaction
88
- Processing by Api::UserController#reauth as HTML
89
- Parameters: {"uid"=>"a1s2d32336"}
90
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d32336' LIMIT 1
91
-  (0.0ms) begin transaction
92
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
44
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
93
45
  GDS_SSO integration test:
94
46
  - signin
95
47
  ' WHERE "users"."id" = 4
96
-  (2.3ms) commit transaction
97
- Completed 200 OK in 5ms (ActiveRecord: 2.8ms)
48
+  (4.1ms) commit transaction
49
+ Completed 200 OK in 7ms (ActiveRecord: 4.7ms)
98
50
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
99
51
 
100
52
 
101
- Started GET "/" for 127.0.0.1 at 2012-09-03 14:46:41 +0000
53
+ Started GET "/" for 127.0.0.1 at 2012-09-11 10:01:59 +0000
102
54
  Processing by ExampleController#index as HTML
103
- Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)
55
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
104
56
 
105
57
 
106
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:41 +0000
58
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:01:59 +0000
107
59
  Processing by ExampleController#restricted as HTML
108
60
  Authenticating with gds_sso strategy
109
- Completed in 17ms
61
+ Completed in 66ms
110
62
 
111
63
 
112
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:41 +0000
64
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:01:59 +0000
113
65
 
114
66
 
115
- Started GET "/auth/gds/callback?code=1c7626bee3a1a855f6c550eec3e9325ff33cbb486c83a6f4e659737b6afa66fb&state=e0714904e5be0192e09310c9fb1ffb65f774f6727989099a" for 127.0.0.1 at 2012-09-03 14:46:42 +0000
67
+ Started GET "/auth/gds/callback?code=bc84931099e3276d7d1675de3d41254b509092611eddb4b2d086732c2c8afbe1&state=4f848870a8d491f899787a43fac36c6b39f502b06337b832" for 127.0.0.1 at 2012-09-11 10:02:00 +0000
116
68
  Processing by AuthenticationsController#callback as HTML
117
- Parameters: {"code"=>"1c7626bee3a1a855f6c550eec3e9325ff33cbb486c83a6f4e659737b6afa66fb", "state"=>"e0714904e5be0192e09310c9fb1ffb65f774f6727989099a"}
69
+ Parameters: {"code"=>"bc84931099e3276d7d1675de3d41254b509092611eddb4b2d086732c2c8afbe1", "state"=>"4f848870a8d491f899787a43fac36c6b39f502b06337b832"}
118
70
  Authenticating with gds_sso strategy
119
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
71
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
120
72
   (0.1ms) begin transaction
121
73
  SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
122
-  (12.0ms) commit transaction
123
-  (0.0ms) begin transaction
124
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
74
+  (16.6ms) commit transaction
75
+  (0.1ms) begin transaction
76
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
125
77
  GDS_SSO integration test:
126
78
  - signin
127
79
  ' WHERE "users"."id" = 5
128
-  (2.7ms) commit transaction
80
+  (2.0ms) commit transaction
129
81
  Redirected to http://www.example-client.com/restricted
130
- Completed 302 Found in 21ms (ActiveRecord: 15.5ms)
82
+ Completed 302 Found in 26ms (ActiveRecord: 19.6ms)
131
83
 
132
84
 
133
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:42 +0000
85
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:00 +0000
134
86
  Processing by ExampleController#restricted as HTML
135
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
136
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
87
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
88
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
137
89
 
138
90
 
139
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:42 +0000
91
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:00 +0000
140
92
  Processing by ExampleController#restricted as HTML
141
93
  Authenticating with gds_sso strategy
142
94
  Completed in 0ms
143
95
 
144
96
 
145
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:42 +0000
97
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:02:00 +0000
146
98
 
147
99
 
148
- Started GET "/auth/gds/callback?code=d44e4ba6e033b2116af054119b5d11adb0416f722b1a88c18b17ac0d2dc806f6&state=3e64422d7a74149fd8aeb6591ffbe29ce42cda71babcb162" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
100
+ Started GET "/auth/gds/callback?code=5b3104133f5bacd7eb2fb72c7a9ecf06d1bfb591185fb81664b78b64e89c558b&state=02cd24c5380efba67d46452845a54f655b2c877a0838e80f" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
149
101
  Processing by AuthenticationsController#callback as HTML
150
- Parameters: {"code"=>"d44e4ba6e033b2116af054119b5d11adb0416f722b1a88c18b17ac0d2dc806f6", "state"=>"3e64422d7a74149fd8aeb6591ffbe29ce42cda71babcb162"}
102
+ Parameters: {"code"=>"5b3104133f5bacd7eb2fb72c7a9ecf06d1bfb591185fb81664b78b64e89c558b", "state"=>"02cd24c5380efba67d46452845a54f655b2c877a0838e80f"}
151
103
  Authenticating with gds_sso strategy
152
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
104
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
153
105
   (0.1ms) begin transaction
154
-  (0.2ms) UPDATE "users" SET "permissions" = '---
106
+  (0.3ms) UPDATE "users" SET "permissions" = '---
155
107
  GDS_SSO integration test:
156
108
  - signin
157
109
  ' WHERE "users"."id" = 5
158
-  (7.0ms) commit transaction
159
-  (0.0ms) begin transaction
160
-  (0.2ms) UPDATE "users" SET "permissions" = '---
110
+  (6.0ms) commit transaction
111
+  (0.1ms) begin transaction
112
+  (0.3ms) UPDATE "users" SET "permissions" = '---
161
113
  GDS_SSO integration test:
162
114
  - signin
163
115
  ' WHERE "users"."id" = 5
164
-  (2.8ms) commit transaction
116
+  (2.3ms) commit transaction
165
117
  Redirected to http://www.example-client.com/restricted
166
- Completed 302 Found in 16ms (ActiveRecord: 10.7ms)
118
+ Completed 302 Found in 15ms (ActiveRecord: 9.2ms)
167
119
 
168
120
 
169
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
121
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
170
122
  Processing by ExampleController#restricted as HTML
171
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
172
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
123
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
124
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
173
125
 
174
126
 
175
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
127
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
176
128
  Processing by ExampleController#restricted as HTML
177
129
  Authenticating with gds_sso strategy
178
130
  Completed in 0ms
179
131
 
180
132
 
181
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
133
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
182
134
 
183
135
 
184
- Started GET "/auth/gds/callback?code=b2d39d1f07e8c403c9d5fd45136eec45463727bbacffb6a81cf0fb17acfc4943&state=c4df828c99b43b76e4bd68f21a48f4ffb800b391bd4d5058" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
136
+ Started GET "/auth/gds/callback?code=3595fb01ce5a4cbbcfa22394ad4b902d9797dd732434a5d7e23ae903bc18dafe&state=83dd91285e2e6b4c20e166d9200a3f8cae4b9189c4a07d98" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
185
137
  Processing by AuthenticationsController#callback as HTML
186
- Parameters: {"code"=>"b2d39d1f07e8c403c9d5fd45136eec45463727bbacffb6a81cf0fb17acfc4943", "state"=>"c4df828c99b43b76e4bd68f21a48f4ffb800b391bd4d5058"}
138
+ Parameters: {"code"=>"3595fb01ce5a4cbbcfa22394ad4b902d9797dd732434a5d7e23ae903bc18dafe", "state"=>"83dd91285e2e6b4c20e166d9200a3f8cae4b9189c4a07d98"}
187
139
  Authenticating with gds_sso strategy
188
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
140
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
189
141
   (0.1ms) begin transaction
190
-  (0.2ms) UPDATE "users" SET "permissions" = '---
142
+  (0.3ms) UPDATE "users" SET "permissions" = '---
191
143
  GDS_SSO integration test:
192
144
  - signin
193
145
  ' WHERE "users"."id" = 5
194
-  (10.0ms) commit transaction
146
+  (8.6ms) commit transaction
195
147
   (0.0ms) begin transaction
196
148
   (0.2ms) UPDATE "users" SET "permissions" = '---
197
149
  GDS_SSO integration test:
198
150
  - signin
199
151
  ' WHERE "users"."id" = 5
200
-  (2.2ms) commit transaction
152
+  (2.0ms) commit transaction
201
153
  Redirected to http://www.example-client.com/restricted
202
- Completed 302 Found in 17ms (ActiveRecord: 12.9ms)
154
+ Completed 302 Found in 16ms (ActiveRecord: 11.6ms)
203
155
 
204
156
 
205
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
157
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
206
158
  Processing by ExampleController#restricted as HTML
207
159
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
208
160
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
209
161
 
210
162
 
211
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
163
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
212
164
  Processing by ExampleController#this_requires_signin_permission as HTML
213
165
  Authenticating with gds_sso strategy
214
166
  Completed in 1ms
215
167
 
216
168
 
217
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
169
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
218
170
 
219
171
 
220
- Started GET "/auth/gds/callback?code=6a5d347eef9fa0d1bcfa44aa287ffe11edc4ab1b7cd14fac11ccbd2a6b11f9f2&state=cb41e6aafa78b5d29eeb3fdf6f647bb8bd107f6a5e1b7746" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
172
+ Started GET "/auth/gds/callback?code=21a6b7417ba8925e677e350ab50b069a60e0f7f9acac712dea65155a0b2ec392&state=2f3d359a9ebea337e7e387caf2a2316414d2679155b4ced4" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
221
173
  Processing by AuthenticationsController#callback as HTML
222
- Parameters: {"code"=>"6a5d347eef9fa0d1bcfa44aa287ffe11edc4ab1b7cd14fac11ccbd2a6b11f9f2", "state"=>"cb41e6aafa78b5d29eeb3fdf6f647bb8bd107f6a5e1b7746"}
174
+ Parameters: {"code"=>"21a6b7417ba8925e677e350ab50b069a60e0f7f9acac712dea65155a0b2ec392", "state"=>"2f3d359a9ebea337e7e387caf2a2316414d2679155b4ced4"}
223
175
  Authenticating with gds_sso strategy
224
176
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
225
177
   (0.1ms) begin transaction
226
-  (0.2ms) UPDATE "users" SET "permissions" = '---
178
+  (0.3ms) UPDATE "users" SET "permissions" = '---
227
179
  GDS_SSO integration test:
228
180
  - signin
229
181
  ' WHERE "users"."id" = 5
230
-  (7.5ms) commit transaction
182
+  (7.9ms) commit transaction
231
183
   (0.1ms) begin transaction
232
-  (0.2ms) UPDATE "users" SET "permissions" = '---
184
+  (0.3ms) UPDATE "users" SET "permissions" = '---
233
185
  GDS_SSO integration test:
234
186
  - signin
235
187
  ' WHERE "users"."id" = 5
236
-  (2.5ms) commit transaction
188
+  (2.0ms) commit transaction
237
189
  Redirected to http://www.example-client.com/this_requires_signin_permission
238
- Completed 302 Found in 16ms (ActiveRecord: 10.8ms)
190
+ Completed 302 Found in 17ms (ActiveRecord: 10.9ms)
239
191
 
240
192
 
241
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
193
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
242
194
  Processing by ExampleController#this_requires_signin_permission as HTML
243
195
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
244
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
196
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
245
197
 
246
198
 
247
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
199
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
248
200
  Processing by ExampleController#this_requires_signin_permission as HTML
249
201
  Authenticating with gds_sso strategy
250
202
  Completed in 0ms
251
203
 
252
204
 
253
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:43 +0000
205
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:02:01 +0000
254
206
 
255
207
 
256
- Started GET "/auth/gds/callback?code=053d4040df501e3673e97fd16603222738e71eb3e7a76be95e21a6042c632b97&state=efc86b0e5b013949dc6a213203e28d17e178e139a643951b" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
208
+ Started GET "/auth/gds/callback?code=767d96b4cd5158a5784e4b5c6d6312f0b693e72fc3d6184fd9ba9c897d476586&state=61a43f3371db677a3c7f84b2278c47b819576459845bc9cc" for 127.0.0.1 at 2012-09-11 10:02:02 +0000
257
209
  Processing by AuthenticationsController#callback as HTML
258
- Parameters: {"code"=>"053d4040df501e3673e97fd16603222738e71eb3e7a76be95e21a6042c632b97", "state"=>"efc86b0e5b013949dc6a213203e28d17e178e139a643951b"}
210
+ Parameters: {"code"=>"767d96b4cd5158a5784e4b5c6d6312f0b693e72fc3d6184fd9ba9c897d476586", "state"=>"61a43f3371db677a3c7f84b2278c47b819576459845bc9cc"}
259
211
  Authenticating with gds_sso strategy
260
212
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
261
213
   (0.1ms) begin transaction
262
-  (0.2ms) UPDATE "users" SET "permissions" = '---
214
+  (0.3ms) UPDATE "users" SET "permissions" = '---
263
215
  GDS_SSO integration test:
264
216
  - signin
265
217
  ' WHERE "users"."id" = 5
266
-  (8.9ms) commit transaction
218
+  (5.5ms) commit transaction
267
219
   (0.1ms) begin transaction
268
220
   (0.2ms) UPDATE "users" SET "permissions" = '---
269
221
  GDS_SSO integration test:
270
222
  - signin
271
223
  ' WHERE "users"."id" = 5
272
-  (2.8ms) commit transaction
224
+  (1.8ms) commit transaction
273
225
  Redirected to http://www.example-client.com/this_requires_signin_permission
274
- Completed 302 Found in 17ms (ActiveRecord: 12.4ms)
226
+ Completed 302 Found in 13ms (ActiveRecord: 8.2ms)
275
227
 
276
228
 
277
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
229
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-11 10:02:02 +0000
278
230
  Processing by ExampleController#this_requires_signin_permission as HTML
279
231
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
280
232
  Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
281
233
 
282
234
 
283
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
235
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:02 +0000
284
236
  Processing by ExampleController#restricted as HTML
285
237
  Authenticating with gds_sso strategy
286
238
  Completed in 0ms
287
239
 
288
240
 
289
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
241
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:02:02 +0000
290
242
 
291
243
 
292
- Started GET "/auth/gds/callback?code=bde4cebe3abcb1595384d60812151f85968a5bc8df4f3c56ccf7a10b8e66ff2a&state=58a4d738c5f93d4d577e09331a77e2d95cde947cece3ac17" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
244
+ Started GET "/auth/gds/callback?code=712ca60a2012e4b3fc6789708c2b61939b2b21cc086396baea54e9f3b0887652&state=ee049bfbaf70f4b475816a2c148d44e44691399094cff596" for 127.0.0.1 at 2012-09-11 10:02:02 +0000
293
245
  Processing by AuthenticationsController#callback as HTML
294
- Parameters: {"code"=>"bde4cebe3abcb1595384d60812151f85968a5bc8df4f3c56ccf7a10b8e66ff2a", "state"=>"58a4d738c5f93d4d577e09331a77e2d95cde947cece3ac17"}
246
+ Parameters: {"code"=>"712ca60a2012e4b3fc6789708c2b61939b2b21cc086396baea54e9f3b0887652", "state"=>"ee049bfbaf70f4b475816a2c148d44e44691399094cff596"}
295
247
  Authenticating with gds_sso strategy
296
248
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
297
249
   (0.1ms) begin transaction
@@ -299,660 +251,250 @@ Authenticating with gds_sso strategy
299
251
  GDS_SSO integration test:
300
252
  - signin
301
253
  ' WHERE "users"."id" = 5
302
-  (7.0ms) commit transaction
303
-  (0.0ms) begin transaction
304
-  (0.2ms) UPDATE "users" SET "permissions" = '---
254
+  (18.5ms) commit transaction
255
+  (0.1ms) begin transaction
256
+  (0.3ms) UPDATE "users" SET "permissions" = '---
305
257
  GDS_SSO integration test:
306
258
  - signin
307
259
  ' WHERE "users"."id" = 5
308
-  (2.2ms) commit transaction
260
+  (1.9ms) commit transaction
309
261
  Redirected to http://www.example-client.com/restricted
310
- Completed 302 Found in 15ms (ActiveRecord: 10.1ms)
262
+ Completed 302 Found in 27ms (ActiveRecord: 21.3ms)
311
263
 
312
264
 
313
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
265
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:02 +0000
314
266
  Processing by ExampleController#restricted as HTML
315
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
316
- Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
267
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
268
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
317
269
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
318
-  (0.0ms) begin transaction
319
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
270
+  (0.1ms) begin transaction
271
+  (0.3ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
320
272
  GDS_SSO integration test:
321
273
  - signin
322
274
  ' WHERE "users"."id" = 5
323
-  (2.7ms) commit transaction
275
+  (2.6ms) commit transaction
324
276
 
325
277
 
326
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
278
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:02 +0000
327
279
  Processing by ExampleController#restricted as HTML
328
280
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
329
281
  Filter chain halted as :authenticate_user! rendered or redirected
330
- Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
282
+ Completed 403 Forbidden in 65ms (Views: 63.5ms | ActiveRecord: 0.1ms)
331
283
 
332
284
 
333
- Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
285
+ Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2012-09-11 10:02:02 +0000
334
286
  Processing by AuthenticationsController#sign_out as HTML
335
287
  Redirected to http://localhost:4567/users/sign_out
336
288
  Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
337
289
 
338
290
 
339
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
291
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
340
292
  Processing by ExampleController#restricted as HTML
341
293
  Authenticating with gds_sso strategy
342
294
  Completed in 0ms
343
295
 
344
296
 
345
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
297
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
346
298
 
347
299
 
348
- Started GET "/auth/gds/callback?code=a3bfab5ccfcc9dbaf6f6f287ae25940fa416910c3aa20a4ef0aef6617343574c&state=371fd5bf1f8c3c1bb9f0c2cec6b54a2991f21057883a4851" for 127.0.0.1 at 2012-09-03 14:46:44 +0000
300
+ Started GET "/auth/gds/callback?code=472ae08fd98a1ca4a5beb68c24d61d6061a483be0aa092b202711316e5c2b964&state=7dea408a684c3e330be0b5500ac3f72720ea392f324a8a13" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
349
301
  Processing by AuthenticationsController#callback as HTML
350
- Parameters: {"code"=>"a3bfab5ccfcc9dbaf6f6f287ae25940fa416910c3aa20a4ef0aef6617343574c", "state"=>"371fd5bf1f8c3c1bb9f0c2cec6b54a2991f21057883a4851"}
302
+ Parameters: {"code"=>"472ae08fd98a1ca4a5beb68c24d61d6061a483be0aa092b202711316e5c2b964", "state"=>"7dea408a684c3e330be0b5500ac3f72720ea392f324a8a13"}
351
303
  Authenticating with gds_sso strategy
352
304
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
353
305
   (0.1ms) begin transaction
354
-  (0.2ms) UPDATE "users" SET "permissions" = '---
306
+  (0.3ms) UPDATE "users" SET "permissions" = '---
355
307
  GDS_SSO integration test:
356
308
  - signin
357
309
  ' WHERE "users"."id" = 5
358
-  (9.6ms) commit transaction
310
+  (9.3ms) commit transaction
359
311
   (0.0ms) begin transaction
360
312
   (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
361
313
  GDS_SSO integration test:
362
314
  - signin
363
315
  ' WHERE "users"."id" = 5
364
-  (2.2ms) commit transaction
316
+  (1.8ms) commit transaction
365
317
  Redirected to http://www.example-client.com/restricted
366
- Completed 302 Found in 17ms (ActiveRecord: 12.5ms)
318
+ Completed 302 Found in 16ms (ActiveRecord: 11.8ms)
367
319
 
368
320
 
369
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
321
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
370
322
  Processing by ExampleController#restricted as HTML
371
323
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
372
324
  Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
373
325
 
374
326
 
375
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
327
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
376
328
  Processing by ExampleController#restricted as HTML
377
329
  Authenticating with gds_sso strategy
378
330
  Completed in 0ms
379
331
 
380
332
 
381
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
333
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
382
334
 
383
335
 
384
- Started GET "/auth/gds/callback?code=fa04cd55ffdb943c717a438f4974a4847d6a85b0099867c257a507502556e3db&state=07556e192c0cf18768ac3420945521a270785ace790fdb47" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
336
+ Started GET "/auth/gds/callback?code=5b0fc8e24c8ca6591c9b8065ff6fed1ee7e43855b918baad2e3d9d317f911b17&state=ce98454ef561cccbf83d6cab3ea3441f498dd7e9171a14c2" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
385
337
  Processing by AuthenticationsController#callback as HTML
386
- Parameters: {"code"=>"fa04cd55ffdb943c717a438f4974a4847d6a85b0099867c257a507502556e3db", "state"=>"07556e192c0cf18768ac3420945521a270785ace790fdb47"}
338
+ Parameters: {"code"=>"5b0fc8e24c8ca6591c9b8065ff6fed1ee7e43855b918baad2e3d9d317f911b17", "state"=>"ce98454ef561cccbf83d6cab3ea3441f498dd7e9171a14c2"}
387
339
  Authenticating with gds_sso strategy
388
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
340
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
389
341
   (0.1ms) begin transaction
390
-  (0.2ms) UPDATE "users" SET "permissions" = '---
342
+  (0.3ms) UPDATE "users" SET "permissions" = '---
391
343
  GDS_SSO integration test:
392
344
  - signin
393
345
  ' WHERE "users"."id" = 5
394
-  (7.6ms) commit transaction
346
+  (16.5ms) commit transaction
395
347
   (0.1ms) begin transaction
396
-  (0.2ms) UPDATE "users" SET "permissions" = '---
348
+  (0.3ms) UPDATE "users" SET "permissions" = '---
397
349
  GDS_SSO integration test:
398
350
  - signin
399
351
  ' WHERE "users"."id" = 5
400
352
   (2.8ms) commit transaction
401
353
  Redirected to http://www.example-client.com/restricted
402
- Completed 302 Found in 17ms (ActiveRecord: 11.2ms)
354
+ Completed 302 Found in 26ms (ActiveRecord: 20.3ms)
403
355
 
404
356
 
405
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
357
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
406
358
  Processing by ExampleController#restricted as HTML
407
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
408
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
359
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
360
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
409
361
 
410
362
 
411
- Started GET "/restricted" for 127.0.0.1 at 2012-09-04 10:51:45 +0000
363
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-12 06:07:03 +0000
412
364
  Processing by ExampleController#restricted as HTML
413
365
  Authenticating with gds_sso strategy
414
366
  Completed in 0ms
415
367
 
416
368
 
417
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-04 10:51:45 +0000
369
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-12 06:07:03 +0000
418
370
 
419
371
 
420
- Started GET "/auth/gds/callback?code=129ae989edfb10b1189524abb83f4ebdda68530fec23809d09e778c04c5c49ab&state=bf25823ef68c9ed8efcc024ad071edc2fc072a30accfc49f" for 127.0.0.1 at 2012-09-04 10:51:45 +0000
372
+ Started GET "/auth/gds/callback?code=0f062933a2c6b3dd7d81bc94783a1a956488a2657e89d852cdfef83d753e094f&state=a2bc36a88756773441cfb3d4f70a93dfcc6cec5168b2d967" for 127.0.0.1 at 2012-09-12 06:07:03 +0000
421
373
  Processing by AuthenticationsController#callback as HTML
422
- Parameters: {"code"=>"129ae989edfb10b1189524abb83f4ebdda68530fec23809d09e778c04c5c49ab", "state"=>"bf25823ef68c9ed8efcc024ad071edc2fc072a30accfc49f"}
374
+ Parameters: {"code"=>"0f062933a2c6b3dd7d81bc94783a1a956488a2657e89d852cdfef83d753e094f", "state"=>"a2bc36a88756773441cfb3d4f70a93dfcc6cec5168b2d967"}
423
375
  Authenticating with gds_sso strategy
424
376
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
425
377
   (0.1ms) begin transaction
426
-  (0.2ms) UPDATE "users" SET "permissions" = '---
378
+  (0.3ms) UPDATE "users" SET "permissions" = '---
427
379
  GDS_SSO integration test:
428
380
  - signin
429
381
  ' WHERE "users"."id" = 5
430
-  (8.6ms) commit transaction
382
+  (8.7ms) commit transaction
431
383
   (0.1ms) begin transaction
432
-  (0.2ms) UPDATE "users" SET "permissions" = '---
384
+  (0.3ms) UPDATE "users" SET "permissions" = '---
433
385
  GDS_SSO integration test:
434
386
  - signin
435
387
  ' WHERE "users"."id" = 5
436
-  (2.2ms) commit transaction
388
+  (1.9ms) commit transaction
437
389
  Redirected to http://www.example-client.com/restricted
438
- Completed 302 Found in 17ms (ActiveRecord: 11.7ms)
390
+ Completed 302 Found in 17ms (ActiveRecord: 11.5ms)
439
391
 
440
392
 
441
- Started GET "/restricted" for 127.0.0.1 at 2012-09-04 10:51:45 +0000
393
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-12 06:07:03 +0000
442
394
  Processing by ExampleController#restricted as HTML
443
395
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
444
396
  Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
445
397
 
446
398
 
447
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
399
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
448
400
  Processing by ExampleController#restricted as HTML
449
401
  Authenticating with gds_sso strategy
450
402
  Completed in 0ms
451
403
 
452
404
 
453
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
405
+ Started GET "/auth/gds" for 127.0.0.1 at 2012-09-11 10:02:03 +0000
454
406
 
455
407
 
456
- Started GET "/auth/gds/callback?code=34bfca3163b0af5bc840b79bbd85dfac4af1d797c91d253478e95dd6719b3c07&state=3639569b7dea3fcd7ab330567f0cda89bfc6e8cb939d7088" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
408
+ Started GET "/auth/gds/callback?code=390edc06dfc6ad00a3f5b9f7c707f2e294d752627dcf2973dc6a444203fc347a&state=492aa5f66f74fe69b4f9ef2143cfb218b5d5c77a057e577c" for 127.0.0.1 at 2012-09-11 10:02:04 +0000
457
409
  Processing by AuthenticationsController#callback as HTML
458
- Parameters: {"code"=>"34bfca3163b0af5bc840b79bbd85dfac4af1d797c91d253478e95dd6719b3c07", "state"=>"3639569b7dea3fcd7ab330567f0cda89bfc6e8cb939d7088"}
410
+ Parameters: {"code"=>"390edc06dfc6ad00a3f5b9f7c707f2e294d752627dcf2973dc6a444203fc347a", "state"=>"492aa5f66f74fe69b4f9ef2143cfb218b5d5c77a057e577c"}
459
411
  Authenticating with gds_sso strategy
460
412
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
461
413
   (0.1ms) begin transaction
462
-  (0.2ms) UPDATE "users" SET "permissions" = '---
414
+  (0.3ms) UPDATE "users" SET "permissions" = '---
463
415
  GDS_SSO integration test:
464
416
  - signin
465
417
  ' WHERE "users"."id" = 5
466
-  (8.2ms) commit transaction
418
+  (6.0ms) commit transaction
467
419
   (0.0ms) begin transaction
468
420
   (0.2ms) UPDATE "users" SET "permissions" = '---
469
421
  GDS_SSO integration test:
470
422
  - signin
471
423
  ' WHERE "users"."id" = 5
472
-  (2.2ms) commit transaction
424
+  (2.1ms) commit transaction
473
425
  Redirected to http://www.example-client.com/restricted
474
- Completed 302 Found in 17ms (ActiveRecord: 11.2ms)
426
+ Completed 302 Found in 16ms (ActiveRecord: 9.0ms)
475
427
 
476
428
 
477
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
429
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:04 +0000
478
430
  Processing by ExampleController#restricted as HTML
479
431
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
480
432
  Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
481
433
 
482
434
 
483
- Started GET "/restricted" for 127.0.0.1 at 2012-09-04 10:41:45 +0000
435
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-12 05:57:04 +0000
484
436
  Processing by ExampleController#restricted as HTML
485
437
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
486
438
  Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
487
439
 
488
440
 
489
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:45 +0000
441
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:04 +0000
490
442
  Processing by ExampleController#restricted as JSON
491
443
  Authenticating with gds_sso_api_access strategy
492
- Completed in 12ms
444
+ Completed in 47ms
493
445
 
494
446
 
495
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 14:46:46 +0000
447
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:04 +0000
496
448
  Processing by ExampleController#restricted as JSON
497
449
  Authenticating with gds_sso_api_access strategy
498
- Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
450
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
499
451
 
500
452
 
501
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 14:46:46 +0000
453
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-11 10:02:04 +0000
502
454
  Processing by ExampleController#this_requires_signin_permission as JSON
503
455
  Authenticating with gds_sso_api_access strategy
504
456
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
505
- Connecting to database specified by database.yml
506
-  (2.6ms) select sqlite_version(*)
507
-  (15.2ms) DROP TABLE "users"
508
-  (3.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text) 
509
-  (0.1ms) begin transaction
510
- SQL (7.4ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36341"]]
511
-  (2.8ms) commit transaction
512
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
513
- Processing by Api::UserController#update as HTML
514
- Parameters: {"uid"=>"a1s2d36341"}
515
- Rendered /mnt/jenkins/workspace/GDS-SSO/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (3.3ms)
516
- Completed 403 Forbidden in 54ms (Views: 52.9ms | ActiveRecord: 0.0ms)
517
-  (0.1ms) begin transaction
518
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35869"]]
519
-  (2.7ms) commit transaction
520
- Processing by Api::UserController#update as HTML
521
- Parameters: {"uid"=>"a1s2d35869"}
522
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d35869' LIMIT 1
523
-  (0.1ms) begin transaction
524
-  (5.7ms) UPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
525
- GDS_SSO integration test:
526
- - signin
527
- - new permission
528
- ' WHERE "users"."id" = 2
529
-  (2.8ms) commit transaction
530
- Completed 200 OK in 58ms (ActiveRecord: 8.8ms)
531
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
532
-  (0.1ms) begin transaction
533
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33885"]]
534
-  (2.2ms) commit transaction
535
- WARNING: Can't mass-assign protected attributes: uid, name, permissions
536
- Processing by Api::UserController#reauth as HTML
537
- Parameters: {"uid"=>"a1s2d33885"}
538
- Completed 403 Forbidden in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
539
-  (0.1ms) begin transaction
540
- SQL (0.2ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d37520"]]
541
-  (2.2ms) commit transaction
542
- Processing by Api::UserController#reauth as HTML
543
- Parameters: {"uid"=>"a1s2d37520"}
544
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d37520' LIMIT 1
545
-  (0.0ms) begin transaction
546
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
547
- GDS_SSO integration test:
548
- - signin
549
- ' WHERE "users"."id" = 4
550
-  (2.4ms) commit transaction
551
- Completed 200 OK in 5ms (ActiveRecord: 2.8ms)
552
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]]
553
-
554
-
555
- Started GET "/" for 127.0.0.1 at 2012-09-03 16:59:11 +0000
556
- Processing by ExampleController#index as HTML
557
- Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
558
-
559
-
560
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:11 +0000
561
- Processing by ExampleController#restricted as HTML
562
- Authenticating with gds_sso strategy
563
- Completed in 17ms
564
-
565
-
566
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:11 +0000
567
-
568
-
569
- Started GET "/auth/gds/callback?code=81cda0826d64a158b5d95a3f56dbf4271e579302f7a08627ecc82c9edce2cf24&state=f8164ca491d63bf1debf98ffda5e5d77e966cab765b4d94e" for 127.0.0.1 at 2012-09-03 16:59:12 +0000
570
- Processing by AuthenticationsController#callback as HTML
571
- Parameters: {"code"=>"81cda0826d64a158b5d95a3f56dbf4271e579302f7a08627ecc82c9edce2cf24", "state"=>"f8164ca491d63bf1debf98ffda5e5d77e966cab765b4d94e"}
572
- Authenticating with gds_sso strategy
573
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
574
-  (0.1ms) begin transaction
575
- SQL (0.3ms) INSERT INTO "users" ("email", "name", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?) [["email", "test@example-client.com"], ["name", "Test User"], ["permissions", "--- \nGDS_SSO integration test: \n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
576
-  (11.8ms) commit transaction
577
-  (0.0ms) begin transaction
578
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
579
- GDS_SSO integration test:
580
- - signin
581
- ' WHERE "users"."id" = 5
582
-  (2.7ms) commit transaction
583
- Redirected to http://www.example-client.com/restricted
584
- Completed 302 Found in 21ms (ActiveRecord: 15.3ms)
585
-
586
-
587
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:12 +0000
588
- Processing by ExampleController#restricted as HTML
589
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
590
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
591
-
592
-
593
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:12 +0000
594
- Processing by ExampleController#restricted as HTML
595
- Authenticating with gds_sso strategy
596
- Completed in 0ms
597
-
598
-
599
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:12 +0000
600
457
 
601
458
 
602
- Started GET "/auth/gds/callback?code=40a551b8f54f278bc823e1450a69f29470b18b28fe539804b433c1c85b9d938c&state=9232ab5351883e75d19211af4605983aadbf37db1fb629a6" for 127.0.0.1 at 2012-09-03 16:59:12 +0000
603
- Processing by AuthenticationsController#callback as HTML
604
- Parameters: {"code"=>"40a551b8f54f278bc823e1450a69f29470b18b28fe539804b433c1c85b9d938c", "state"=>"9232ab5351883e75d19211af4605983aadbf37db1fb629a6"}
605
- Authenticating with gds_sso strategy
606
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
607
-  (0.1ms) begin transaction
608
-  (0.2ms) UPDATE "users" SET "permissions" = '---
609
- GDS_SSO integration test:
610
- - signin
611
- ' WHERE "users"."id" = 5
612
-  (6.5ms) commit transaction
613
-  (0.1ms) begin transaction
614
-  (0.2ms) UPDATE "users" SET "permissions" = '---
615
- GDS_SSO integration test:
616
- - signin
617
- ' WHERE "users"."id" = 5
618
-  (2.7ms) commit transaction
619
- Redirected to http://www.example-client.com/restricted
620
- Completed 302 Found in 16ms (ActiveRecord: 10.0ms)
621
-
622
-
623
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:12 +0000
624
- Processing by ExampleController#restricted as HTML
625
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
626
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
627
-
628
-
629
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:12 +0000
630
- Processing by ExampleController#restricted as HTML
631
- Authenticating with gds_sso strategy
632
- Completed in 0ms
633
-
634
-
635
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
636
-
637
-
638
- Started GET "/auth/gds/callback?code=6e3c37583e10792679a530a49025f242343843376b8b0127cdafcea564e05a37&state=209f831be25313ef857cd21db7709427a9a5ea052e058946" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
639
- Processing by AuthenticationsController#callback as HTML
640
- Parameters: {"code"=>"6e3c37583e10792679a530a49025f242343843376b8b0127cdafcea564e05a37", "state"=>"209f831be25313ef857cd21db7709427a9a5ea052e058946"}
641
- Authenticating with gds_sso strategy
642
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
643
-  (0.0ms) begin transaction
644
-  (0.2ms) UPDATE "users" SET "permissions" = '---
645
- GDS_SSO integration test:
646
- - signin
647
- ' WHERE "users"."id" = 5
648
-  (10.5ms) commit transaction
649
-  (0.0ms) begin transaction
650
-  (0.2ms) UPDATE "users" SET "permissions" = '---
651
- GDS_SSO integration test:
652
- - signin
653
- ' WHERE "users"."id" = 5
654
-  (2.8ms) commit transaction
655
- Redirected to http://www.example-client.com/restricted
656
- Completed 302 Found in 18ms (ActiveRecord: 13.9ms)
657
-
658
-
659
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
660
- Processing by ExampleController#restricted as HTML
661
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
662
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
663
-
664
-
665
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
666
- Processing by ExampleController#this_requires_signin_permission as HTML
667
- Authenticating with gds_sso strategy
668
- Completed in 1ms
669
-
670
-
671
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
459
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:04 +0000
460
+ Processing by ExampleController#restricted as JSON
461
+ Authenticating with gds_bearer_token strategy
462
+ Completed in 19ms
672
463
 
673
464
 
674
- Started GET "/auth/gds/callback?code=2327f4896cae9d15aabcda4bc09852f9cd5c6f207f6c72030eda4a8de2a2a901&state=aa13b5ef4738690c6beb191039bc405b0384e85e09b36930" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
675
- Processing by AuthenticationsController#callback as HTML
676
- Parameters: {"code"=>"2327f4896cae9d15aabcda4bc09852f9cd5c6f207f6c72030eda4a8de2a2a901", "state"=>"aa13b5ef4738690c6beb191039bc405b0384e85e09b36930"}
677
- Authenticating with gds_sso strategy
465
+ Started GET "/restricted" for 127.0.0.1 at 2012-09-11 10:02:04 +0000
466
+ Processing by ExampleController#restricted as JSON
467
+ Authenticating with gds_bearer_token strategy
678
468
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
679
469
   (0.1ms) begin transaction
680
-  (0.2ms) UPDATE "users" SET "permissions" = '---
681
- GDS_SSO integration test:
682
- - signin
683
- ' WHERE "users"."id" = 5
684
-  (8.1ms) commit transaction
685
-  (0.1ms) begin transaction
686
-  (0.2ms) UPDATE "users" SET "permissions" = '---
687
- GDS_SSO integration test:
688
- - signin
689
- ' WHERE "users"."id" = 5
690
-  (2.6ms) commit transaction
691
- Redirected to http://www.example-client.com/this_requires_signin_permission
692
- Completed 302 Found in 17ms (ActiveRecord: 11.6ms)
693
-
694
-
695
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
696
- Processing by ExampleController#this_requires_signin_permission as HTML
697
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
698
- Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
699
-
700
-
701
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
702
- Processing by ExampleController#this_requires_signin_permission as HTML
703
- Authenticating with gds_sso strategy
704
- Completed in 0ms
705
-
706
-
707
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
708
-
709
-
710
- Started GET "/auth/gds/callback?code=b01359e06edda1882a7ce7358ca7a0125a924eeb82f8b6790528e4f6e8ac0f77&state=dce53540d826d70256f10b732de1d7a7a6b5001dbe912fb9" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
711
- Processing by AuthenticationsController#callback as HTML
712
- Parameters: {"code"=>"b01359e06edda1882a7ce7358ca7a0125a924eeb82f8b6790528e4f6e8ac0f77", "state"=>"dce53540d826d70256f10b732de1d7a7a6b5001dbe912fb9"}
713
- Authenticating with gds_sso strategy
714
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
715
-  (0.1ms) begin transaction
716
-  (0.2ms) UPDATE "users" SET "permissions" = '---
717
- GDS_SSO integration test:
718
- - signin
719
- ' WHERE "users"."id" = 5
720
-  (8.8ms) commit transaction
721
-  (0.1ms) begin transaction
722
-  (0.2ms) UPDATE "users" SET "permissions" = '---
723
- GDS_SSO integration test:
724
- - signin
725
- ' WHERE "users"."id" = 5
726
-  (2.8ms) commit transaction
727
- Redirected to http://www.example-client.com/this_requires_signin_permission
728
- Completed 302 Found in 18ms (ActiveRecord: 12.4ms)
729
-
730
-
731
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
732
- Processing by ExampleController#this_requires_signin_permission as HTML
733
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
734
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
735
-
736
-
737
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
738
- Processing by ExampleController#restricted as HTML
739
- Authenticating with gds_sso strategy
740
- Completed in 0ms
741
-
742
-
743
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:13 +0000
744
-
745
-
746
- Started GET "/auth/gds/callback?code=7e61f8126ce10aec160bcef5d5fa0aac3dacf4577d74da64ec96e4ab526a1f62&state=e0a7039034a8b84750a7cc1fb55d3c653f7f65148953a4dd" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
747
- Processing by AuthenticationsController#callback as HTML
748
- Parameters: {"code"=>"7e61f8126ce10aec160bcef5d5fa0aac3dacf4577d74da64ec96e4ab526a1f62", "state"=>"e0a7039034a8b84750a7cc1fb55d3c653f7f65148953a4dd"}
749
- Authenticating with gds_sso strategy
750
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
751
-  (1.5ms) begin transaction
752
-  (4.7ms) UPDATE "users" SET "permissions" = '---
753
- GDS_SSO integration test:
754
- - signin
755
- ' WHERE "users"."id" = 5
756
-  (11.8ms) commit transaction
757
-  (0.0ms) begin transaction
758
-  (0.2ms) UPDATE "users" SET "permissions" = '---
759
- GDS_SSO integration test:
760
- - signin
761
- ' WHERE "users"."id" = 5
762
-  (2.3ms) commit transaction
763
- Redirected to http://www.example-client.com/restricted
764
- Completed 302 Found in 76ms (ActiveRecord: 20.8ms)
765
-
766
-
767
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
768
- Processing by ExampleController#restricted as HTML
769
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
770
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
771
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
772
-  (0.0ms) begin transaction
773
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
774
- GDS_SSO integration test:
775
- - signin
776
- ' WHERE "users"."id" = 5
777
-  (2.2ms) commit transaction
778
-
779
-
780
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
781
- Processing by ExampleController#restricted as HTML
782
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
783
- Filter chain halted as :authenticate_user! rendered or redirected
784
- Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
785
-
786
-
787
- Started GET "/auth/gds/sign_out" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
788
- Processing by AuthenticationsController#sign_out as HTML
789
- Redirected to http://localhost:4567/users/sign_out
790
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
791
-
792
-
793
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
794
- Processing by ExampleController#restricted as HTML
795
- Authenticating with gds_sso strategy
796
- Completed in 0ms
797
-
798
-
799
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
800
-
801
-
802
- Started GET "/auth/gds/callback?code=f3f37641bd5cbc7956578adbd392068404377058a773db1aabeb97566a792933&state=e909edc3882fe2fa5a8c936eaf97ec15c120b755dce5a80b" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
803
- Processing by AuthenticationsController#callback as HTML
804
- Parameters: {"code"=>"f3f37641bd5cbc7956578adbd392068404377058a773db1aabeb97566a792933", "state"=>"e909edc3882fe2fa5a8c936eaf97ec15c120b755dce5a80b"}
805
- Authenticating with gds_sso strategy
806
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
807
-  (0.1ms) begin transaction
808
-  (0.2ms) UPDATE "users" SET "permissions" = '---
809
- GDS_SSO integration test:
810
- - signin
811
- ' WHERE "users"."id" = 5
812
-  (9.1ms) commit transaction
813
-  (0.0ms) begin transaction
814
-  (0.2ms) UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
470
+  (0.3ms) UPDATE "users" SET "permissions" = '---
815
471
  GDS_SSO integration test:
816
472
  - signin
817
473
  ' WHERE "users"."id" = 5
818
-  (3.0ms) commit transaction
819
- Redirected to http://www.example-client.com/restricted
820
- Completed 302 Found in 17ms (ActiveRecord: 12.8ms)
821
-
822
-
823
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
824
- Processing by ExampleController#restricted as HTML
825
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
826
- Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
827
-
828
-
829
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
830
- Processing by ExampleController#restricted as HTML
831
- Authenticating with gds_sso strategy
832
- Completed in 0ms
833
-
834
-
835
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:14 +0000
836
-
837
-
838
- Started GET "/auth/gds/callback?code=fde173b3b12f1e261db71b38ef82c2007a7aa5f801b01f4e2aa54f3800e6b4ba&state=4ae6e309bd84d88d18c92233aab0f0ff911e15e2c1ed5d0d" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
839
- Processing by AuthenticationsController#callback as HTML
840
- Parameters: {"code"=>"fde173b3b12f1e261db71b38ef82c2007a7aa5f801b01f4e2aa54f3800e6b4ba", "state"=>"4ae6e309bd84d88d18c92233aab0f0ff911e15e2c1ed5d0d"}
841
- Authenticating with gds_sso strategy
842
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
474
+  (6.9ms) commit transaction
843
475
   (0.1ms) begin transaction
844
-  (0.2ms) UPDATE "users" SET "permissions" = '---
845
- GDS_SSO integration test:
846
- - signin
847
- ' WHERE "users"."id" = 5
848
-  (7.0ms) commit transaction
849
-  (0.0ms) begin transaction
850
-  (0.2ms) UPDATE "users" SET "permissions" = '---
851
- GDS_SSO integration test:
852
- - signin
853
- ' WHERE "users"."id" = 5
854
-  (2.2ms) commit transaction
855
- Redirected to http://www.example-client.com/restricted
856
- Completed 302 Found in 16ms (ActiveRecord: 9.9ms)
857
-
858
-
859
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
860
- Processing by ExampleController#restricted as HTML
861
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
862
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
863
-
864
-
865
- Started GET "/restricted" for 127.0.0.1 at 2012-09-04 13:04:15 +0000
866
- Processing by ExampleController#restricted as HTML
867
- Authenticating with gds_sso strategy
868
- Completed in 0ms
869
-
870
-
871
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-04 13:04:15 +0000
872
-
873
-
874
- Started GET "/auth/gds/callback?code=28665d2bbb7c40b2c1c0d48743f3953cbe1639b1f82e20ce907e0920b51d1f7b&state=837341d3cc5519d88bb79a1995ea1d8fa3f705ae3799ac91" for 127.0.0.1 at 2012-09-04 13:04:15 +0000
875
- Processing by AuthenticationsController#callback as HTML
876
- Parameters: {"code"=>"28665d2bbb7c40b2c1c0d48743f3953cbe1639b1f82e20ce907e0920b51d1f7b", "state"=>"837341d3cc5519d88bb79a1995ea1d8fa3f705ae3799ac91"}
877
- Authenticating with gds_sso strategy
878
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
879
-  (1.2ms) begin transaction
880
-  (0.2ms) UPDATE "users" SET "permissions" = '---
476
+  (0.3ms) UPDATE "users" SET "permissions" = '---
881
477
  GDS_SSO integration test:
882
478
  - signin
883
479
  ' WHERE "users"."id" = 5
884
-  (6.5ms) commit transaction
885
-  (0.1ms) begin transaction
886
-  (0.2ms) UPDATE "users" SET "permissions" = '---
887
- GDS_SSO integration test:
888
- - signin
889
- ' WHERE "users"."id" = 5
890
-  (2.2ms) commit transaction
891
- Redirected to http://www.example-client.com/restricted
892
- Completed 302 Found in 16ms (ActiveRecord: 10.7ms)
893
-
894
-
895
- Started GET "/restricted" for 127.0.0.1 at 2012-09-04 13:04:15 +0000
896
- Processing by ExampleController#restricted as HTML
897
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
898
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
899
-
900
-
901
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
902
- Processing by ExampleController#restricted as HTML
903
- Authenticating with gds_sso strategy
904
- Completed in 0ms
905
-
906
-
907
- Started GET "/auth/gds" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
480
+  (2.4ms) commit transaction
481
+ Completed 200 OK in 77ms (Views: 0.7ms | ActiveRecord: 10.3ms)
908
482
 
909
483
 
910
- Started GET "/auth/gds/callback?code=8e4bc8427151e94ed9354dfc0926fa36cd6e9d480f5635a2832981cbd438928a&state=3819931064c403665a971bcf63c3d0d1f98c6704015a9700" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
911
- Processing by AuthenticationsController#callback as HTML
912
- Parameters: {"code"=>"8e4bc8427151e94ed9354dfc0926fa36cd6e9d480f5635a2832981cbd438928a", "state"=>"3819931064c403665a971bcf63c3d0d1f98c6704015a9700"}
913
- Authenticating with gds_sso strategy
914
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
484
+ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-11 10:02:04 +0000
485
+ Processing by ExampleController#this_requires_signin_permission as JSON
486
+ Authenticating with gds_bearer_token strategy
487
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
915
488
   (0.1ms) begin transaction
916
-  (0.2ms) UPDATE "users" SET "permissions" = '---
489
+  (0.3ms) UPDATE "users" SET "permissions" = '---
917
490
  GDS_SSO integration test:
918
491
  - signin
919
492
  ' WHERE "users"."id" = 5
920
-  (8.4ms) commit transaction
493
+  (8.5ms) commit transaction
921
494
   (0.0ms) begin transaction
922
495
   (0.2ms) UPDATE "users" SET "permissions" = '---
923
496
  GDS_SSO integration test:
924
497
  - signin
925
498
  ' WHERE "users"."id" = 5
926
-  (2.7ms) commit transaction
927
- Redirected to http://www.example-client.com/restricted
928
- Completed 302 Found in 17ms (ActiveRecord: 11.9ms)
929
-
930
-
931
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
932
- Processing by ExampleController#restricted as HTML
933
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
934
- Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
935
-
936
-
937
- Started GET "/restricted" for 127.0.0.1 at 2012-09-04 12:54:15 +0000
938
- Processing by ExampleController#restricted as HTML
939
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
940
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
941
-
942
-
943
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
944
- Processing by ExampleController#restricted as JSON
945
- Authenticating with gds_sso_api_access strategy
946
- Completed in 12ms
947
-
948
-
949
- Started GET "/restricted" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
950
- Processing by ExampleController#restricted as JSON
951
- Authenticating with gds_sso_api_access strategy
952
- Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
953
-
954
-
955
- Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-09-03 16:59:15 +0000
956
- Processing by ExampleController#this_requires_signin_permission as JSON
957
- Authenticating with gds_sso_api_access strategy
958
- Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
499
+  (1.9ms) commit transaction
500
+ Completed 200 OK in 46ms (Views: 0.7ms | ActiveRecord: 11.3ms)