gds-sso 9.2.7 → 9.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +7 -0
- data/lib/gds-sso.rb +2 -5
- data/lib/gds-sso/bearer_token.rb +62 -0
- data/lib/gds-sso/config.rb +4 -0
- data/lib/gds-sso/failure_app.rb +3 -1
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +5 -100
- data/spec/fixtures/integration/authorize_api_users.sql +5 -2
- data/spec/fixtures/integration/signonotron2.sql +8 -2
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +260 -224
- data/spec/requests/end_to_end_spec.rb +6 -0
- metadata +71 -54
data/Gemfile
CHANGED
@@ -2,3 +2,10 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in gds-sso.gemspec
|
4
4
|
gemspec
|
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'
|
9
|
+
|
10
|
+
## Gems added to resolve dependency resolution
|
11
|
+
gem 'mechanize', '2.6.0'
|
data/lib/gds-sso.rb
CHANGED
@@ -2,6 +2,7 @@ require 'rails'
|
|
2
2
|
|
3
3
|
require 'gds-sso/config'
|
4
4
|
require 'gds-sso/warden_config'
|
5
|
+
require 'omniauth'
|
5
6
|
require 'omniauth-gds'
|
6
7
|
|
7
8
|
module GDS
|
@@ -32,12 +33,8 @@ module GDS
|
|
32
33
|
}
|
33
34
|
end
|
34
35
|
|
35
|
-
def self.use_mock_strategies?
|
36
|
-
['development', 'test'].include?(Rails.env) && ENV['GDS_SSO_STRATEGY'] != 'real'
|
37
|
-
end
|
38
|
-
|
39
36
|
def self.default_strategies
|
40
|
-
use_mock_strategies? ? [:mock_gds_sso, :
|
37
|
+
Config.use_mock_strategies? ? [:mock_gds_sso, :gds_bearer_token] : [:gds_sso, :gds_bearer_token]
|
41
38
|
end
|
42
39
|
|
43
40
|
config.app_middleware.use Warden::Manager do |config|
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'multi_json'
|
2
|
+
require 'oauth2'
|
3
|
+
|
4
|
+
module GDS
|
5
|
+
module SSO
|
6
|
+
module BearerToken
|
7
|
+
def self.locate(token_string)
|
8
|
+
access_token = OAuth2::AccessToken.new(oauth_client, token_string)
|
9
|
+
response_body = access_token.get("/user.json?client_id=#{CGI.escape(GDS::SSO::Config.oauth_id)}").body
|
10
|
+
user_details = omniauth_style_response(response_body)
|
11
|
+
GDS::SSO::Config.user_klass.find_for_gds_oauth(user_details)
|
12
|
+
rescue OAuth2::Error
|
13
|
+
nil
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.oauth_client
|
17
|
+
@oauth_client ||= OAuth2::Client.new(
|
18
|
+
GDS::SSO::Config.oauth_id,
|
19
|
+
GDS::SSO::Config.oauth_secret,
|
20
|
+
:site => GDS::SSO::Config.oauth_root_url
|
21
|
+
)
|
22
|
+
end
|
23
|
+
|
24
|
+
# Our User code assumes we're getting our user data back
|
25
|
+
# via omniauth and so receiving it in omniauth's preferred
|
26
|
+
# structure. Here we're addressing signonotron directly so
|
27
|
+
# we need to transform the response ourselves.
|
28
|
+
def self.omniauth_style_response(response_body)
|
29
|
+
input = MultiJson.decode(response_body)['user']
|
30
|
+
|
31
|
+
{
|
32
|
+
'uid' => input['uid'],
|
33
|
+
'info' => {
|
34
|
+
'email' => input['email'],
|
35
|
+
'name' => input['name']
|
36
|
+
},
|
37
|
+
'extra' => {
|
38
|
+
'user' => {
|
39
|
+
'permissions' => input['permissions'],
|
40
|
+
'organisation_slug' => input['organisation_slug'],
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
module MockBearerToken
|
48
|
+
def self.locate(token_string)
|
49
|
+
dummy_api_user = GDS::SSO.test_user || GDS::SSO::Config.user_klass.where(email: "dummyapiuser@domain.com").first
|
50
|
+
if dummy_api_user.nil?
|
51
|
+
dummy_api_user = GDS::SSO::Config.user_klass.new
|
52
|
+
dummy_api_user.email = "dummyapiuser@domain.com"
|
53
|
+
dummy_api_user.uid = "#{rand(10000)}"
|
54
|
+
dummy_api_user.name = "Dummy API user created by gds-sso"
|
55
|
+
dummy_api_user.permissions = ["signin"]
|
56
|
+
dummy_api_user.save!
|
57
|
+
end
|
58
|
+
dummy_api_user
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
data/lib/gds-sso/config.rb
CHANGED
data/lib/gds-sso/failure_app.rb
CHANGED
@@ -12,7 +12,9 @@ module GDS
|
|
12
12
|
include Rails.application.routes.url_helpers
|
13
13
|
|
14
14
|
def self.call(env)
|
15
|
-
if
|
15
|
+
if ::GDS::SSO::ApiAccess.api_call?(env)
|
16
|
+
[ 401, {'WWW-Authenticate' => %(Bearer error="invalid_token") }, [] ]
|
17
|
+
else
|
16
18
|
action(:redirect).call(env)
|
17
19
|
end
|
18
20
|
end
|
data/lib/gds-sso/version.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'warden'
|
2
|
-
require '
|
2
|
+
require 'warden-oauth2'
|
3
|
+
require 'gds-sso/bearer_token'
|
3
4
|
|
4
5
|
def logger
|
5
6
|
if Rails.logger # if we are actually running in a rails app
|
@@ -65,82 +66,10 @@ Warden::Strategies.add(:gds_sso) do
|
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
68
|
-
Warden::
|
69
|
-
|
70
|
-
::GDS::SSO::ApiAccess.api_call?(env) &&
|
71
|
-
::GDS::SSO::ApiAccess.oauth_api_call?(env)
|
72
|
-
end
|
73
|
-
|
74
|
-
def authenticate!
|
75
|
-
logger.debug("Authenticating with gds_bearer_token strategy")
|
76
|
-
|
77
|
-
begin
|
78
|
-
access_token = OAuth2::AccessToken.new(oauth_client, token_from_authorization_header)
|
79
|
-
response_body = access_token.get('/user.json').body
|
80
|
-
user_details = omniauth_style_response(response_body)
|
81
|
-
user = prep_user(user_details)
|
82
|
-
success!(user)
|
83
|
-
rescue OAuth2::Error
|
84
|
-
custom!(unauthorized)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
def oauth_client
|
89
|
-
@oauth_client ||= OAuth2::Client.new(
|
90
|
-
GDS::SSO::Config.oauth_id,
|
91
|
-
GDS::SSO::Config.oauth_secret,
|
92
|
-
:site => GDS::SSO::Config.oauth_root_url
|
93
|
-
)
|
94
|
-
end
|
95
|
-
|
96
|
-
def token_from_authorization_header
|
97
|
-
env['HTTP_AUTHORIZATION'].gsub(/Bearer /, '')
|
98
|
-
end
|
99
|
-
|
100
|
-
# Our User code assumes we're getting our user data back
|
101
|
-
# via omniauth and so receiving it in omniauth's preferred
|
102
|
-
# structure. Here we're addressing signonotron directly so
|
103
|
-
# we need to transform the response ourselves.
|
104
|
-
#
|
105
|
-
# There may be a way to simplify matters by having this
|
106
|
-
# strategy work via omniauth too but I've not worked out how
|
107
|
-
# to wire that up yet.
|
108
|
-
def omniauth_style_response(response_body)
|
109
|
-
input = MultiJson.decode(response_body)['user']
|
110
|
-
|
111
|
-
{
|
112
|
-
'uid' => input['uid'],
|
113
|
-
'info' => {
|
114
|
-
'email' => input['email'],
|
115
|
-
'name' => input['name']
|
116
|
-
},
|
117
|
-
'extra' => {
|
118
|
-
'user' => {
|
119
|
-
'permissions' => input['permissions'],
|
120
|
-
'organisation_slug' => input['organisation_slug'],
|
121
|
-
}
|
122
|
-
}
|
123
|
-
}
|
124
|
-
end
|
125
|
-
|
126
|
-
def prep_user(auth_hash)
|
127
|
-
user = GDS::SSO::Config.user_klass.find_for_gds_oauth(auth_hash)
|
128
|
-
custom!(unauthorized) unless user
|
129
|
-
user
|
130
|
-
end
|
131
|
-
|
132
|
-
def unauthorized
|
133
|
-
[
|
134
|
-
401,
|
135
|
-
{
|
136
|
-
'Content-Type' => 'text/plain',
|
137
|
-
'Content-Length' => '0',
|
138
|
-
'WWW-Authenticate' => %(Bearer error="invalid_token")
|
139
|
-
},
|
140
|
-
[]
|
141
|
-
]
|
142
|
-
end
|
69
|
+
Warden::OAuth2.configure do |config|
|
70
|
+
config.token_model = GDS::SSO::Config.use_mock_strategies? ? GDS::SSO::MockBearerToken : GDS::SSO::BearerToken
|
143
71
|
end
|
72
|
+
Warden::Strategies.add(:gds_bearer_token, Warden::OAuth2::Strategies::Bearer)
|
144
73
|
|
145
74
|
Warden::Strategies.add(:mock_gds_sso) do
|
146
75
|
def valid?
|
@@ -168,27 +97,3 @@ Warden::Strategies.add(:mock_gds_sso) do
|
|
168
97
|
end
|
169
98
|
end
|
170
99
|
end
|
171
|
-
|
172
|
-
Warden::Strategies.add(:mock_gds_sso_api_access) do
|
173
|
-
def valid?
|
174
|
-
::GDS::SSO::ApiAccess.api_call?(env)
|
175
|
-
end
|
176
|
-
|
177
|
-
def authenticate!
|
178
|
-
logger.debug("Authenticating with mock_gds_sso_api_access strategy")
|
179
|
-
dummy_api_user = GDS::SSO.test_user || GDS::SSO::Config.user_klass.where(email: "dummyapiuser@domain.com").first
|
180
|
-
if dummy_api_user.nil?
|
181
|
-
dummy_api_user = GDS::SSO::Config.user_klass.new(
|
182
|
-
{
|
183
|
-
email: "dummyapiuser@domain.com",
|
184
|
-
uid: "#{rand(10000)}",
|
185
|
-
name: "Dummy API user created by gds-sso"
|
186
|
-
},
|
187
|
-
{as: :oauth}
|
188
|
-
)
|
189
|
-
dummy_api_user.permissions = ["signin"]
|
190
|
-
dummy_api_user.save!
|
191
|
-
end
|
192
|
-
success!(dummy_api_user)
|
193
|
-
end
|
194
|
-
end
|
@@ -1,4 +1,7 @@
|
|
1
1
|
DELETE FROM `oauth_access_tokens`;
|
2
2
|
|
3
|
-
INSERT INTO oauth_access_tokens
|
4
|
-
(
|
3
|
+
INSERT INTO oauth_access_tokens (resource_owner_id, application_id, token, refresh_token, expires_in, created_at)
|
4
|
+
VALUES (1, 1, 'caaeb53be5c7277fb0ef158181bfd1537b57f9e3b83eb795be3cd0af6e118b28', '1bc343797483954d7306d67e96687feccdfdaa8b23ed662ae23e2b03e6661d16', 307584000, '2012-06-27 13:57:47');
|
5
|
+
|
6
|
+
INSERT INTO oauth_access_tokens (resource_owner_id, application_id, token, refresh_token, expires_in, created_at)
|
7
|
+
VALUES (1, 2, '98c72f4da02fdc43398e029d05567542944d2a9b0df3c20b0accd8bd6c5dc728', 'e2da0489a58219fd4f542139909737627874ceacd2af23f5c268ccecb36e85af', 307584000, '2014-07-14 09:06:14');
|
@@ -8,10 +8,16 @@ DELETE FROM `users`;
|
|
8
8
|
-- Setup fixture data
|
9
9
|
INSERT INTO `oauth_applications` (id, name, uid, secret, redirect_uri, created_at, updated_at, home_uri, description)
|
10
10
|
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');
|
11
|
+
INSERT INTO `oauth_applications` (id, name, uid, secret, redirect_uri, created_at, updated_at, home_uri, description)
|
12
|
+
VALUES (2,'A different appilcation','application-2','different secret','http://www.example-client2.com/auth/gds/callback','2014-07-14-09:07:32','2014-07-14-09:07:32', 'http://www.example-client2.com', '');
|
13
|
+
|
11
14
|
INSERT INTO `users` (id, email, encrypted_password, password_salt, created_at, updated_at, confirmed_at, name, uid, role)
|
12
15
|
VALUES (1,'test@example-client.com','bb8e19edbaa1e7721abe0faa5c1663a7685950093b8c7eceb0f2e3889bdea4c5f17ca97820b2c663edf46ea532d1a9baa04b680fc537b4de8a3f376dd28e3ffd','MpLsZ8q1UaAojTa6bTC6','2012-04-19 13:26:54','2012-04-19 13:26:54','2012-04-19 13:26:54','Test User','integration-uid', "normal");
|
13
|
-
|
16
|
+
|
17
|
+
INSERT INTO `permissions` (user_id, application_id, permissions) VALUES (1,1,"---
|
18
|
+
- signin
|
19
|
+
");
|
20
|
+
INSERT INTO `permissions` (user_id, application_id, permissions) VALUES (1,2,"---
|
14
21
|
- signin
|
15
22
|
");
|
16
|
-
|
17
23
|
|
Binary file
|
data/spec/internal/log/test.log
CHANGED
@@ -1,376 +1,412 @@
|
|
1
1
|
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (
|
3
|
-
[1m[35m (
|
4
|
-
[1m[36m (8.
|
5
|
-
[1m[35m (9.
|
2
|
+
[1m[36m (22.7ms)[0m [1mselect sqlite_version(*)[0m
|
3
|
+
[1m[35m (16.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "remotely_signed_out" boolean, "permissions" text, "organisation_slug" varchar(255))
|
4
|
+
[1m[36m (8.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
5
|
+
[1m[35m (9.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6
6
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
-
[1m[35mSQL (
|
8
|
-
[1m[36m (
|
7
|
+
[1m[35mSQL (4.0ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36713"]]
|
8
|
+
[1m[36m (13.6ms)[0m [1mcommit transaction[0m
|
9
9
|
[1m[35m (0.1ms)[0m begin transaction
|
10
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "
|
11
|
-
[1m[35m (
|
10
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34124"]]
|
11
|
+
[1m[35m (9.8ms)[0m commit transaction
|
12
12
|
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
13
|
-
Processing by Api::UserController#
|
14
|
-
Parameters: {"uid"=>"
|
15
|
-
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.
|
16
|
-
Completed 403 Forbidden in
|
13
|
+
Processing by Api::UserController#reauth as HTML
|
14
|
+
Parameters: {"uid"=>"a1s2d36713"}
|
15
|
+
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)
|
17
17
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "
|
19
|
-
[1m[36m (
|
18
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36796"]]
|
19
|
+
[1m[36m (10.5ms)[0m [1mcommit transaction[0m
|
20
20
|
[1m[35m (0.1ms)[0m begin transaction
|
21
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "
|
22
|
-
[1m[35m (
|
21
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d33045"]]
|
22
|
+
[1m[35m (11.3ms)[0m commit transaction
|
23
|
+
Processing by Api::UserController#reauth as HTML
|
24
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
25
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
26
|
+
Completed 200 OK in 6.1ms (ActiveRecord: 0.3ms)
|
27
|
+
[1m[35m (0.1ms)[0m begin transaction
|
28
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34574"]]
|
29
|
+
[1m[35m (10.8ms)[0m commit transaction
|
30
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d32625"]]
|
32
|
+
[1m[36m (11.6ms)[0m [1mcommit transaction[0m
|
33
|
+
Processing by Api::UserController#reauth as HTML
|
34
|
+
Parameters: {"uid"=>"a1s2d34574"}
|
35
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34574' LIMIT 1
|
36
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
37
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
38
|
+
- signin
|
39
|
+
' WHERE "users"."id" = 5
|
40
|
+
[1m[36m (13.8ms)[0m [1mcommit transaction[0m
|
41
|
+
Completed 200 OK in 17.9ms (ActiveRecord: 14.2ms)
|
42
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
|
43
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
44
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d34826"]]
|
45
|
+
[1m[36m (12.4ms)[0m [1mcommit transaction[0m
|
46
|
+
[1m[35m (0.0ms)[0m begin transaction
|
47
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35052"]]
|
48
|
+
[1m[35m (23.7ms)[0m commit transaction
|
23
49
|
Processing by Api::UserController#update as HTML
|
24
|
-
Parameters: {"uid"=>"
|
25
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '
|
50
|
+
Parameters: {"uid"=>"a1s2d34826"}
|
51
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d34826' LIMIT 1[0m
|
26
52
|
[1m[35m (0.0ms)[0m begin transaction
|
27
53
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
28
54
|
- signin
|
29
55
|
- new permission
|
30
|
-
', "organisation_slug" = 'justice-league' WHERE "users"."id" =
|
31
|
-
[1m[35m (
|
32
|
-
Completed 200 OK in
|
33
|
-
[1m[36mUser Load (0.
|
56
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 7[0m
|
57
|
+
[1m[35m (11.1ms)[0m commit transaction
|
58
|
+
Completed 200 OK in 14.9ms (ActiveRecord: 11.5ms)
|
59
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 7]]
|
34
60
|
[1m[35m (0.1ms)[0m begin transaction
|
35
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "
|
36
|
-
[1m[35m (12.
|
61
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31326"]]
|
62
|
+
[1m[35m (12.4ms)[0m commit transaction
|
37
63
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
38
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "
|
39
|
-
[1m[36m (
|
64
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "ssopushuser@legit.com"], ["name", "SSO Push user"], ["organisation_slug", nil], ["permissions", "---\n- signin\n- user_update_permission\n"], ["remotely_signed_out", nil], ["uid", "a1s2d35875"]]
|
65
|
+
[1m[36m (11.9ms)[0m [1mcommit transaction[0m
|
40
66
|
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
41
|
-
Processing by Api::UserController#
|
42
|
-
Parameters: {"uid"=>"
|
43
|
-
Completed 403 Forbidden in 1.
|
67
|
+
Processing by Api::UserController#update as HTML
|
68
|
+
Parameters: {"uid"=>"a1s2d31326"}
|
69
|
+
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
|
71
|
+
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
|
74
|
+
Processing by ExampleController#restricted as JSON
|
75
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
76
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1[0m
|
44
77
|
[1m[35m (0.1ms)[0m begin transaction
|
45
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "
|
46
|
-
[1m[35m (
|
78
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "test@example-client.com"], ["name", "Test User"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "integration-uid"]]
|
79
|
+
[1m[35m (13.4ms)[0m commit transaction
|
80
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
81
|
+
[1m[35m (0.0ms)[0m begin transaction
|
82
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
83
|
+
- signin
|
84
|
+
' WHERE "users"."id" = 11[0m
|
85
|
+
[1m[35m (10.9ms)[0m commit transaction
|
86
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
87
|
+
[1m[35m (0.0ms)[0m begin transaction
|
88
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
89
|
+
- signin
|
90
|
+
' WHERE "users"."id" = 11[0m
|
91
|
+
[1m[35m (10.5ms)[0m commit transaction
|
92
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
93
|
+
[1m[35m (0.0ms)[0m begin transaction
|
94
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
95
|
+
- signin
|
96
|
+
' WHERE "users"."id" = 11[0m
|
97
|
+
[1m[35m (11.9ms)[0m commit transaction
|
98
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
99
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
100
|
+
- signin
|
101
|
+
' WHERE "users"."id" = 11
|
102
|
+
[1m[36m (8.2ms)[0m [1mcommit transaction[0m
|
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
|
105
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
106
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
47
107
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
48
|
-
[1m[
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
[1m[35mUser Load (0.
|
53
|
-
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
108
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
109
|
+
- signin
|
110
|
+
' WHERE "users"."id" = 11
|
111
|
+
[1m[36m (10.0ms)[0m [1mcommit transaction[0m
|
112
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
54
113
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
55
|
-
[1m[
|
56
|
-
|
57
|
-
|
58
|
-
[1m[
|
59
|
-
[1m[
|
60
|
-
|
61
|
-
|
62
|
-
|
114
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
115
|
+
- signin
|
116
|
+
' WHERE "users"."id" = 11
|
117
|
+
[1m[36m (10.6ms)[0m [1mcommit transaction[0m
|
118
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
119
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
120
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
121
|
+
- signin
|
122
|
+
' WHERE "users"."id" = 11
|
123
|
+
[1m[36m (9.4ms)[0m [1mcommit transaction[0m
|
124
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
125
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
126
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
127
|
+
- signin
|
128
|
+
' WHERE "users"."id" = 11
|
129
|
+
[1m[36m (9.4ms)[0m [1mcommit transaction[0m
|
63
130
|
[1m[35m (0.0ms)[0m begin transaction
|
64
|
-
[1m[36m (0.
|
131
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
65
132
|
- signin
|
66
|
-
' WHERE "users"."id" =
|
67
|
-
[1m[35m (
|
68
|
-
Completed 200 OK in
|
69
|
-
|
70
|
-
|
133
|
+
' WHERE "users"."id" = 11[0m
|
134
|
+
[1m[35m (8.9ms)[0m 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
|
71
140
|
Processing by ExampleController#index as HTML
|
72
|
-
Completed 200 OK in
|
73
|
-
Started GET "/
|
74
|
-
Processing by ExampleController#
|
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
|
75
144
|
Authenticating with gds_sso strategy
|
76
|
-
Completed in
|
77
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
78
|
-
Started GET "/auth/gds/callback?code=
|
145
|
+
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
|
79
148
|
Processing by AuthenticationsController#callback as HTML
|
80
|
-
Parameters: {"code"=>"
|
149
|
+
Parameters: {"code"=>"5975db777d300dea19d732e349a1e11f7a32642833159c9df9906db5ffb9baa2", "state"=>"f0484e1e5be76776d650d5e35cf7a598239a5b50461aa916"}
|
81
150
|
Authenticating with gds_sso strategy
|
82
|
-
[1m[
|
83
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1[0m
|
151
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
84
152
|
[1m[35m (0.1ms)[0m begin transaction
|
85
|
-
[1m[
|
86
|
-
|
87
|
-
|
88
|
-
[1m[35m (
|
153
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
154
|
+
- signin
|
155
|
+
' WHERE "users"."id" = 11[0m
|
156
|
+
[1m[35m (9.1ms)[0m commit transaction
|
157
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
158
|
+
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
89
159
|
- signin
|
90
160
|
' WHERE "users"."id" = 11
|
91
|
-
[1m[36m (
|
92
|
-
Redirected to http://www.example-client.com/
|
93
|
-
Completed 302 Found in
|
94
|
-
Started GET "/
|
95
|
-
Processing by ExampleController#
|
161
|
+
[1m[36m (10.0ms)[0m [1mcommit transaction[0m
|
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
|
96
166
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
97
|
-
Completed 200 OK in 1.
|
98
|
-
Started GET "/
|
99
|
-
Processing by ExampleController#
|
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
|
100
170
|
Authenticating with gds_sso strategy
|
101
|
-
Completed in 0.
|
102
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
103
|
-
Started GET "/auth/gds/callback?code=
|
171
|
+
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
|
104
174
|
Processing by AuthenticationsController#callback as HTML
|
105
|
-
Parameters: {"code"=>"
|
175
|
+
Parameters: {"code"=>"5afbdc652a40e339df83fd3b72dd1e08ac20c9e65887be4a919fb40b4b7658b4", "state"=>"f850257ee9f2c743b5ea0ee0f0360b96158b629566127ccc"}
|
106
176
|
Authenticating with gds_sso strategy
|
107
177
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
108
|
-
[1m[35m (0.
|
178
|
+
[1m[35m (0.1ms)[0m begin transaction
|
109
179
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
110
180
|
- signin
|
111
181
|
' WHERE "users"."id" = 11[0m
|
112
|
-
[1m[35m (
|
182
|
+
[1m[35m (11.7ms)[0m commit transaction
|
113
183
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
114
184
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
115
185
|
- signin
|
116
186
|
' WHERE "users"."id" = 11
|
117
|
-
[1m[36m (
|
118
|
-
Redirected to http://www.example-client.com/
|
119
|
-
Completed 302 Found in
|
120
|
-
Started GET "/
|
121
|
-
Processing by ExampleController#
|
187
|
+
[1m[36m (8.0ms)[0m [1mcommit transaction[0m
|
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
|
122
192
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
123
|
-
Completed 200 OK in 1.
|
124
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
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
|
125
195
|
Processing by ExampleController#restricted as HTML
|
126
196
|
Authenticating with gds_sso strategy
|
127
|
-
Completed in 0.
|
128
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
129
|
-
Started GET "/auth/gds/callback?code=
|
197
|
+
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
|
130
200
|
Processing by AuthenticationsController#callback as HTML
|
131
|
-
Parameters: {"code"=>"
|
201
|
+
Parameters: {"code"=>"e41b27b6bcd8d06e7f62f794a6254edcefe1463a770a5b048a3399da9b3d2456", "state"=>"f3c6d7b10c576e26ffcac9aa2e24a60fc0764fe6b5843d3f"}
|
132
202
|
Authenticating with gds_sso strategy
|
133
203
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
134
|
-
[1m[35m (0.
|
135
|
-
[1m[36m (0.
|
204
|
+
[1m[35m (0.0ms)[0m begin transaction
|
205
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
136
206
|
- signin
|
137
207
|
' WHERE "users"."id" = 11[0m
|
138
|
-
[1m[35m (
|
208
|
+
[1m[35m (21.5ms)[0m commit transaction
|
139
209
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140
210
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
141
211
|
- signin
|
142
212
|
' WHERE "users"."id" = 11
|
143
|
-
[1m[36m (
|
213
|
+
[1m[36m (14.7ms)[0m [1mcommit transaction[0m
|
144
214
|
Redirected to http://www.example-client.com/restricted
|
145
|
-
Completed 302 Found in
|
146
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
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
|
147
217
|
Processing by ExampleController#restricted as HTML
|
148
218
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
149
|
-
Completed 200 OK in 1.7ms (Views: 0.
|
150
|
-
Started GET "/
|
151
|
-
Processing by ExampleController#
|
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
|
152
222
|
Authenticating with gds_sso strategy
|
153
223
|
Completed in 0.3ms
|
154
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
155
|
-
Started GET "/auth/gds/callback?code=
|
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
|
156
226
|
Processing by AuthenticationsController#callback as HTML
|
157
|
-
Parameters: {"code"=>"
|
227
|
+
Parameters: {"code"=>"210b5d58b9ffe1bea1b9de5e2d153fd780f008363d642524024c378b62238e07", "state"=>"26b44a48b59d4ec1f55b4d079dcd744ffe007801fb59c273"}
|
158
228
|
Authenticating with gds_sso strategy
|
159
229
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
160
230
|
[1m[35m (0.1ms)[0m begin transaction
|
161
231
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
162
232
|
- signin
|
163
233
|
' WHERE "users"."id" = 11[0m
|
164
|
-
[1m[35m (
|
234
|
+
[1m[35m (10.3ms)[0m commit transaction
|
165
235
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
166
236
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
167
237
|
- signin
|
168
238
|
' WHERE "users"."id" = 11
|
169
|
-
[1m[36m (
|
170
|
-
Redirected to http://www.example-client.com/
|
171
|
-
Completed 302 Found in
|
172
|
-
Started GET "/
|
173
|
-
Processing by ExampleController#
|
239
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
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
|
174
244
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
175
|
-
Completed 200 OK in 1.7ms (Views: 0.
|
176
|
-
Started GET "/
|
177
|
-
Processing by ExampleController#
|
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
|
178
248
|
Authenticating with gds_sso strategy
|
179
249
|
Completed in 0.2ms
|
180
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
181
|
-
Started GET "/auth/gds/callback?code=
|
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
|
182
252
|
Processing by AuthenticationsController#callback as HTML
|
183
|
-
Parameters: {"code"=>"
|
253
|
+
Parameters: {"code"=>"a3b9018ca8bd15809018c13c3647e342178769d152181e7577286d8c69ccb98e", "state"=>"a53779c75892eac4775139c3bad3dc74c7df9965c47b22ee"}
|
184
254
|
Authenticating with gds_sso strategy
|
185
255
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
186
256
|
[1m[35m (0.0ms)[0m begin transaction
|
187
257
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
188
258
|
- signin
|
189
259
|
' WHERE "users"."id" = 11[0m
|
190
|
-
[1m[35m (
|
260
|
+
[1m[35m (11.4ms)[0m commit transaction
|
191
261
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
192
262
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
193
263
|
- signin
|
194
264
|
' WHERE "users"."id" = 11
|
195
|
-
[1m[36m (
|
196
|
-
Redirected to http://www.example-client.com/
|
197
|
-
Completed 302 Found in
|
198
|
-
Started GET "/
|
199
|
-
Processing by ExampleController#
|
200
|
-
[1m[35mUser Load (0.
|
201
|
-
Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.
|
202
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
265
|
+
[1m[36m (6.4ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
203
273
|
Processing by ExampleController#restricted as HTML
|
204
274
|
Authenticating with gds_sso strategy
|
205
|
-
Completed in 0.
|
206
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
207
|
-
Started GET "/auth/gds/callback?code=
|
275
|
+
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
|
208
278
|
Processing by AuthenticationsController#callback as HTML
|
209
|
-
Parameters: {"code"=>"
|
279
|
+
Parameters: {"code"=>"f43f0a109a92ca6da4462731e056222aeb34085532afdc2dbbdeee8765b3bb1b", "state"=>"2b9882146c18215fb72946ccba69fbfec2f5c728e691eefa"}
|
210
280
|
Authenticating with gds_sso strategy
|
211
281
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
212
282
|
[1m[35m (0.1ms)[0m begin transaction
|
213
283
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
214
284
|
- signin
|
215
285
|
' WHERE "users"."id" = 11[0m
|
216
|
-
[1m[35m (
|
286
|
+
[1m[35m (17.2ms)[0m commit transaction
|
217
287
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
218
288
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
219
289
|
- signin
|
220
290
|
' WHERE "users"."id" = 11
|
221
|
-
[1m[36m (
|
291
|
+
[1m[36m (7.8ms)[0m [1mcommit transaction[0m
|
222
292
|
Redirected to http://www.example-client.com/restricted
|
223
|
-
Completed 302 Found in
|
224
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
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
|
225
295
|
Processing by ExampleController#restricted as HTML
|
226
296
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
227
|
-
Completed 200 OK in 1.
|
228
|
-
|
229
|
-
[1m[35m (0.1ms)[0m begin transaction
|
230
|
-
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
231
|
-
- signin
|
232
|
-
' WHERE "users"."id" = 11[0m
|
233
|
-
[1m[35m (16.4ms)[0m commit transaction
|
234
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
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
|
235
299
|
Processing by ExampleController#restricted as HTML
|
236
300
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
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
|
303
|
+
Processing by ExampleController#restricted as HTML
|
237
304
|
Authenticating with gds_sso strategy
|
238
|
-
Completed in
|
239
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
240
|
-
Started GET "/auth/gds/callback?code=
|
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
|
241
308
|
Processing by AuthenticationsController#callback as HTML
|
242
|
-
Parameters: {"code"=>"
|
309
|
+
Parameters: {"code"=>"6e86a5ac211079540a91bd24d9e2d288bf63eca3eae8d673175e32e32e7f7130", "state"=>"9d588c1b54ad3155f986f4faaed309143cc4ccb34810385e"}
|
243
310
|
Authenticating with gds_sso strategy
|
244
311
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
245
|
-
[1m[36m (0.
|
312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
246
313
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
247
314
|
- signin
|
248
315
|
' WHERE "users"."id" = 11
|
249
|
-
[1m[36m (
|
250
|
-
[1m[35m (0.
|
251
|
-
[1m[36m (0.
|
316
|
+
[1m[36m (11.8ms)[0m [1mcommit transaction[0m
|
317
|
+
[1m[35m (0.0ms)[0m begin transaction
|
318
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
252
319
|
- signin
|
253
320
|
' WHERE "users"."id" = 11[0m
|
254
|
-
[1m[35m (
|
321
|
+
[1m[35m (12.0ms)[0m commit transaction
|
255
322
|
Redirected to http://www.example-client.com/restricted
|
256
|
-
Completed 302 Found in
|
257
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
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
|
258
325
|
Processing by ExampleController#restricted as HTML
|
259
326
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
260
|
-
Completed 200 OK in 1.4ms (Views: 0.
|
261
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
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
|
262
329
|
Processing by ExampleController#restricted as HTML
|
263
330
|
Authenticating with gds_sso strategy
|
264
331
|
Completed in 0.3ms
|
265
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
266
|
-
Started GET "/auth/gds/callback?code=
|
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
|
267
334
|
Processing by AuthenticationsController#callback as HTML
|
268
|
-
Parameters: {"code"=>"
|
335
|
+
Parameters: {"code"=>"1a3140979bcf7b3277dcf0246e252c3b07673b16c0960dc9fd11d5338079cd09", "state"=>"8abd43f4c4bf907ae34f3f3fc4b6e88f0dddc47b7304c202"}
|
269
336
|
Authenticating with gds_sso strategy
|
270
337
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
271
338
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
272
339
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
273
340
|
- signin
|
274
341
|
' WHERE "users"."id" = 11
|
275
|
-
[1m[36m (
|
342
|
+
[1m[36m (15.0ms)[0m [1mcommit transaction[0m
|
276
343
|
[1m[35m (0.1ms)[0m begin transaction
|
277
344
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
278
345
|
- signin
|
279
346
|
' WHERE "users"."id" = 11[0m
|
280
|
-
[1m[35m (
|
347
|
+
[1m[35m (11.3ms)[0m commit transaction
|
281
348
|
Redirected to http://www.example-client.com/restricted
|
282
|
-
Completed 302 Found in
|
283
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
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
|
284
351
|
Processing by ExampleController#restricted as HTML
|
285
352
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
286
|
-
Completed 200 OK in 1.
|
287
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
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
|
288
355
|
Processing by ExampleController#restricted as HTML
|
289
356
|
Authenticating with gds_sso strategy
|
290
|
-
Completed in 0.
|
291
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-
|
292
|
-
Started GET "/auth/gds/callback?code=
|
357
|
+
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
|
293
360
|
Processing by AuthenticationsController#callback as HTML
|
294
|
-
Parameters: {"code"=>"
|
361
|
+
Parameters: {"code"=>"03ef9abbd28b603a14ae6a14831ed972f90eee81c8b20b544aede2bd0aadb37c", "state"=>"61f2c111d40be99abb1c0fb13cf6da10cdeff618b7847110"}
|
295
362
|
Authenticating with gds_sso strategy
|
296
|
-
[1m[35mUser Load (0.
|
363
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
297
364
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298
365
|
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
299
366
|
- signin
|
300
367
|
' WHERE "users"."id" = 11
|
301
|
-
[1m[36m (
|
368
|
+
[1m[36m (15.6ms)[0m [1mcommit transaction[0m
|
302
369
|
[1m[35m (0.1ms)[0m begin transaction
|
303
|
-
[1m[36m (0.
|
370
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
304
371
|
- signin
|
305
372
|
' WHERE "users"."id" = 11[0m
|
306
|
-
[1m[35m (
|
373
|
+
[1m[35m (11.1ms)[0m commit transaction
|
307
374
|
Redirected to http://www.example-client.com/restricted
|
308
|
-
Completed 302 Found in
|
309
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-
|
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
|
310
377
|
Processing by ExampleController#restricted as HTML
|
311
378
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
312
|
-
Completed 200 OK in 1.
|
313
|
-
|
314
|
-
Processing by ExampleController#restricted as HTML
|
315
|
-
Authenticating with gds_sso strategy
|
316
|
-
Completed in 0.4ms
|
317
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
|
318
|
-
Started GET "/auth/gds/callback?code=bab47efe786ae1e03f7b8d1d151976af33314e80eb553d5fbd313d66f6d55406&state=88b33e9f9c7d2f5a6259251aea3570197a7dc407d8421f02" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
|
319
|
-
Processing by AuthenticationsController#callback as HTML
|
320
|
-
Parameters: {"code"=>"bab47efe786ae1e03f7b8d1d151976af33314e80eb553d5fbd313d66f6d55406", "state"=>"88b33e9f9c7d2f5a6259251aea3570197a7dc407d8421f02"}
|
321
|
-
Authenticating with gds_sso strategy
|
322
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
379
|
+
Completed 200 OK in 1.9ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
380
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1
|
323
381
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324
|
-
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
382
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
325
383
|
- signin
|
326
384
|
' WHERE "users"."id" = 11
|
327
|
-
[1m[36m (
|
328
|
-
|
329
|
-
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
330
|
-
- signin
|
331
|
-
' WHERE "users"."id" = 11[0m
|
332
|
-
[1m[35m (11.6ms)[0m commit transaction
|
333
|
-
Redirected to http://www.example-client.com/restricted
|
334
|
-
Completed 302 Found in 30.4ms (ActiveRecord: 25.2ms)
|
335
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
|
336
|
-
Processing by ExampleController#restricted as HTML
|
337
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
338
|
-
Completed 200 OK in 1.9ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
339
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-29 05:56:21 +0000
|
385
|
+
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
|
386
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-07-18 13:10:59 +0000
|
340
387
|
Processing by ExampleController#restricted as HTML
|
341
388
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
389
|
+
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
|
393
|
+
Processing by AuthenticationsController#callback as HTML
|
394
|
+
Parameters: {"code"=>"979607bcfbbc1794b923fa73d6fe319dd1be0bfc02086a961188b1de669bb8ff", "state"=>"ba10cbc1d53771830df04cb8d9cd264be7a05c80d204777c"}
|
395
|
+
Authenticating with gds_sso strategy
|
396
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
351
397
|
[1m[35m (0.1ms)[0m begin transaction
|
352
398
|
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
353
399
|
- signin
|
354
400
|
' WHERE "users"."id" = 11[0m
|
355
|
-
[1m[35m (
|
356
|
-
[1m[36m (0.
|
357
|
-
[1m[35m (0.
|
358
|
-
- signin
|
359
|
-
' WHERE "users"."id" = 11
|
360
|
-
[1m[36m (32.0ms)[0m [1mcommit transaction[0m
|
361
|
-
Completed 200 OK in 215.4ms (Views: 0.6ms | ActiveRecord: 58.0ms)
|
362
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:22 +0000
|
363
|
-
Processing by ExampleController#this_requires_signin_permission as JSON
|
364
|
-
Authenticating with gds_bearer_token strategy
|
365
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
366
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
367
|
-
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
401
|
+
[1m[35m (13.3ms)[0m commit transaction
|
402
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
403
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
368
404
|
- signin
|
369
405
|
' WHERE "users"."id" = 11
|
370
|
-
[1m[36m (
|
371
|
-
|
372
|
-
|
373
|
-
-
|
374
|
-
|
375
|
-
[1m[
|
376
|
-
Completed 200 OK in
|
406
|
+
[1m[36m (15.2ms)[0m [1mcommit transaction[0m
|
407
|
+
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
|
410
|
+
Processing by ExampleController#restricted as HTML
|
411
|
+
[1m[35mUser Load (0.2ms)[0m 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)
|