nulogy_sso 0.3.3 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d888e3ba54b229bdf5b22c9ee0ce5784f30e52099bbbeef7b430a6c80aca621d
4
- data.tar.gz: 692ff19f017d3943dd4556947bc75e7f27a84d6a6223e4fbddb1d6eaefc57908
3
+ metadata.gz: 45ba41e655cffa293d1750e7d1deb76c115cc001b1c43cb308fcfff3366d3195
4
+ data.tar.gz: 742eb6f00234afe2923ef22ff29a702c74972103217dca73bcd244af3bc654eb
5
5
  SHA512:
6
- metadata.gz: cade560b3cd26485d9c7afb0d0a8f39e11522d12aa50ba94df7d1dfd2d3c3cc54013dc142cc26a2f6772269e0349bf4f9c0ec4e945893b9299a3e1c7fa80e9cb
7
- data.tar.gz: 758531736712cfba3c4547bad3d815c6c8d1cba95cba3d80d66395931233b5b3427dbd7e61d5f39609592e231b24b2b645a5e48a624132470a61ff98ea8d6308
6
+ metadata.gz: 0b6b362a2175b9eed9f823c1bd81801c3e6cca6eef7f06208896e5bdd18e4f460f2fd25e3906e85627a550c794cdc73d9950e3cec140d30fbbf9aa2958abbbb4
7
+ data.tar.gz: 346c484f7aea9dcd0cbc19aa4c528cc2f043a8c2b911f8d5ae85c68898ed97074f75ea762208e7696fc9bb29833b682fb4454ff98933b5d14bb2619f35e4b780
@@ -12,6 +12,7 @@ module NulogySSO
12
12
  # This emulates a code pattern popular in Rails apps using Devise.
13
13
  attr_reader :current_user
14
14
  helper_method :current_user
15
+ before_action :store_previous_url_in_session
15
16
  end
16
17
 
17
18
  def authenticate_sso_user
@@ -21,5 +22,9 @@ module NulogySSO
21
22
  @current_user = Authenticator.new.authenticated_user(raw_token)
22
23
  return redirect_to nulogy_sso.login_path if @current_user.blank?
23
24
  end
25
+
26
+ def store_previous_url_in_session
27
+ session[:previous_request_url] = request.url unless current_user
28
+ end
24
29
  end
25
30
  end
@@ -7,8 +7,9 @@ module NulogySSO
7
7
 
8
8
  # This provides a simple mock implementation of Auth0 endpoints, via mockserver
9
9
  class Auth0Mock
10
- def initialize(engine_path: "nulogy_sso")
10
+ def initialize(redirect_path:, engine_path: "/nulogy_sso")
11
11
  @jwt_test_helper = NulogySSO::TestUtilities::JwtTestHelper.new
12
+ @redirect_path = redirect_path
12
13
  @engine_path = engine_path
13
14
  end
14
15
 
@@ -24,7 +25,7 @@ module NulogySSO
24
25
  )
25
26
  end
26
27
 
27
- def setup(email:, redirect_path: "", status_code: 200)
28
+ def setup(email:, status_code: 200)
28
29
  mockserver_reset
29
30
 
30
31
  redirect_query_params = {
@@ -39,7 +40,7 @@ module NulogySSO
39
40
  httpResponse: {
40
41
  statusCode: 302,
41
42
  headers: {
42
- Location: ["#{capybara_current_host}/#{engine_path}/code?#{redirect_query_params}"]
43
+ Location: ["#{capybara_current_host}#{engine_path}/code?#{redirect_query_params}"]
43
44
  }
44
45
  }
45
46
  )
@@ -68,7 +69,7 @@ module NulogySSO
68
69
 
69
70
  private
70
71
 
71
- attr_reader :jwt_test_helper, :engine_path
72
+ attr_reader :jwt_test_helper, :redirect_path, :engine_path
72
73
 
