nulogy_sso 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1abb297df46aca53cab17459f3c5c48fd2ec261ffba96a79a3c8059785eafc0b
4
- data.tar.gz: e5febc2597680cf99ccb2cf2c7ddda0671987c2a0b3df6d3b03bdb704a474af6
3
+ metadata.gz: d888e3ba54b229bdf5b22c9ee0ce5784f30e52099bbbeef7b430a6c80aca621d
4
+ data.tar.gz: 692ff19f017d3943dd4556947bc75e7f27a84d6a6223e4fbddb1d6eaefc57908
5
5
  SHA512:
6
- metadata.gz: 4920a06889ea14c9f7a29c90f9f8bef5490f1881bffebf6a2351aaff307894d61b8017f21aa435ac55b378e933b75d232684fa29db1364318c26d080211d9472
7
- data.tar.gz: a0e6d27e1a981e236f0c77830b1e29076fdcac67f476e38b180c10752fc1813be9d5a352c3ef1edc54c81a38333b43b33f975e6be855ef6df633350d24c1fb9f
6
+ metadata.gz: cade560b3cd26485d9c7afb0d0a8f39e11522d12aa50ba94df7d1dfd2d3c3cc54013dc142cc26a2f6772269e0349bf4f9c0ec4e945893b9299a3e1c7fa80e9cb
7
+ data.tar.gz: 758531736712cfba3c4547bad3d815c6c8d1cba95cba3d80d66395931233b5b3427dbd7e61d5f39609592e231b24b2b645a5e48a624132470a61ff98ea8d6308
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # NulogySSO
2
2
 
3
+ ![Gem](https://img.shields.io/gem/v/nulogy_sso?label=nulogy_sso)
4
+
3
5
  **This repo is still under heavy initial development and is not ready to be used by any other product besides CPI. This status will be changed very shortly.**
4
6
 
5
7
  ## Installation
@@ -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}/nulogy_sso/code?#{redirect_query_params}"]
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
- Curl.put(mockserver_url("reset"))
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
- Curl.put(mockserver_url("expectation"), body.to_json)
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
- "#{ENV.fetch("NULOGY_SSO_MOCKSERVER_HOST")}:#{ENV.fetch("NULOGY_SSO_MOCKSERVER_PORT")}/mockserver/#{path}"
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 = {})
@@ -1,3 +1,3 @@
1
1
  module NulogySSO
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -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
   (0.5ms) rollback transaction
4209
+  (3.7ms) SELECT sqlite_version(*)
4210
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4211
+  (0.1ms) SELECT sqlite_version(*)
4212
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4213
+  (0.1ms) begin transaction
4214
+  (0.3ms) rollback transaction
4215
+  (1.3ms) SELECT sqlite_version(*)
4216
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4217
+  (0.1ms) SELECT sqlite_version(*)
4218
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4219
+  (0.1ms) begin transaction
4220
+  (0.1ms) rollback transaction
4221
+  (1.8ms) SELECT sqlite_version(*)
4222
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4223
+  (0.1ms) SELECT sqlite_version(*)
4224
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4225
+  (1.0ms) begin transaction
4226
+  (0.1ms) rollback transaction
4227
+  (1.1ms) SELECT sqlite_version(*)
4228
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4229
+  (0.1ms) SELECT sqlite_version(*)
4230
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4231
+  (0.1ms) begin transaction
4232
+  (0.2ms) SAVEPOINT active_record_1
4233
+ User Create (5.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:32:48.462227"], ["updated_at", "2019-09-23 21:32:48.462227"]]
4234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+  (0.3ms) rollback transaction
4257
+  (1.9ms) SELECT sqlite_version(*)
4258
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4259
+  (0.1ms) SELECT sqlite_version(*)
4260
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4261
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
4279
+  (0.1ms) begin transaction
4280
+  (0.1ms) SAVEPOINT active_record_1
4281
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:04.576992"], ["updated_at", "2019-09-23 21:33:04.576992"]]
4282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.5ms) rollback transaction
4299
+  (0.1ms) begin transaction
4300
+  (0.2ms) SAVEPOINT active_record_1
4301
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:05.265510"], ["updated_at", "2019-09-23 21:33:05.265510"]]
4302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+  (0.6ms) rollback transaction
4325
+  (0.2ms) begin transaction
4326
+  (0.2ms) SAVEPOINT active_record_1
4327
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:05.793804"], ["updated_at", "2019-09-23 21:33:05.793804"]]
4328
+  (0.5ms) RELEASE SAVEPOINT active_record_1
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
+  (0.5ms) rollback transaction
4339
+  (0.1ms) begin transaction
4340
+  (0.7ms) SAVEPOINT active_record_1
4341
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:06.733041"], ["updated_at", "2019-09-23 21:33:06.733041"]]
4342
+  (0.3ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+  (0.5ms) rollback transaction
4350
+  (0.1ms) begin transaction
4351
+  (0.1ms) SAVEPOINT active_record_1
4352
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:33:07.612979"], ["updated_at", "2019-09-23 21:33:07.612979"]]
4353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.6ms) rollback transaction
4364
+  (1.9ms) SELECT sqlite_version(*)
4365
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4366
+  (0.1ms) SELECT sqlite_version(*)
4367
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4368
+  (0.1ms) begin transaction
4369
+  (0.1ms) SAVEPOINT active_record_1
4370
+ User Create (1.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:28.975110"], ["updated_at", "2019-09-23 21:41:28.975110"]]
4371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.4ms) rollback transaction
4382
+  (0.1ms) begin transaction
4383
+  (0.4ms) SAVEPOINT active_record_1
4384
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:32.901113"], ["updated_at", "2019-09-23 21:41:32.901113"]]
4385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.4ms) rollback transaction
4396
+  (0.1ms) begin transaction
4397
+  (0.6ms) SAVEPOINT active_record_1
4398
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:34.099557"], ["updated_at", "2019-09-23 21:41:34.099557"]]
4399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+  (0.5ms) rollback transaction
4407
+  (0.7ms) begin transaction
4408
+  (0.1ms) SAVEPOINT active_record_1
4409
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:35.125500"], ["updated_at", "2019-09-23 21:41:35.125500"]]
4410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.5ms) rollback transaction
4427
+  (0.1ms) begin transaction
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+  (0.1ms) rollback transaction
4445
+  (0.1ms) begin transaction
4446
+  (0.4ms) SAVEPOINT active_record_1
4447
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 21:41:36.939883"], ["updated_at", "2019-09-23 21:41:36.939883"]]
4448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["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
+  (0.5ms) rollback transaction
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.06 seconds |
4
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:2] | passed | 1.02 seconds |
5
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:3] | passed | 3.32 seconds |
6
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:1] | passed | 2.18 seconds |
7
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:2] | passed | 1.88 seconds |
8
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:3] | passed | 1.81 seconds |
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.1
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