gds-sso 9.2.6 → 9.2.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,15 +9,15 @@ class Api::UserController < ActionController::Base
|
|
9
9
|
user_json = JSON.parse(request.body.read)['user']
|
10
10
|
oauth_hash = build_gds_oauth_hash(user_json)
|
11
11
|
GDS::SSO::Config.user_klass.find_for_gds_oauth(oauth_hash)
|
12
|
-
head :ok
|
12
|
+
head :ok, content_type: 'text/plain'
|
13
13
|
end
|
14
14
|
|
15
15
|
def reauth
|
16
16
|
user = GDS::SSO::Config.user_klass.where(:uid => params[:uid]).first
|
17
17
|
if user.nil? || user.set_remotely_signed_out!
|
18
|
-
head :ok
|
18
|
+
head :ok, content_type: 'text/plain'
|
19
19
|
else
|
20
|
-
head 500
|
20
|
+
head 500, content_type: 'text/plain'
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
data/lib/gds-sso/version.rb
CHANGED
@@ -60,6 +60,7 @@ describe Api::UserController, type: :controller do
|
|
60
60
|
expect(@user_to_update.email).to eq("user@domain.com")
|
61
61
|
expect(@user_to_update.permissions).to eq(["signin", "new permission"])
|
62
62
|
expect(@user_to_update.organisation_slug).to eq("justice-league")
|
63
|
+
expect(response.content_type).to eq('text/plain')
|
63
64
|
end
|
64
65
|
end
|
65
66
|
|
@@ -86,6 +87,7 @@ describe Api::UserController, type: :controller do
|
|
86
87
|
post :reauth, uid: "nonexistent-user"
|
87
88
|
|
88
89
|
expect(response.status).to eq(200)
|
90
|
+
expect(response.content_type).to eq('text/plain')
|
89
91
|
end
|
90
92
|
|
91
93
|
it "should set remotely_signed_out to true on the user" do
|
@@ -99,6 +101,7 @@ describe Api::UserController, type: :controller do
|
|
99
101
|
|
100
102
|
@user_to_update.reload
|
101
103
|
expect(@user_to_update.remotely_signed_out).to be_true
|
104
|
+
expect(response.content_type).to eq('text/plain')
|
102
105
|
end
|
103
106
|
end
|
104
107
|
end
|
Binary file
|
data/spec/internal/log/test.log
CHANGED
@@ -1,376 +1,376 @@
|
|
1
1
|
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (
|
3
|
-
[1m[35m (
|
4
|
-
[1m[36m (8.
|
5
|
-
[1m[35m (
|
2
|
+
[1m[36m (18.4ms)[0m [1mselect sqlite_version(*)[0m
|
3
|
+
[1m[35m (13.8ms)[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.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
5
|
+
[1m[35m (9.5ms)[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 (31.3ms)[0m INSERT INTO "users" ("email", "name", "organisation_slug", "permissions", "remotely_signed_out", "uid") VALUES (?, ?, ?, ?, ?, ?) [["email", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d36908"]]
|
8
|
+
[1m[36m (34.3ms)[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", "a1s2d32371"]]
|
11
|
+
[1m[35m (24.5ms)[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
|
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", "a1s2d31032"]]
|
19
|
-
[1m[36m (11.2ms)[0m [1mcommit transaction[0m
|
20
|
-
[1m[35m (0.1ms)[0m begin transaction
|
21
|
-
[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", "a1s2d33736"]]
|
22
|
-
[1m[35m (11.1ms)[0m commit transaction
|
23
|
-
Processing by Api::UserController#reauth as HTML
|
24
|
-
Parameters: {"uid"=>"nonexistent-user"}
|
25
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1[0m
|
26
|
-
Completed 200 OK in 26.6ms (ActiveRecord: 0.2ms)
|
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", "a1s2d3267"]]
|
29
|
-
[1m[35m (14.1ms)[0m commit transaction
|
13
|
+
Processing by Api::UserController#update as HTML
|
14
|
+
Parameters: {"uid"=>"a1s2d36908"}
|
15
|
+
Rendered /home/jenkins/workspace/govuk_gds_sso/app/views/authorisations/unauthorised.html.erb within layouts/unauthorised (0.3ms)
|
16
|
+
Completed 403 Forbidden in 39.8ms (Views: 13.5ms | ActiveRecord: 0.0ms)
|
30
17
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31
|
-
[1m[35mSQL (0.
|
32
|
-
[1m[36m (
|
33
|
-
Processing by Api::UserController#reauth as HTML
|
34
|
-
Parameters: {"uid"=>"a1s2d3267"}
|
35
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3267' LIMIT 1
|
36
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
37
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
38
|
-
- signin
|
39
|
-
' WHERE "users"."id" = 5
|
40
|
-
[1m[36m (6.8ms)[0m [1mcommit transaction[0m
|
41
|
-
Completed 200 OK in 10.6ms (ActiveRecord: 7.2ms)
|
42
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
|
43
|
-
[1m[36m (0.0ms)[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", "a1s2d31538"]]
|
45
|
-
[1m[36m (10.3ms)[0m [1mcommit 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", "a1s2d38535"]]
|
19
|
+
[1m[36m (12.5ms)[0m [1mcommit transaction[0m
|
46
20
|
[1m[35m (0.1ms)[0m begin transaction
|
47
|
-
[1m[36mSQL (0.
|
48
|
-
[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", "a1s2d37781"]]
|
22
|
+
[1m[35m (10.3ms)[0m commit transaction
|
49
23
|
Processing by Api::UserController#update as HTML
|
50
|
-
Parameters: {"uid"=>"
|
51
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = '
|
24
|
+
Parameters: {"uid"=>"a1s2d38535"}
|
25
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d38535' LIMIT 1[0m
|
52
26
|
[1m[35m (0.0ms)[0m begin transaction
|
53
|
-
[1m[36m (0.
|
27
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "email" = 'user@domain.com', "name" = 'Joshua Marshall', "permissions" = '---
|
54
28
|
- signin
|
55
29
|
- new permission
|
56
|
-
', "organisation_slug" = 'justice-league' WHERE "users"."id" =
|
57
|
-
[1m[35m (
|
58
|
-
Completed 200 OK in
|
59
|
-
[1m[36mUser Load (0.
|
30
|
+
', "organisation_slug" = 'justice-league' WHERE "users"."id" = 3[0m
|
31
|
+
[1m[35m (13.6ms)[0m commit transaction
|
32
|
+
Completed 200 OK in 21.3ms (ActiveRecord: 14.0ms)
|
33
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
60
34
|
[1m[35m (0.1ms)[0m begin transaction
|
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", "
|
62
|
-
[1m[35m (
|
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", "a1s2d37830"]]
|
36
|
+
[1m[35m (12.2ms)[0m commit transaction
|
63
37
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64
|
-
[1m[35mSQL (0.
|
65
|
-
[1m[36m (
|
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", "a1s2d32204"]]
|
39
|
+
[1m[36m (10.5ms)[0m [1mcommit transaction[0m
|
66
40
|
WARNING: Can't mass-assign protected attributes: uid, name, permissions
|
67
|
-
Processing by Api::UserController#
|
68
|
-
Parameters: {"uid"=>"
|
69
|
-
Completed 403 Forbidden in 1.
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
[1m[
|
79
|
-
|
80
|
-
[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"]]
|
81
|
-
[1m[35m (15.8ms)[0m commit transaction
|
82
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
83
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
84
|
-
- signin
|
85
|
-
' WHERE "users"."id" = 11
|
86
|
-
[1m[36m (9.5ms)[0m [1mcommit transaction[0m
|
87
|
-
Completed 200 OK in 380.2ms (Views: 2.9ms | ActiveRecord: 25.9ms)
|
88
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-06 15:54:15 +0000
|
89
|
-
Processing by ExampleController#this_requires_signin_permission as JSON
|
90
|
-
Authenticating with gds_bearer_token strategy
|
91
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
41
|
+
Processing by Api::UserController#reauth as HTML
|
42
|
+
Parameters: {"uid"=>"a1s2d37830"}
|
43
|
+
Completed 403 Forbidden in 1.5ms (Views: 0.9ms | ActiveRecord: 0.0ms)
|
44
|
+
[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", "old@domain.com"], ["name", "Moshua Jarshall"], ["organisation_slug", nil], ["permissions", "---\n- signin\n"], ["remotely_signed_out", nil], ["uid", "a1s2d31716"]]
|
46
|
+
[1m[35m (14.8ms)[0m commit transaction
|
47
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
48
|
+
[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", "a1s2d31621"]]
|
49
|
+
[1m[36m (12.3ms)[0m [1mcommit transaction[0m
|
50
|
+
Processing by Api::UserController#reauth as HTML
|
51
|
+
Parameters: {"uid"=>"nonexistent-user"}
|
52
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'nonexistent-user' LIMIT 1
|
53
|
+
Completed 200 OK in 1.1ms (ActiveRecord: 0.2ms)
|
92
54
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
93
|
-
[1m[
|
94
|
-
|
95
|
-
' WHERE "users"."id" = 11
|
96
|
-
[1m[36m (11.9ms)[0m [1mcommit transaction[0m
|
55
|
+
[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", "a1s2d3573"]]
|
56
|
+
[1m[36m (15.8ms)[0m [1mcommit transaction[0m
|
97
57
|
[1m[35m (0.1ms)[0m begin transaction
|
98
|
-
[1m[
|
58
|
+
[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", "a1s2d35885"]]
|
59
|
+
[1m[35m (13.5ms)[0m commit transaction
|
60
|
+
Processing by Api::UserController#reauth as HTML
|
61
|
+
Parameters: {"uid"=>"a1s2d3573"}
|
62
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'a1s2d3573' LIMIT 1[0m
|
63
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
99
65
|
- signin
|
100
|
-
' WHERE "users"."id" =
|
101
|
-
[1m[35m (
|
102
|
-
Completed 200 OK in
|
103
|
-
|
66
|
+
' WHERE "users"."id" = 9[0m
|
67
|
+
[1m[35m (13.3ms)[0m commit transaction
|
68
|
+
Completed 200 OK in 16.6ms (ActiveRecord: 13.7ms)
|
69
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 9]]
|
70
|
+
Started GET "/" for 127.0.0.1 at 2014-05-28 10:01:15 +0000
|
71
|
+
Processing by ExampleController#index as HTML
|
72
|
+
Completed 200 OK in 3.4ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
73
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:16 +0000
|
104
74
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
105
75
|
Authenticating with gds_sso strategy
|
106
|
-
Completed in
|
107
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
108
|
-
Started GET "/auth/gds/callback?code=
|
76
|
+
Completed in 38.9ms
|
77
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:16 +0000
|
78
|
+
Started GET "/auth/gds/callback?code=faf6aab82246cb23fef1879ead32e8505144ef734fb2432626a0667d3af46c76&state=0d6136bf4b8f56ea9bca777052b46067399c6d0703a7d78a" for 127.0.0.1 at 2014-05-28 10:01:17 +0000
|
109
79
|
Processing by AuthenticationsController#callback as HTML
|
110
|
-
Parameters: {"code"=>"
|
80
|
+
Parameters: {"code"=>"faf6aab82246cb23fef1879ead32e8505144ef734fb2432626a0667d3af46c76", "state"=>"0d6136bf4b8f56ea9bca777052b46067399c6d0703a7d78a"}
|
111
81
|
Authenticating with gds_sso strategy
|
112
|
-
[1m[
|
113
|
-
[1m[
|
114
|
-
[1m[
|
115
|
-
- signin
|
116
|
-
|
117
|
-
[1m[
|
118
|
-
[1m[
|
119
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "permissions" = '---
|
82
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
83
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1[0m
|
84
|
+
[1m[35m (0.1ms)[0m begin transaction
|
85
|
+
[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"]]
|
86
|
+
[1m[35m (21.7ms)[0m commit transaction
|
87
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
88
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
120
89
|
- signin
|
121
90
|
' WHERE "users"."id" = 11
|
122
|
-
[1m[36m (
|
91
|
+
[1m[36m (13.8ms)[0m [1mcommit transaction[0m
|
123
92
|
Redirected to http://www.example-client.com/this_requires_signin_permission
|
124
|
-
Completed 302 Found in
|
125
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-
|
93
|
+
Completed 302 Found in 42.2ms (ActiveRecord: 36.3ms)
|
94
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:17 +0000
|
126
95
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
127
|
-
[1m[35mUser Load (0.
|
128
|
-
Completed 200 OK in
|
129
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-
|
96
|
+
[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.8ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
98
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:17 +0000
|
130
99
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
131
100
|
Authenticating with gds_sso strategy
|
132
|
-
Completed in 0.
|
133
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
134
|
-
Started GET "/auth/gds/callback?code=
|
101
|
+
Completed in 0.2ms
|
102
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:17 +0000
|
103
|
+
Started GET "/auth/gds/callback?code=29b5e159e6fb693ebc12b812a4565419724e8690ba041aedf91176d321b70320&state=6ced3aac4b4c56591263d743d0998eae8fb01fbcdd1473c4" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
|
135
104
|
Processing by AuthenticationsController#callback as HTML
|
136
|
-
Parameters: {"code"=>"
|
105
|
+
Parameters: {"code"=>"29b5e159e6fb693ebc12b812a4565419724e8690ba041aedf91176d321b70320", "state"=>"6ced3aac4b4c56591263d743d0998eae8fb01fbcdd1473c4"}
|
137
106
|
Authenticating with gds_sso strategy
|
138
|
-
[1m[36mUser Load (0.
|
107
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
139
108
|
[1m[35m (0.0ms)[0m begin transaction
|
140
|
-
[1m[36m (0.
|
109
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
141
110
|
- signin
|
142
111
|
' WHERE "users"."id" = 11[0m
|
143
|
-
[1m[35m (
|
144
|
-
[1m[36m (0.
|
145
|
-
[1m[35m (0.
|
112
|
+
[1m[35m (15.1ms)[0m commit transaction
|
113
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
114
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
146
115
|
- signin
|
147
116
|
' WHERE "users"."id" = 11
|
148
|
-
[1m[36m (
|
117
|
+
[1m[36m (9.8ms)[0m [1mcommit transaction[0m
|
149
118
|
Redirected to http://www.example-client.com/this_requires_signin_permission
|
150
|
-
Completed 302 Found in
|
151
|
-
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-
|
119
|
+
Completed 302 Found in 29.9ms (ActiveRecord: 25.5ms)
|
120
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
|
152
121
|
Processing by ExampleController#this_requires_signin_permission as HTML
|
153
|
-
[1m[35mUser Load (0.
|
154
|
-
Completed 200 OK in
|
155
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
122
|
+
[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.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
124
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
|
156
125
|
Processing by ExampleController#restricted as HTML
|
157
126
|
Authenticating with gds_sso strategy
|
158
|
-
Completed in 0.
|
159
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
160
|
-
Started GET "/auth/gds/callback?code=
|
127
|
+
Completed in 0.6ms
|
128
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
|
129
|
+
Started GET "/auth/gds/callback?code=395fdc86b83c4935e168b413a3f2f4f56214dc097f7cd0e2dd20d4b87ad57316&state=05f426033c7da87aac3fd1d66714bd72bb90a0f541feedab" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
|
161
130
|
Processing by AuthenticationsController#callback as HTML
|
162
|
-
Parameters: {"code"=>"
|
131
|
+
Parameters: {"code"=>"395fdc86b83c4935e168b413a3f2f4f56214dc097f7cd0e2dd20d4b87ad57316", "state"=>"05f426033c7da87aac3fd1d66714bd72bb90a0f541feedab"}
|
163
132
|
Authenticating with gds_sso strategy
|
164
|
-
[1m[36mUser Load (0.
|
133
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
165
134
|
[1m[35m (0.1ms)[0m begin transaction
|
166
|
-
[1m[36m (0.
|
135
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
167
136
|
- signin
|
168
137
|
' WHERE "users"."id" = 11[0m
|
169
|
-
[1m[35m (
|
170
|
-
[1m[36m (0.
|
171
|
-
[1m[35m (0.
|
138
|
+
[1m[35m (13.2ms)[0m commit transaction
|
139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
172
141
|
- signin
|
173
142
|
' WHERE "users"."id" = 11
|
174
|
-
[1m[36m (
|
143
|
+
[1m[36m (12.7ms)[0m [1mcommit transaction[0m
|
175
144
|
Redirected to http://www.example-client.com/restricted
|
176
|
-
Completed 302 Found in
|
177
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
145
|
+
Completed 302 Found in 32.2ms (ActiveRecord: 26.6ms)
|
146
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
|
178
147
|
Processing by ExampleController#restricted as HTML
|
179
|
-
[1m[35mUser Load (0.
|
180
|
-
Completed 200 OK in 1.
|
181
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
148
|
+
[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.4ms | ActiveRecord: 0.2ms)
|
150
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
|
182
151
|
Processing by ExampleController#restricted as HTML
|
183
152
|
Authenticating with gds_sso strategy
|
184
|
-
Completed in 0.
|
185
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
186
|
-
Started GET "/auth/gds/callback?code=
|
153
|
+
Completed in 0.3ms
|
154
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:18 +0000
|
155
|
+
Started GET "/auth/gds/callback?code=287809a753f9fab30b73667a774f37a2cf7262312f41aecb9467052f2808769d&state=65566e10cd35a26c965c9b3260d3b111c952d6beea198613" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
187
156
|
Processing by AuthenticationsController#callback as HTML
|
188
|
-
Parameters: {"code"=>"
|
157
|
+
Parameters: {"code"=>"287809a753f9fab30b73667a774f37a2cf7262312f41aecb9467052f2808769d", "state"=>"65566e10cd35a26c965c9b3260d3b111c952d6beea198613"}
|
189
158
|
Authenticating with gds_sso strategy
|
190
159
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
191
|
-
[1m[35m (0.
|
192
|
-
[1m[36m (0.
|
160
|
+
[1m[35m (0.1ms)[0m begin transaction
|
161
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
193
162
|
- signin
|
194
163
|
' WHERE "users"."id" = 11[0m
|
195
|
-
[1m[35m (
|
196
|
-
[1m[36m (0.
|
197
|
-
[1m[35m (0.
|
164
|
+
[1m[35m (11.0ms)[0m commit transaction
|
165
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
166
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
198
167
|
- signin
|
199
168
|
' WHERE "users"."id" = 11
|
200
|
-
[1m[36m (
|
169
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
201
170
|
Redirected to http://www.example-client.com/restricted
|
202
|
-
Completed 302 Found in
|
203
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
171
|
+
Completed 302 Found in 26.5ms (ActiveRecord: 20.8ms)
|
172
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
204
173
|
Processing by ExampleController#restricted as HTML
|
205
|
-
[1m[35mUser Load (0.
|
206
|
-
Completed 200 OK in 1.
|
207
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
174
|
+
[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.5ms | ActiveRecord: 0.2ms)
|
176
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
208
177
|
Processing by ExampleController#restricted as HTML
|
209
178
|
Authenticating with gds_sso strategy
|
210
179
|
Completed in 0.2ms
|
211
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
212
|
-
Started GET "/auth/gds/callback?code=
|
180
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
181
|
+
Started GET "/auth/gds/callback?code=07998a069ae35cedf19d2ae351243b8852a5c1be8d02659290c0b411f9abd216&state=b7048d5a343fc6946e7fd6419d0b458e53890e0e1ed0fe3b" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
213
182
|
Processing by AuthenticationsController#callback as HTML
|
214
|
-
Parameters: {"code"=>"
|
183
|
+
Parameters: {"code"=>"07998a069ae35cedf19d2ae351243b8852a5c1be8d02659290c0b411f9abd216", "state"=>"b7048d5a343fc6946e7fd6419d0b458e53890e0e1ed0fe3b"}
|
215
184
|
Authenticating with gds_sso strategy
|
216
|
-
[1m[36mUser Load (0.
|
185
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
217
186
|
[1m[35m (0.0ms)[0m begin transaction
|
218
|
-
[1m[36m (0.
|
187
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
219
188
|
- signin
|
220
189
|
' WHERE "users"."id" = 11[0m
|
221
|
-
[1m[35m (
|
190
|
+
[1m[35m (15.0ms)[0m commit transaction
|
222
191
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
223
|
-
[1m[35m (0.
|
192
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
224
193
|
- signin
|
225
194
|
' WHERE "users"."id" = 11
|
226
|
-
[1m[36m (
|
195
|
+
[1m[36m (12.2ms)[0m [1mcommit transaction[0m
|
227
196
|
Redirected to http://www.example-client.com/restricted
|
228
|
-
Completed 302 Found in
|
229
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
197
|
+
Completed 302 Found in 32.3ms (ActiveRecord: 27.8ms)
|
198
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
230
199
|
Processing by ExampleController#restricted as HTML
|
231
|
-
[1m[35mUser Load (0.
|
232
|
-
Completed 200 OK in 1.
|
233
|
-
Started GET "/" for 127.0.0.1 at 2014-05-
|
234
|
-
Processing by ExampleController#index as HTML
|
235
|
-
Completed 200 OK in 0.7ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
236
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:18 +0000
|
200
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
201
|
+
Completed 200 OK in 1.5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
202
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
237
203
|
Processing by ExampleController#restricted as HTML
|
238
204
|
Authenticating with gds_sso strategy
|
239
|
-
Completed in 0.
|
240
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
241
|
-
Started GET "/auth/gds/callback?code=
|
205
|
+
Completed in 0.4ms
|
206
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
207
|
+
Started GET "/auth/gds/callback?code=3b6e908312a657f10f1707f88805d4b7f3ca33eed1692822ab5537384849292e&state=22c2ad34c40644a633fe408a01f949947306e62bfd39938c" for 127.0.0.1 at 2014-05-28 10:01:19 +0000
|
242
208
|
Processing by AuthenticationsController#callback as HTML
|
243
|
-
Parameters: {"code"=>"
|
209
|
+
Parameters: {"code"=>"3b6e908312a657f10f1707f88805d4b7f3ca33eed1692822ab5537384849292e", "state"=>"22c2ad34c40644a633fe408a01f949947306e62bfd39938c"}
|
244
210
|
Authenticating with gds_sso strategy
|
245
211
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
246
212
|
[1m[35m (0.1ms)[0m begin transaction
|
247
|
-
[1m[36m (0.
|
213
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
248
214
|
- signin
|
249
215
|
' WHERE "users"."id" = 11[0m
|
250
|
-
[1m[35m (
|
251
|
-
[1m[36m (0.
|
252
|
-
[1m[35m (0.
|
216
|
+
[1m[35m (11.4ms)[0m commit transaction
|
217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
218
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
253
219
|
- signin
|
254
220
|
' WHERE "users"."id" = 11
|
255
|
-
[1m[36m (
|
221
|
+
[1m[36m (13.6ms)[0m [1mcommit transaction[0m
|
256
222
|
Redirected to http://www.example-client.com/restricted
|
257
|
-
Completed 302 Found in
|
258
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
223
|
+
Completed 302 Found in 31.1ms (ActiveRecord: 25.6ms)
|
224
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
259
225
|
Processing by ExampleController#restricted as HTML
|
260
|
-
[1m[35mUser Load (0.
|
261
|
-
Completed 200 OK in 1.
|
262
|
-
|
263
|
-
|
264
|
-
[1m[
|
265
|
-
|
266
|
-
|
226
|
+
[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.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
228
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@example-client.com' LIMIT 1[0m
|
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
|
267
235
|
Processing by ExampleController#restricted as HTML
|
236
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
268
237
|
Authenticating with gds_sso strategy
|
269
|
-
Completed in
|
270
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
271
|
-
Started GET "/auth/gds/callback?code=
|
238
|
+
Completed in 1.2ms
|
239
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
240
|
+
Started GET "/auth/gds/callback?code=59f3ff77264922e41505a1d74edf5086fb9c0ab0ce7eaeda35e3eb9c5e1d73f5&state=50445985dfd8188201ecf12097a6d45fd8b2fb4a1567d8a5" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
272
241
|
Processing by AuthenticationsController#callback as HTML
|
273
|
-
Parameters: {"code"=>"
|
242
|
+
Parameters: {"code"=>"59f3ff77264922e41505a1d74edf5086fb9c0ab0ce7eaeda35e3eb9c5e1d73f5", "state"=>"50445985dfd8188201ecf12097a6d45fd8b2fb4a1567d8a5"}
|
274
243
|
Authenticating with gds_sso strategy
|
275
244
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
276
245
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
277
|
-
[1m[35m (0.
|
246
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
278
247
|
- signin
|
279
248
|
' WHERE "users"."id" = 11
|
280
|
-
[1m[36m (
|
281
|
-
[1m[35m (0.
|
282
|
-
[1m[36m (0.
|
249
|
+
[1m[36m (17.5ms)[0m [1mcommit transaction[0m
|
250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
251
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
283
252
|
- signin
|
284
253
|
' WHERE "users"."id" = 11[0m
|
285
|
-
[1m[35m (
|
254
|
+
[1m[35m (15.5ms)[0m commit transaction
|
286
255
|
Redirected to http://www.example-client.com/restricted
|
287
|
-
Completed 302 Found in
|
288
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
256
|
+
Completed 302 Found in 39.0ms (ActiveRecord: 33.7ms)
|
257
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
289
258
|
Processing by ExampleController#restricted as HTML
|
290
259
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
291
|
-
Completed 200 OK in 1.
|
292
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
260
|
+
Completed 200 OK in 1.4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
261
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
293
262
|
Processing by ExampleController#restricted as HTML
|
294
263
|
Authenticating with gds_sso strategy
|
295
264
|
Completed in 0.3ms
|
296
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
297
|
-
Started GET "/auth/gds/callback?code=
|
265
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
266
|
+
Started GET "/auth/gds/callback?code=15a391624cbed2a7b33d9678b6534883c9fa02949bb1c08fde5cbccbc4eacee5&state=9d596518fffb5957e71141544b4f3252a3bc869f5e279de7" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
298
267
|
Processing by AuthenticationsController#callback as HTML
|
299
|
-
Parameters: {"code"=>"
|
268
|
+
Parameters: {"code"=>"15a391624cbed2a7b33d9678b6534883c9fa02949bb1c08fde5cbccbc4eacee5", "state"=>"9d596518fffb5957e71141544b4f3252a3bc869f5e279de7"}
|
300
269
|
Authenticating with gds_sso strategy
|
301
270
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
302
|
-
[1m[36m (0.
|
303
|
-
[1m[35m (0.
|
271
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
272
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
304
273
|
- signin
|
305
274
|
' WHERE "users"."id" = 11
|
306
|
-
[1m[36m (
|
307
|
-
[1m[35m (0.
|
308
|
-
[1m[36m (0.
|
275
|
+
[1m[36m (13.4ms)[0m [1mcommit transaction[0m
|
276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
277
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
309
278
|
- signin
|
310
279
|
' WHERE "users"."id" = 11[0m
|
311
|
-
[1m[35m (
|
280
|
+
[1m[35m (16.3ms)[0m commit transaction
|
312
281
|
Redirected to http://www.example-client.com/restricted
|
313
|
-
Completed 302 Found in
|
314
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
282
|
+
Completed 302 Found in 35.5ms (ActiveRecord: 30.3ms)
|
283
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:20 +0000
|
315
284
|
Processing by ExampleController#restricted as HTML
|
316
|
-
[1m[36mUser Load (0.
|
317
|
-
Completed 200 OK in 1.
|
318
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-06
|
285
|
+
[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.6ms (Views: 0.4ms | ActiveRecord: 0.2ms)
|
287
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-29 06:06:20 +0000
|
319
288
|
Processing by ExampleController#restricted as HTML
|
320
289
|
Authenticating with gds_sso strategy
|
321
|
-
Completed in 0.
|
322
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-06
|
323
|
-
Started GET "/auth/gds/callback?code=
|
290
|
+
Completed in 0.4ms
|
291
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-29 06:06:20 +0000
|
292
|
+
Started GET "/auth/gds/callback?code=d6c80119d54145028f227274fa51d0be7788905b5790e0e026c6d302cb055057&state=cfcca15c646ccb5a2b880827fde549c146abf61232b26b77" for 127.0.0.1 at 2014-05-29 06:06:20 +0000
|
324
293
|
Processing by AuthenticationsController#callback as HTML
|
325
|
-
Parameters: {"code"=>"
|
294
|
+
Parameters: {"code"=>"d6c80119d54145028f227274fa51d0be7788905b5790e0e026c6d302cb055057", "state"=>"cfcca15c646ccb5a2b880827fde549c146abf61232b26b77"}
|
326
295
|
Authenticating with gds_sso strategy
|
327
296
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
328
|
-
[1m[36m (0.
|
329
|
-
[1m[35m (0.
|
297
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
330
299
|
- signin
|
331
300
|
' WHERE "users"."id" = 11
|
332
|
-
[1m[36m (
|
333
|
-
[1m[35m (0.
|
301
|
+
[1m[36m (10.3ms)[0m [1mcommit transaction[0m
|
302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
334
303
|
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
335
304
|
- signin
|
336
305
|
' WHERE "users"."id" = 11[0m
|
337
|
-
[1m[35m (
|
306
|
+
[1m[35m (12.6ms)[0m commit transaction
|
338
307
|
Redirected to http://www.example-client.com/restricted
|
339
|
-
Completed 302 Found in
|
340
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-06
|
308
|
+
Completed 302 Found in 27.3ms (ActiveRecord: 23.5ms)
|
309
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-29 06:06:21 +0000
|
341
310
|
Processing by ExampleController#restricted as HTML
|
342
311
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1[0m
|
343
|
-
Completed 200 OK in 1.
|
344
|
-
|
345
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
346
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 't', "permissions" = '---
|
347
|
-
- signin
|
348
|
-
' WHERE "users"."id" = 11
|
349
|
-
[1m[36m (8.6ms)[0m [1mcommit transaction[0m
|
350
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-06 15:54:20 +0000
|
312
|
+
Completed 200 OK in 1.3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
313
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
|
351
314
|
Processing by ExampleController#restricted as HTML
|
352
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
353
315
|
Authenticating with gds_sso strategy
|
354
|
-
Completed in 0.
|
355
|
-
Started GET "/auth/gds" for 127.0.0.1 at 2014-05-
|
356
|
-
Started GET "/auth/gds/callback?code=
|
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
|
357
319
|
Processing by AuthenticationsController#callback as HTML
|
358
|
-
Parameters: {"code"=>"
|
320
|
+
Parameters: {"code"=>"bab47efe786ae1e03f7b8d1d151976af33314e80eb553d5fbd313d66f6d55406", "state"=>"88b33e9f9c7d2f5a6259251aea3570197a7dc407d8421f02"}
|
359
321
|
Authenticating with gds_sso strategy
|
360
|
-
[1m[
|
322
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1
|
323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
324
|
+
[1m[35m (0.2ms)[0m UPDATE "users" SET "permissions" = '---
|
325
|
+
- signin
|
326
|
+
' WHERE "users"."id" = 11
|
327
|
+
[1m[36m (12.9ms)[0m [1mcommit transaction[0m
|
361
328
|
[1m[35m (0.0ms)[0m begin transaction
|
362
329
|
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
363
330
|
- signin
|
364
331
|
' WHERE "users"."id" = 11[0m
|
365
|
-
[1m[35m (
|
366
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
367
|
-
[1m[35m (0.1ms)[0m UPDATE "users" SET "remotely_signed_out" = 'f', "permissions" = '---
|
368
|
-
- signin
|
369
|
-
' WHERE "users"."id" = 11
|
370
|
-
[1m[36m (12.6ms)[0m [1mcommit transaction[0m
|
332
|
+
[1m[35m (11.6ms)[0m commit transaction
|
371
333
|
Redirected to http://www.example-client.com/restricted
|
372
|
-
Completed 302 Found in
|
373
|
-
Started GET "/restricted" for 127.0.0.1 at 2014-05-
|
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
|
374
340
|
Processing by ExampleController#restricted as HTML
|
375
341
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' AND "users"."remotely_signed_out" = 'f' LIMIT 1
|
376
|
-
Completed 200 OK in 1.
|
342
|
+
Completed 200 OK in 1.1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
343
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
|
344
|
+
Processing by ExampleController#restricted as JSON
|
345
|
+
Authenticating with gds_bearer_token strategy
|
346
|
+
Completed in 8.6ms
|
347
|
+
Started GET "/restricted" for 127.0.0.1 at 2014-05-28 10:01:21 +0000
|
348
|
+
Processing by ExampleController#restricted as JSON
|
349
|
+
Authenticating with gds_bearer_token strategy
|
350
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = 'integration-uid' LIMIT 1[0m
|
351
|
+
[1m[35m (0.1ms)[0m begin transaction
|
352
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
353
|
+
- signin
|
354
|
+
' WHERE "users"."id" = 11[0m
|
355
|
+
[1m[35m (25.0ms)[0m commit transaction
|
356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
357
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "permissions" = '---
|
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" = '---
|
368
|
+
- signin
|
369
|
+
' WHERE "users"."id" = 11
|
370
|
+
[1m[36m (20.9ms)[0m [1mcommit transaction[0m
|
371
|
+
[1m[35m (0.1ms)[0m begin transaction
|
372
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "users" SET "permissions" = '---
|
373
|
+
- signin
|
374
|
+
' WHERE "users"."id" = 11[0m
|
375
|
+
[1m[35m (11.1ms)[0m commit transaction
|
376
|
+
Completed 200 OK in 91.1ms (Views: 0.5ms | ActiveRecord: 32.6ms)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.2.
|
4
|
+
version: 9.2.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-05-
|
13
|
+
date: 2014-05-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -315,7 +315,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
315
315
|
version: '0'
|
316
316
|
segments:
|
317
317
|
- 0
|
318
|
-
hash:
|
318
|
+
hash: 2232045673608108883
|
319
319
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
320
320
|
none: false
|
321
321
|
requirements:
|
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
324
324
|
version: '0'
|
325
325
|
segments:
|
326
326
|
- 0
|
327
|
-
hash:
|
327
|
+
hash: 2232045673608108883
|
328
328
|
requirements: []
|
329
329
|
rubyforge_project: gds-sso
|
330
330
|
rubygems_version: 1.8.23
|