nulogy_sso 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/nulogy_sso/test_utilities/auth0_mock.rb +16 -7
- data/lib/nulogy_sso/version.rb +1 -1
- data/spec/dummy/log/test.log +262 -0
- data/spec/examples.txt +6 -6
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d888e3ba54b229bdf5b22c9ee0ce5784f30e52099bbbeef7b430a6c80aca621d
|
4
|
+
data.tar.gz: 692ff19f017d3943dd4556947bc75e7f27a84d6a6223e4fbddb1d6eaefc57908
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cade560b3cd26485d9c7afb0d0a8f39e11522d12aa50ba94df7d1dfd2d3c3cc54013dc142cc26a2f6772269e0349bf4f9c0ec4e945893b9299a3e1c7fa80e9cb
|
7
|
+
data.tar.gz: 758531736712cfba3c4547bad3d815c6c8d1cba95cba3d80d66395931233b5b3427dbd7e61d5f39609592e231b24b2b645a5e48a624132470a61ff98ea8d6308
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "curb"
|
4
3
|
require_relative "jwt_test_helper"
|
5
4
|
|
6
5
|
module NulogySSO
|
@@ -8,8 +7,9 @@ module NulogySSO
|
|
8
7
|
|
9
8
|
# This provides a simple mock implementation of Auth0 endpoints, via mockserver
|
10
9
|
class Auth0Mock
|
11
|
-
def initialize
|
10
|
+
def initialize(engine_path: "nulogy_sso")
|
12
11
|
@jwt_test_helper = NulogySSO::TestUtilities::JwtTestHelper.new
|
12
|
+
@engine_path = engine_path
|
13
13
|
end
|
14
14
|
|
15
15
|
def setup_jwks
|
@@ -39,7 +39,7 @@ module NulogySSO
|
|
39
39
|
httpResponse: {
|
40
40
|
statusCode: 302,
|
41
41
|
headers: {
|
42
|
-
Location: ["#{capybara_current_host}/
|
42
|
+
Location: ["#{capybara_current_host}/#{engine_path}/code?#{redirect_query_params}"]
|
43
43
|
}
|
44
44
|
}
|
45
45
|
)
|
@@ -59,19 +59,28 @@ module NulogySSO
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def mockserver_reset
|
62
|
-
|
62
|
+
uri = URI(mockserver_url("reset"))
|
63
|
+
req = Net::HTTP::Put.new(uri)
|
64
|
+
Net::HTTP.start(uri.hostname, uri.port) do |http|
|
65
|
+
http.request(req)
|
66
|
+
end
|
63
67
|
end
|
64
68
|
|
65
69
|
private
|
66
70
|
|
67
|
-
attr_reader :jwt_test_helper
|
71
|
+
attr_reader :jwt_test_helper, :engine_path
|
68
72
|
|
69
73
|
def mockserver_expectation(body)
|
70
|
-
|
74
|
+
uri = URI(mockserver_url("expectation"))
|
75
|
+
req = Net::HTTP::Put.new(uri, "Content-Type" => "application/json")
|
76
|
+
req.body = body.to_json
|
77
|
+
Net::HTTP.start(uri.hostname, uri.port) do |http|
|
78
|
+
http.request(req)
|
79
|
+
end
|
71
80
|
end
|
72
81
|
|
73
82
|
def mockserver_url(path = "")
|
74
|
-
"
|
83
|
+
"http://#{ENV.fetch("NULOGY_SSO_MOCKSERVER_HOST")}:#{ENV.fetch("NULOGY_SSO_MOCKSERVER_PORT")}/mockserver/#{path}"
|
75
84
|
end
|
76
85
|
|
77
86
|
def signed_jwt_response(email, overrides = {})
|
data/lib/nulogy_sso/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -4206,3 +4206,265 @@ Processing by NulogySSO::AuthenticationController#login as HTML
|
|
4206
4206
|
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4207
4207
|
Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 340)
|
4208
4208
|
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4209
|
+
[1m[35m (3.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4210
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4211
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4212
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4213
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4214
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
4215
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4216
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4217
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4218
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4219
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4220
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4221
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4222
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4223
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4224
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4225
|
+
[1m[35m (1.0ms)[0m [1m[36mbegin transaction[0m
|
4226
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4227
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4228
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4229
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4230
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4231
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4232
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4233
|
+
[1m[36mUser Create (5.5ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:32:48.462227"], ["updated_at", "2019-09-23 21:32:48.462227"]]
|
4234
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4235
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:32:50 -0400
|
4236
|
+
Processing by ApplicationController#hello_world as HTML
|
4237
|
+
Redirected to http://10.2.2.127:58757/nulogy_sso/login
|
4238
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4239
|
+
Completed 302 Found in 73ms (ActiveRecord: 0.0ms | Allocations: 572)
|
4240
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:32:50 -0400
|
4241
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4242
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4243
|
+
Completed 302 Found in 37ms (ActiveRecord: 0.0ms | Allocations: 2851)
|
4244
|
+
Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A58757%2Fhello_world" for 10.2.2.127 at 2019-09-23 17:32:51 -0400
|
4245
|
+
Processing by NulogySSO::AuthenticationController#code as HTML
|
4246
|
+
Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:58757/hello_world"}
|
4247
|
+
[1m[36mUser Load (1.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4248
|
+
Redirected to http://10.2.2.127:58757/hello_world
|
4249
|
+
Completed 302 Found in 176ms (ActiveRecord: 1.1ms | Allocations: 5679)
|
4250
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:32:51 -0400
|
4251
|
+
Processing by ApplicationController#hello_world as HTML
|
4252
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4253
|
+
Rendering text template
|
4254
|
+
Rendered text template (Duration: 0.0ms | Allocations: 3)
|
4255
|
+
Completed 200 OK in 55ms (Views: 53.0ms | ActiveRecord: 0.2ms | Allocations: 1593)
|
4256
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
4257
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4258
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4259
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4260
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4261
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4262
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:33:03 -0400
|
4263
|
+
Processing by ApplicationController#hello_world as HTML
|
4264
|
+
Redirected to http://10.2.2.127:58783/nulogy_sso/login
|
4265
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4266
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms | Allocations: 572)
|
4267
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:33:03 -0400
|
4268
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4269
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4270
|
+
Completed 302 Found in 16ms (ActiveRecord: 0.0ms | Allocations: 2852)
|
4271
|
+
Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A58783" for 10.2.2.127 at 2019-09-23 17:33:03 -0400
|
4272
|
+
Processing by NulogySSO::AuthenticationController#code as HTML
|
4273
|
+
Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:58783"}
|
4274
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4275
|
+
Rendering text template
|
4276
|
+
Rendered text template (Duration: 0.0ms | Allocations: 3)
|
4277
|
+
Completed 200 OK in 77ms (Views: 3.2ms | ActiveRecord: 0.5ms | Allocations: 8030)
|
4278
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4279
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4280
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4281
|
+
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:04.576992"], ["updated_at", "2019-09-23 21:33:04.576992"]]
|
4282
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4283
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:33:04 -0400
|
4284
|
+
Processing by ApplicationController#hello_world as HTML
|
4285
|
+
Redirected to http://10.2.2.127:58783/nulogy_sso/login
|
4286
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4287
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 171)
|
4288
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:33:04 -0400
|
4289
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4290
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4291
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 159)
|
4292
|
+
Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A58783" for 10.2.2.127 at 2019-09-23 17:33:04 -0400
|
4293
|
+
Processing by NulogySSO::AuthenticationController#code as HTML
|
4294
|
+
Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:58783"}
|
4295
|
+
Rendering text template
|
4296
|
+
Rendered text template (Duration: 0.1ms | Allocations: 1)
|
4297
|
+
Completed 200 OK in 46ms (Views: 1.1ms | ActiveRecord: 0.0ms | Allocations: 2185)
|
4298
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4299
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4300
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4301
|
+
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:05.265510"], ["updated_at", "2019-09-23 21:33:05.265510"]]
|
4302
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4303
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:33:05 -0400
|
4304
|
+
Processing by ApplicationController#hello_world as HTML
|
4305
|
+
Redirected to http://10.2.2.127:58783/nulogy_sso/login
|
4306
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4307
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 171)
|
4308
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:33:05 -0400
|
4309
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4310
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4311
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 159)
|
4312
|
+
Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A58783%2Fhello_world" for 10.2.2.127 at 2019-09-23 17:33:05 -0400
|
4313
|
+
Processing by NulogySSO::AuthenticationController#code as HTML
|
4314
|
+
Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:58783/hello_world"}
|
4315
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4316
|
+
Redirected to http://10.2.2.127:58783/hello_world
|
4317
|
+
Completed 302 Found in 31ms (ActiveRecord: 0.2ms | Allocations: 2493)
|
4318
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:33:05 -0400
|
4319
|
+
Processing by ApplicationController#hello_world as HTML
|
4320
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4321
|
+
Rendering text template
|
4322
|
+
Rendered text template (Duration: 0.0ms | Allocations: 1)
|
4323
|
+
Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms | Allocations: 649)
|
4324
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
4325
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
4326
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4327
|
+
[1m[36mUser Create (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:05.793804"], ["updated_at", "2019-09-23 21:33:05.793804"]]
|
4328
|
+
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4329
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:33:06 -0400
|
4330
|
+
Processing by ApplicationController#hello_world as HTML
|
4331
|
+
Redirected to http://10.2.2.127:58783/nulogy_sso/login
|
4332
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4333
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 171)
|
4334
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:33:06 -0400
|
4335
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4336
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4337
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 159)
|
4338
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4339
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4340
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4341
|
+
[1m[36mUser Create (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:06.733041"], ["updated_at", "2019-09-23 21:33:06.733041"]]
|
4342
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4343
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:33:07 -0400
|
4344
|
+
Processing by ApplicationController#hello_world as HTML
|
4345
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4346
|
+
Rendering text template
|
4347
|
+
Rendered text template (Duration: 0.0ms | Allocations: 1)
|
4348
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms | Allocations: 502)
|
4349
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4350
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4351
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4352
|
+
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:07.612979"], ["updated_at", "2019-09-23 21:33:07.612979"]]
|
4353
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4354
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:33:07 -0400
|
4355
|
+
Processing by ApplicationController#hello_world as HTML
|
4356
|
+
Redirected to http://10.2.2.127:58783/nulogy_sso/login
|
4357
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4358
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 353)
|
4359
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:33:07 -0400
|
4360
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4361
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4362
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 340)
|
4363
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
4364
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4365
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4366
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4367
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4368
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4369
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4370
|
+
[1m[36mUser Create (1.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:28.975110"], ["updated_at", "2019-09-23 21:41:28.975110"]]
|
4371
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4372
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:41:31 -0400
|
4373
|
+
Processing by ApplicationController#hello_world as HTML
|
4374
|
+
Redirected to http://10.2.2.127:58999/nulogy_sso/login
|
4375
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4376
|
+
Completed 302 Found in 46ms (ActiveRecord: 0.0ms | Allocations: 5067)
|
4377
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:41:31 -0400
|
4378
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4379
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4380
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.0ms | Allocations: 405)
|
4381
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
4382
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4383
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4384
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:32.901113"], ["updated_at", "2019-09-23 21:41:32.901113"]]
|
4385
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4386
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:41:33 -0400
|
4387
|
+
Processing by ApplicationController#hello_world as HTML
|
4388
|
+
Redirected to http://10.2.2.127:58999/nulogy_sso/login
|
4389
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4390
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 171)
|
4391
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:41:33 -0400
|
4392
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4393
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4394
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 159)
|
4395
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
4396
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4397
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4398
|
+
[1m[36mUser Create (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:34.099557"], ["updated_at", "2019-09-23 21:41:34.099557"]]
|
4399
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4400
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:41:34 -0400
|
4401
|
+
Processing by ApplicationController#hello_world as HTML
|
4402
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4403
|
+
Rendering text template
|
4404
|
+
Rendered text template (Duration: 0.0ms | Allocations: 3)
|
4405
|
+
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.2ms | Allocations: 1814)
|
4406
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4407
|
+
[1m[35m (0.7ms)[0m [1m[36mbegin transaction[0m
|
4408
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4409
|
+
[1m[36mUser Create (0.8ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:35.125500"], ["updated_at", "2019-09-23 21:41:35.125500"]]
|
4410
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4411
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:41:35 -0400
|
4412
|
+
Processing by ApplicationController#hello_world as HTML
|
4413
|
+
Redirected to http://10.2.2.127:58999/nulogy_sso/login
|
4414
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4415
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 171)
|
4416
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:41:35 -0400
|
4417
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4418
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4419
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 159)
|
4420
|
+
Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A58999" for 10.2.2.127 at 2019-09-23 17:41:35 -0400
|
4421
|
+
Processing by NulogySSO::AuthenticationController#code as HTML
|
4422
|
+
Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:58999"}
|
4423
|
+
Rendering text template
|
4424
|
+
Rendered text template (Duration: 0.1ms | Allocations: 1)
|
4425
|
+
Completed 200 OK in 35ms (Views: 1.3ms | ActiveRecord: 0.0ms | Allocations: 3509)
|
4426
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4427
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4428
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:41:35 -0400
|
4429
|
+
Processing by ApplicationController#hello_world as HTML
|
4430
|
+
Redirected to http://10.2.2.127:58999/nulogy_sso/login
|
4431
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4432
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 171)
|
4433
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:41:35 -0400
|
4434
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4435
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4436
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 159)
|
4437
|
+
Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A58999" for 10.2.2.127 at 2019-09-23 17:41:35 -0400
|
4438
|
+
Processing by NulogySSO::AuthenticationController#code as HTML
|
4439
|
+
Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:58999"}
|
4440
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4441
|
+
Rendering text template
|
4442
|
+
Rendered text template (Duration: 0.0ms | Allocations: 1)
|
4443
|
+
Completed 200 OK in 47ms (Views: 0.7ms | ActiveRecord: 0.3ms | Allocations: 2508)
|
4444
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4445
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4446
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4447
|
+
[1m[36mUser Create (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:36.939883"], ["updated_at", "2019-09-23 21:41:36.939883"]]
|
4448
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4449
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:41:37 -0400
|
4450
|
+
Processing by ApplicationController#hello_world as HTML
|
4451
|
+
Redirected to http://10.2.2.127:58999/nulogy_sso/login
|
4452
|
+
Filter chain halted as :authenticate_sso_user rendered or redirected
|
4453
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 171)
|
4454
|
+
Started GET "/nulogy_sso/login" for 10.2.2.127 at 2019-09-23 17:41:37 -0400
|
4455
|
+
Processing by NulogySSO::AuthenticationController#login as HTML
|
4456
|
+
Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3D&response_type=code&scope=openid+email
|
4457
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 159)
|
4458
|
+
Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A58999%2Fhello_world" for 10.2.2.127 at 2019-09-23 17:41:37 -0400
|
4459
|
+
Processing by NulogySSO::AuthenticationController#code as HTML
|
4460
|
+
Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:58999/hello_world"}
|
4461
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4462
|
+
Redirected to http://10.2.2.127:58999/hello_world
|
4463
|
+
Completed 302 Found in 86ms (ActiveRecord: 0.3ms | Allocations: 2481)
|
4464
|
+
Started GET "/hello_world" for 10.2.2.127 at 2019-09-23 17:41:37 -0400
|
4465
|
+
Processing by ApplicationController#hello_world as HTML
|
4466
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@nulogy.com"], ["LIMIT", 1]]
|
4467
|
+
Rendering text template
|
4468
|
+
Rendered text template (Duration: 0.0ms | Allocations: 1)
|
4469
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 502)
|
4470
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
data/spec/examples.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
--------------------------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/features/nulogy_sso/sso_login_spec.rb[1:1:1] | passed | 1.
|
4
|
-
./spec/features/nulogy_sso/sso_login_spec.rb[1:1:2] | passed | 1.
|
5
|
-
./spec/features/nulogy_sso/sso_login_spec.rb[1:1:3] | passed |
|
6
|
-
./spec/features/nulogy_sso/sso_login_spec.rb[1:2:1] | passed |
|
7
|
-
./spec/features/nulogy_sso/sso_login_spec.rb[1:2:2] | passed |
|
8
|
-
./spec/features/nulogy_sso/sso_login_spec.rb[1:2:3] | passed | 1.
|
3
|
+
./spec/features/nulogy_sso/sso_login_spec.rb[1:1:1] | passed | 1.05 seconds |
|
4
|
+
./spec/features/nulogy_sso/sso_login_spec.rb[1:1:2] | passed | 1.03 seconds |
|
5
|
+
./spec/features/nulogy_sso/sso_login_spec.rb[1:1:3] | passed | 0.77001 seconds |
|
6
|
+
./spec/features/nulogy_sso/sso_login_spec.rb[1:2:1] | passed | 0.79939 seconds |
|
7
|
+
./spec/features/nulogy_sso/sso_login_spec.rb[1:2:2] | passed | 3.94 seconds |
|
8
|
+
./spec/features/nulogy_sso/sso_login_spec.rb[1:2:3] | passed | 1.2 seconds |
|
9
9
|
./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:1:1] | passed | 0.01087 seconds |
|
10
10
|
./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:1:2:1] | passed | 0.02615 seconds |
|
11
11
|
./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:1:2:2] | passed | 0.0203 seconds |
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nulogy_sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nulogy Corporation
|
@@ -86,20 +86,6 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '3.29'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: curb
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: 0.9.10
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 0.9.10
|
103
89
|
- !ruby/object:Gem::Dependency
|
104
90
|
name: dotenv-rails
|
105
91
|
requirement: !ruby/object:Gem::Requirement
|