73
74
  def mockserver_expectation(body)
74
75
  uri = URI(mockserver_url("expectation"))
@@ -1,3 +1,3 @@
1
1
  module NulogySSO
2
- VERSION = "0.3.3"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -4468,3 +4468,465 @@ Processing by ApplicationController#hello_world as HTML
4468
4468
  Rendered text template (Duration: 0.0ms | Allocations: 1)
4469
4469
  Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms | Allocations: 502)
4470
4470
   (0.5ms) rollback transaction
4471
+  (40.8ms) SELECT sqlite_version(*)
4472
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4473
+  (0.1ms) SELECT sqlite_version(*)
4474
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4475
+  (0.2ms) begin transaction
4476
+  (0.1ms) SAVEPOINT active_record_1
4477
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 22:24:50.562330"], ["updated_at", "2019-09-23 22:24:50.562330"]]
4478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4479
+ Started GET "/hello_world" for 192.168.43.57 at 2019-09-23 18:24:53 -0400
4480
+ Processing by ApplicationController#hello_world as HTML
4481
+ ### Setting session[:previous_request_url] to http://192.168.43.57:49699/hello_world ###
4482
+ Redirected to http://192.168.43.57:49699/nulogy_sso/login
4483
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4484
+ Completed 302 Found in 34ms (ActiveRecord: 0.0ms | Allocations: 702)
4485
+ Started GET "/nulogy_sso/login" for 192.168.43.57 at 2019-09-23 18:24:53 -0400
4486
+ Processing by NulogySSO::AuthenticationController#login as HTML
4487
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.43.57%3A49699%2Fhello_world&response_type=code&scope=openid+email
4488
+ Completed 302 Found in 15ms (ActiveRecord: 0.0ms | Allocations: 2953)
4489
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.43.57%3A49699%2Fhello_world" for 192.168.43.57 at 2019-09-23 18:24:53 -0400
4490
+ Processing by NulogySSO::AuthenticationController#code as HTML
4491
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.43.57:49699/hello_world"}
4492
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4493
+ Redirected to http://192.168.43.57:49699/hello_world
4494
+ Completed 302 Found in 181ms (ActiveRecord: 0.3ms | Allocations: 5714)
4495
+ Started GET "/hello_world" for 192.168.43.57 at 2019-09-23 18:24:53 -0400
4496
+ Processing by ApplicationController#hello_world as HTML
4497
+ ### Setting session[:previous_request_url] to http://192.168.43.57:49699/hello_world ###
4498
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4499
+ Rendering text template
4500
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
4501
+ Completed 200 OK in 21ms (Views: 17.3ms | ActiveRecord: 0.3ms | Allocations: 1811)
4502
+  (0.3ms) rollback transaction
4503
+  (0.1ms) begin transaction
4504
+ Started GET "/hello_world" for 192.168.43.57 at 2019-09-23 18:24:55 -0400
4505
+ Processing by ApplicationController#hello_world as HTML
4506
+ ### Setting session[:previous_request_url] to http://192.168.43.57:49699/hello_world ###
4507
+ Redirected to http://192.168.43.57:49699/nulogy_sso/login
4508
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4509
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 264)
4510
+ Started GET "/nulogy_sso/login" for 192.168.43.57 at 2019-09-23 18:24:55 -0400
4511
+ Processing by NulogySSO::AuthenticationController#login as HTML
4512
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.43.57%3A49699%2Fhello_world&response_type=code&scope=openid+email
4513
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 280)
4514
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.43.57%3A49699" for 192.168.43.57 at 2019-09-23 18:24:55 -0400
4515
+ Processing by NulogySSO::AuthenticationController#code as HTML
4516
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.43.57:49699"}
4517
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4518
+ Rendering text template
4519
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
4520
+ Completed 200 OK in 71ms (Views: 1.5ms | ActiveRecord: 0.4ms | Allocations: 2653)
4521
+  (0.1ms) rollback transaction
4522
+  (0.1ms) begin transaction
4523
+  (0.1ms) SAVEPOINT active_record_1
4524
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 22:24:56.229663"], ["updated_at", "2019-09-23 22:24:56.229663"]]
4525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4526
+ Started GET "/hello_world" for 192.168.43.57 at 2019-09-23 18:24:56 -0400
4527
+ Processing by ApplicationController#hello_world as HTML
4528
+ ### Setting session[:previous_request_url] to http://192.168.43.57:49699/hello_world ###
4529
+ Redirected to http://192.168.43.57:49699/nulogy_sso/login
4530
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4531
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 264)
4532
+ Started GET "/nulogy_sso/login" for 192.168.43.57 at 2019-09-23 18:24:56 -0400
4533
+ Processing by NulogySSO::AuthenticationController#login as HTML
4534
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.43.57%3A49699%2Fhello_world&response_type=code&scope=openid+email
4535
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 286)
4536
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.43.57%3A49699" for 192.168.43.57 at 2019-09-23 18:24:56 -0400
4537
+ Processing by NulogySSO::AuthenticationController#code as HTML
4538
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.43.57:49699"}
4539
+ Rendering text template
4540
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
4541
+ Completed 200 OK in 79ms (Views: 1.0ms | ActiveRecord: 0.0ms | Allocations: 2185)
4542
+  (1.2ms) rollback transaction
4543
+  (0.1ms) begin transaction
4544
+  (0.5ms) SAVEPOINT active_record_1
4545
+ User Create (1.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 22:24:57.129996"], ["updated_at", "2019-09-23 22:24:57.129996"]]
4546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4547
+ Started GET "/hello_world" for 192.168.43.57 at 2019-09-23 18:24:57 -0400
4548
+ Processing by ApplicationController#hello_world as HTML
4549
+ ### Setting session[:previous_request_url] to http://192.168.43.57:49699/hello_world ###
4550
+ Redirected to http://192.168.43.57:49699/nulogy_sso/login
4551
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4552
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 264)
4553
+ Started GET "/nulogy_sso/login" for 192.168.43.57 at 2019-09-23 18:24:57 -0400
4554
+ Processing by NulogySSO::AuthenticationController#login as HTML
4555
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.43.57%3A49699%2Fhello_world&response_type=code&scope=openid+email
4556
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 281)
4557
+  (0.6ms) rollback transaction
4558
+  (0.1ms) begin transaction
4559
+  (0.8ms) SAVEPOINT active_record_1
4560
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 22:24:58.806845"], ["updated_at", "2019-09-23 22:24:58.806845"]]
4561
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4562
+ Started GET "/hello_world" for 192.168.43.57 at 2019-09-23 18:24:59 -0400
4563
+ Processing by ApplicationController#hello_world as HTML
4564
+ ### Setting session[:previous_request_url] to http://192.168.43.57:49699/hello_world ###
4565
+ Redirected to http://192.168.43.57:49699/nulogy_sso/login
4566
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4567
+ Completed 302 Found in 5ms (ActiveRecord: 0.0ms | Allocations: 446)
4568
+ Started GET "/nulogy_sso/login" for 192.168.43.57 at 2019-09-23 18:24:59 -0400
4569
+ Processing by NulogySSO::AuthenticationController#login as HTML
4570
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.43.57%3A49699%2Fhello_world&response_type=code&scope=openid+email
4571
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 459)
4572
+  (0.5ms) rollback transaction
4573
+  (0.1ms) begin transaction
4574
+  (0.4ms) SAVEPOINT active_record_1
4575
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-23 22:25:00.849162"], ["updated_at", "2019-09-23 22:25:00.849162"]]
4576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4577
+ Started GET "/hello_world" for 192.168.43.57 at 2019-09-23 18:25:01 -0400
4578
+ Processing by ApplicationController#hello_world as HTML
4579
+ ### Setting session[:previous_request_url] to http://192.168.43.57:49699/hello_world ###
4580
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4581
+ Rendering text template
4582
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
4583
+ Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 0.5ms | Allocations: 612)
4584
+  (0.6ms) rollback transaction
4585
+  (2.1ms) SELECT sqlite_version(*)
4586
+  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4587
+  (0.1ms) SELECT sqlite_version(*)
4588
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4589
+  (0.2ms) begin transaction
4590
+  (0.1ms) SAVEPOINT active_record_1
4591
+ User Create (1.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:00.338368"], ["updated_at", "2019-09-24 02:23:00.338368"]]
4592
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4593
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:02 -0400
4594
+ Processing by ApplicationController#hello_world as HTML
4595
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50597/hello_world ###
4596
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4597
+ Redirected to http://192.168.0.12:50597/nulogy_sso/login
4598
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4599
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms | Allocations: 774)
4600
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:02 -0400
4601
+ Processing by NulogySSO::AuthenticationController#login as HTML
4602
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50597%2Fhello_world&response_type=code&scope=openid+email
4603
+ Completed 302 Found in 13ms (ActiveRecord: 0.0ms | Allocations: 2951)
4604
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50597" for 192.168.0.12 at 2019-09-23 22:23:03 -0400
4605
+ Processing by NulogySSO::AuthenticationController#code as HTML
4606
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50597"}
4607
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4608
+ Redirected to http://192.168.0.12:50597
4609
+ Completed 302 Found in 142ms (ActiveRecord: 0.4ms | Allocations: 5714)
4610
+ Started GET "/" for 192.168.0.12 at 2019-09-23 22:23:03 -0400
4611
+  (0.3ms) rollback transaction
4612
+  (0.1ms) begin transaction
4613
+  (0.2ms) SAVEPOINT active_record_1
4614
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:04.678367"], ["updated_at", "2019-09-24 02:23:04.678367"]]
4615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4616
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:04 -0400
4617
+ Processing by ApplicationController#hello_world as HTML
4618
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50597/hello_world ###
4619
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4620
+ Redirected to http://192.168.0.12:50597/nulogy_sso/login
4621
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4622
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 336)
4623
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:04 -0400
4624
+ Processing by NulogySSO::AuthenticationController#login as HTML
4625
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50597%2Fhello_world&response_type=code&scope=openid+email
4626
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 283)
4627
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50597" for 192.168.0.12 at 2019-09-23 22:23:04 -0400
4628
+ Processing by NulogySSO::AuthenticationController#code as HTML
4629
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50597"}
4630
+ Rendering text template
4631
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
4632
+ Completed 200 OK in 72ms (Views: 7.9ms | ActiveRecord: 0.0ms | Allocations: 3276)
4633
+  (0.4ms) rollback transaction
4634
+  (0.1ms) begin transaction
4635
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:05 -0400
4636
+ Processing by ApplicationController#hello_world as HTML
4637
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50597/hello_world ###
4638
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4639
+ Redirected to http://192.168.0.12:50597/nulogy_sso/login
4640
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4641
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 336)
4642
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:05 -0400
4643
+ Processing by NulogySSO::AuthenticationController#login as HTML
4644
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50597%2Fhello_world&response_type=code&scope=openid+email
4645
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 280)
4646
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50597" for 192.168.0.12 at 2019-09-23 22:23:05 -0400
4647
+ Processing by NulogySSO::AuthenticationController#code as HTML
4648
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50597"}
4649
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4650
+ Rendering text template
4651
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
4652
+ Completed 200 OK in 49ms (Views: 0.5ms | ActiveRecord: 0.2ms | Allocations: 2519)
4653
+  (0.1ms) rollback transaction
4654
+  (0.5ms) begin transaction
4655
+  (0.1ms) SAVEPOINT active_record_1
4656
+ User Create (1.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:06.627503"], ["updated_at", "2019-09-24 02:23:06.627503"]]
4657
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4658
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:07 -0400
4659
+ Processing by ApplicationController#hello_world as HTML
4660
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50597/hello_world ###
4661
+ Redirected to http://192.168.0.12:50597/nulogy_sso/login
4662
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4663
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 446)
4664
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:07 -0400
4665
+ Processing by NulogySSO::AuthenticationController#login as HTML
4666
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50597%2Fhello_world&response_type=code&scope=openid+email
4667
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 453)
4668
+  (0.4ms) rollback transaction
4669
+  (0.1ms) begin transaction
4670
+  (0.7ms) SAVEPOINT active_record_1
4671
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:07.950598"], ["updated_at", "2019-09-24 02:23:07.950598"]]
4672
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4673
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:08 -0400
4674
+ Processing by ApplicationController#hello_world as HTML
4675
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50597/hello_world ###
4676
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4677
+ Redirected to http://192.168.0.12:50597/nulogy_sso/login
4678
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4679
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 336)
4680
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:08 -0400
4681
+ Processing by NulogySSO::AuthenticationController#login as HTML
4682
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50597%2Fhello_world&response_type=code&scope=openid+email
4683
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 279)
4684
+  (0.7ms) rollback transaction
4685
+  (0.1ms) begin transaction
4686
+  (0.4ms) SAVEPOINT active_record_1
4687
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:09.152478"], ["updated_at", "2019-09-24 02:23:09.152478"]]
4688
+  (0.6ms) RELEASE SAVEPOINT active_record_1
4689
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:09 -0400
4690
+ Processing by ApplicationController#hello_world as HTML
4691
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50597/hello_world ###
4692
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4693
+ Rendering text template
4694
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
4695
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms | Allocations: 759)
4696
+  (0.7ms) rollback transaction
4697
+  (1.4ms) SELECT sqlite_version(*)
4698
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4699
+  (0.1ms) SELECT sqlite_version(*)
4700
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4701
+  (0.4ms) begin transaction
4702
+  (0.2ms) SAVEPOINT active_record_1
4703
+ User Create (1.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:34.722420"], ["updated_at", "2019-09-24 02:23:34.722420"]]
4704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4705
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:37 -0400
4706
+ Processing by ApplicationController#hello_world as HTML
4707
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50698/hello_world ###
4708
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4709
+ Redirected to http://192.168.0.12:50698/nulogy_sso/login
4710
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4711
+ Completed 302 Found in 12ms (ActiveRecord: 0.0ms | Allocations: 775)
4712
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:37 -0400
4713
+ Processing by NulogySSO::AuthenticationController#login as HTML
4714
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50698%2Fhello_world&response_type=code&scope=openid+email
4715
+ Completed 302 Found in 16ms (ActiveRecord: 0.0ms | Allocations: 2953)
4716
+  (1.3ms) rollback transaction
4717
+  (0.1ms) begin transaction
4718
+  (0.4ms) SAVEPOINT active_record_1
4719
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:39.519636"], ["updated_at", "2019-09-24 02:23:39.519636"]]
4720
+  (0.4ms) RELEASE SAVEPOINT active_record_1
4721
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:40 -0400
4722
+ Processing by ApplicationController#hello_world as HTML
4723
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50698/hello_world ###
4724
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4725
+ Rendering text template
4726
+ Rendered text template (Duration: 0.1ms | Allocations: 3)
4727
+ Completed 200 OK in 82ms (Views: 15.4ms | ActiveRecord: 0.4ms | Allocations: 3591)
4728
+  (0.7ms) rollback transaction
4729
+  (0.1ms) begin transaction
4730
+  (0.3ms) SAVEPOINT active_record_1
4731
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:40.951284"], ["updated_at", "2019-09-24 02:23:40.951284"]]
4732
+  (0.4ms) RELEASE SAVEPOINT active_record_1
4733
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:41 -0400
4734
+ Processing by ApplicationController#hello_world as HTML
4735
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50698/hello_world ###
4736
+ Redirected to http://192.168.0.12:50698/nulogy_sso/login
4737
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4738
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 446)
4739
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:41 -0400
4740
+ Processing by NulogySSO::AuthenticationController#login as HTML
4741
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50698%2Fhello_world&response_type=code&scope=openid+email
4742
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 456)
4743
+  (0.5ms) rollback transaction
4744
+  (1.0ms) begin transaction
4745
+  (0.1ms) SAVEPOINT active_record_1
4746
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:42.649460"], ["updated_at", "2019-09-24 02:23:42.649460"]]
4747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4748
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:42 -0400
4749
+ Processing by ApplicationController#hello_world as HTML
4750
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50698/hello_world ###
4751
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4752
+ Redirected to http://192.168.0.12:50698/nulogy_sso/login
4753
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4754
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 336)
4755
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:42 -0400
4756
+ Processing by NulogySSO::AuthenticationController#login as HTML
4757
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50698%2Fhello_world&response_type=code&scope=openid+email
4758
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 280)
4759
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50698%2Fhello_world" for 192.168.0.12 at 2019-09-23 22:23:42 -0400
4760
+ Processing by NulogySSO::AuthenticationController#code as HTML
4761
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50698/hello_world"}
4762
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4763
+ Redirected to http://192.168.0.12:50698/hello_world
4764
+ Completed 302 Found in 57ms (ActiveRecord: 0.2ms | Allocations: 3693)
4765
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:42 -0400
4766
+ Processing by ApplicationController#hello_world as HTML
4767
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50698/hello_world ###
4768
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4769
+ Rendering text template
4770
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
4771
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms | Allocations: 718)
4772
+  (0.5ms) rollback transaction
4773
+  (0.1ms) begin transaction
4774
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:43 -0400
4775
+ Processing by ApplicationController#hello_world as HTML
4776
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50698/hello_world ###
4777
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4778
+ Redirected to http://192.168.0.12:50698/nulogy_sso/login
4779
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4780
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 336)
4781
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:43 -0400
4782
+ Processing by NulogySSO::AuthenticationController#login as HTML
4783
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50698%2Fhello_world&response_type=code&scope=openid+email
4784
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 286)
4785
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50698%2Fhello_world" for 192.168.0.12 at 2019-09-23 22:23:43 -0400
4786
+ Processing by NulogySSO::AuthenticationController#code as HTML
4787
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50698/hello_world"}
4788
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4789
+ Rendering text template
4790
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
4791
+ Completed 200 OK in 78ms (Views: 4.9ms | ActiveRecord: 0.3ms | Allocations: 2653)
4792
+  (0.1ms) rollback transaction
4793
+  (0.1ms) begin transaction
4794
+  (0.2ms) SAVEPOINT active_record_1
4795
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:44.705454"], ["updated_at", "2019-09-24 02:23:44.705454"]]
4796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4797
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:23:44 -0400
4798
+ Processing by ApplicationController#hello_world as HTML
4799
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50698/hello_world ###
4800
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4801
+ Redirected to http://192.168.0.12:50698/nulogy_sso/login
4802
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4803
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 336)
4804
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:23:44 -0400
4805
+ Processing by NulogySSO::AuthenticationController#login as HTML
4806
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50698%2Fhello_world&response_type=code&scope=openid+email
4807
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 280)
4808
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50698%2Fhello_world" for 192.168.0.12 at 2019-09-23 22:23:44 -0400
4809
+ Processing by NulogySSO::AuthenticationController#code as HTML
4810
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50698/hello_world"}
4811
+ Rendering text template
4812
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
4813
+ Completed 200 OK in 37ms (Views: 0.9ms | ActiveRecord: 0.0ms | Allocations: 2185)
4814
+  (0.5ms) rollback transaction
4815
+  (1.3ms) SELECT sqlite_version(*)
4816
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
4817
+  (0.1ms) SELECT sqlite_version(*)
4818
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4819
+  (0.1ms) begin transaction
4820
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:24:15 -0400
4821
+ Processing by ApplicationController#hello_world as HTML
4822
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50791/hello_world ###
4823
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4824
+ Redirected to http://192.168.0.12:50791/nulogy_sso/login
4825
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4826
+ Completed 302 Found in 13ms (ActiveRecord: 0.0ms | Allocations: 774)
4827
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:24:15 -0400
4828
+ Processing by NulogySSO::AuthenticationController#login as HTML
4829
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50791%2Fhello_world&response_type=code&scope=openid+email
4830
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms | Allocations: 2955)
4831
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50791%2Fhello_world" for 192.168.0.12 at 2019-09-23 22:24:15 -0400
4832
+ Processing by NulogySSO::AuthenticationController#code as HTML
4833
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50791/hello_world"}
4834
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4835
+ Rendering text template
4836
+ Rendered text template (Duration: 0.1ms | Allocations: 3)
4837
+ Completed 200 OK in 70ms (Views: 7.7ms | ActiveRecord: 0.9ms | Allocations: 8030)
4838
+  (0.1ms) rollback transaction
4839
+  (0.1ms) begin transaction
4840
+  (0.1ms) SAVEPOINT active_record_1
4841
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:17.074355"], ["updated_at", "2019-09-24 02:24:17.074355"]]
4842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4843
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:24:17 -0400
4844
+ Processing by ApplicationController#hello_world as HTML
4845
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50791/hello_world ###
4846
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4847
+ Redirected to http://192.168.0.12:50791/nulogy_sso/login
4848
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4849
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 336)
4850
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:24:17 -0400
4851
+ Processing by NulogySSO::AuthenticationController#login as HTML
4852
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50791%2Fhello_world&response_type=code&scope=openid+email
4853
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 279)
4854
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50791%2Fhello_world" for 192.168.0.12 at 2019-09-23 22:24:17 -0400
4855
+ Processing by NulogySSO::AuthenticationController#code as HTML
4856
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50791/hello_world"}
4857
+ Rendering text template
4858
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
4859
+ Completed 200 OK in 32ms (Views: 0.6ms | ActiveRecord: 0.0ms | Allocations: 2185)
4860
+  (0.7ms) rollback transaction
4861
+  (0.1ms) begin transaction
4862
+  (0.1ms) SAVEPOINT active_record_1
4863
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:17.964924"], ["updated_at", "2019-09-24 02:24:17.964924"]]
4864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4865
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:24:18 -0400
4866
+ Processing by ApplicationController#hello_world as HTML
4867
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50791/hello_world ###
4868
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4869
+ Redirected to http://192.168.0.12:50791/nulogy_sso/login
4870
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4871
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 336)
4872
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:24:18 -0400
4873
+ Processing by NulogySSO::AuthenticationController#login as HTML
4874
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50791%2Fhello_world&response_type=code&scope=openid+email
4875
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 284)
4876
+ Started GET "/nulogy_sso/code?code=FAKE_CODE&origin=http%3A%2F%2F192.168.0.12%3A50791%2Fhello_world" for 192.168.0.12 at 2019-09-23 22:24:18 -0400
4877
+ Processing by NulogySSO::AuthenticationController#code as HTML
4878
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://192.168.0.12:50791/hello_world"}
4879
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4880
+ Redirected to http://192.168.0.12:50791/hello_world
4881
+ Completed 302 Found in 41ms (ActiveRecord: 0.3ms | Allocations: 2530)
4882
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:24:18 -0400
4883
+ Processing by ApplicationController#hello_world as HTML
4884
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50791/hello_world ###
4885
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4886
+ Rendering text template
4887
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
4888
+ Completed 200 OK in 13ms (Views: 7.4ms | ActiveRecord: 0.4ms | Allocations: 869)
4889
+  (1.3ms) rollback transaction
4890
+  (0.8ms) begin transaction
4891
+  (0.3ms) SAVEPOINT active_record_1
4892
+ User Create (2.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:18.677735"], ["updated_at", "2019-09-24 02:24:18.677735"]]
4893
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4894
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:24:19 -0400
4895
+ Processing by ApplicationController#hello_world as HTML
4896
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50791/hello_world ###
4897
+ Redirected to http://192.168.0.12:50791/nulogy_sso/login
4898
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4899
+ Completed 302 Found in 5ms (ActiveRecord: 0.0ms | Allocations: 446)
4900
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:24:19 -0400
4901
+ Processing by NulogySSO::AuthenticationController#login as HTML
4902
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50791%2Fhello_world&response_type=code&scope=openid+email
4903
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 454)
4904
+  (0.4ms) rollback transaction
4905
+  (0.3ms) begin transaction
4906
+  (0.4ms) SAVEPOINT active_record_1
4907
+ User Create (3.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:19.917259"], ["updated_at", "2019-09-24 02:24:19.917259"]]
4908
+  (0.4ms) RELEASE SAVEPOINT active_record_1
4909
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:24:20 -0400
4910
+ Processing by ApplicationController#hello_world as HTML
4911
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50791/hello_world ###
4912
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
4913
+ Rendering text template
4914
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
4915
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.1ms | Allocations: 612)
4916
+  (0.3ms) rollback transaction
4917
+  (0.1ms) begin transaction
4918
+  (0.5ms) SAVEPOINT active_record_1
4919
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:21.021320"], ["updated_at", "2019-09-24 02:24:21.021320"]]
4920
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4921
+ Started GET "/hello_world" for 192.168.0.12 at 2019-09-23 22:24:21 -0400
4922
+ Processing by ApplicationController#hello_world as HTML
4923
+ ### Setting session[:previous_request_url] to http://192.168.0.12:50791/hello_world ###
4924
+ ### Access token was blank, redirecting to path '/nulogy_sso/login'
4925
+ Redirected to http://192.168.0.12:50791/nulogy_sso/login
4926
+ Filter chain halted as :authenticate_sso_user rendered or redirected
4927
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 336)
4928
+ Started GET "/nulogy_sso/login" for 192.168.0.12 at 2019-09-23 22:24:21 -0400
4929
+ Processing by NulogySSO::AuthenticationController#login as HTML
4930
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%3A%2F%2F192.168.0.12%3A50791%2Fhello_world&response_type=code&scope=openid+email
4931
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 286)
4932
+  (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.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 |
3
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:1] | passed | 0.88764 seconds |
4
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:2] | passed | 4.15 seconds |
5
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:3] | passed | 0.85285 seconds |
6
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:1] | passed | 1.11 seconds |
7
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:2] | passed | 1.24 seconds |
8
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:3] | passed | 1.08 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 |
@@ -5,12 +5,12 @@ require "feature_spec_helper"
5
5
  module NulogySSO
6
6
  RSpec.describe "the SSO login process", type: :feature, js: true do
7
7
  let(:email) { "test@nulogy.com" }
8
- let(:auth0_mock) { TestUtilities::Auth0Mock.new }
8
+ let(:auth0_mock) { TestUtilities::Auth0Mock.new(redirect_path: "/hello_world") }
9
9
  let(:jwt_test_helper) { TestUtilities::JwtTestHelper.new }
10
10
 
11
11
  describe "login flow" do
12
12
  it "can successfully login" do
13
- auth0_mock.setup(email: email, redirect_path: "/hello_world")
13
+ auth0_mock.setup(email: email)
14
14
  create_user
15
15
 
16
16
  visit "/hello_world"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nulogy_sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nulogy Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-23 00:00:00.000000000 Z
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: auth0