nulogy_sso 0.3.3 → 0.4.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45ba41e655cffa293d1750e7d1deb76c115cc001b1c43cb308fcfff3366d3195
|
4
|
+
data.tar.gz: 742eb6f00234afe2923ef22ff29a702c74972103217dca73bcd244af3bc654eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:,
|
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}
|
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"))
|
data/lib/nulogy_sso/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -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
|
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4471
|
+
[1m[35m (40.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4472
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4473
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4474
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4475
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
4476
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4477
|
+
[1m[36mUser Create (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 22:24:50.562330"], ["updated_at", "2019-09-23 22:24:50.562330"]]
|
4478
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
4503
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4522
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4523
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4524
|
+
[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 22:24:56.229663"], ["updated_at", "2019-09-23 22:24:56.229663"]]
|
4525
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
4543
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4544
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4545
|
+
[1m[36mUser Create (1.8ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 22:24:57.129996"], ["updated_at", "2019-09-23 22:24:57.129996"]]
|
4546
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
4558
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4559
|
+
[1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4560
|
+
[1m[36mUser Create (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-23 22:24:58.806845"], ["updated_at", "2019-09-23 22:24:58.806845"]]
|
4561
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4573
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4574
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4575
|
+
[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 22:25:00.849162"], ["updated_at", "2019-09-23 22:25:00.849162"]]
|
4576
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
4585
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4586
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4587
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4588
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4589
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
4590
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4591
|
+
[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-24 02:23:00.338368"], ["updated_at", "2019-09-24 02:23:00.338368"]]
|
4592
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
4612
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4613
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4614
|
+
[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-24 02:23:04.678367"], ["updated_at", "2019-09-24 02:23:04.678367"]]
|
4615
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
4634
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4654
|
+
[1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
|
4655
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4656
|
+
[1m[36mUser Create (1.7ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:06.627503"], ["updated_at", "2019-09-24 02:23:06.627503"]]
|
4657
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
4669
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4670
|
+
[1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4671
|
+
[1m[36mUser Create (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:07.950598"], ["updated_at", "2019-09-24 02:23:07.950598"]]
|
4672
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
4685
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4686
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4687
|
+
[1m[36mUser Create (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:09.152478"], ["updated_at", "2019-09-24 02:23:09.152478"]]
|
4688
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
4697
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4698
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4699
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4700
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4701
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
4702
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4703
|
+
[1m[36mUser Create (1.5ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:34.722420"], ["updated_at", "2019-09-24 02:23:34.722420"]]
|
4704
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (1.3ms)[0m [1m[31mrollback transaction[0m
|
4717
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4718
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4719
|
+
[1m[36mUser Create (1.0ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:23:39.519636"], ["updated_at", "2019-09-24 02:23:39.519636"]]
|
4720
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
4729
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4730
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4731
|
+
[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-24 02:23:40.951284"], ["updated_at", "2019-09-24 02:23:40.951284"]]
|
4732
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4744
|
+
[1m[35m (1.0ms)[0m [1m[36mbegin transaction[0m
|
4745
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4746
|
+
[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-24 02:23:42.649460"], ["updated_at", "2019-09-24 02:23:42.649460"]]
|
4747
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4773
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4793
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4794
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4795
|
+
[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-24 02:23:44.705454"], ["updated_at", "2019-09-24 02:23:44.705454"]]
|
4796
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4815
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4816
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
4817
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4818
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4819
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
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
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4839
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4840
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4841
|
+
[1m[36mUser Create (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:17.074355"], ["updated_at", "2019-09-24 02:24:17.074355"]]
|
4842
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
4861
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4862
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4863
|
+
[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-24 02:24:17.964924"], ["updated_at", "2019-09-24 02:24:17.964924"]]
|
4864
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (1.3ms)[0m [1m[31mrollback transaction[0m
|
4890
|
+
[1m[35m (0.8ms)[0m [1m[36mbegin transaction[0m
|
4891
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4892
|
+
[1m[36mUser Create (2.2ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:18.677735"], ["updated_at", "2019-09-24 02:24:18.677735"]]
|
4893
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
4905
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
4906
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4907
|
+
[1m[36mUser Create (3.1ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:19.917259"], ["updated_at", "2019-09-24 02:24:19.917259"]]
|
4908
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["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
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
4917
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4918
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4919
|
+
[1m[36mUser Create (0.9ms)[0m [1m[32mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "test@nulogy.com"], ["created_at", "2019-09-24 02:24:21.021320"], ["updated_at", "2019-09-24 02:24:21.021320"]]
|
4920
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[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 |
|
4
|
-
./spec/features/nulogy_sso/sso_login_spec.rb[1:1:2] | passed |
|
5
|
-
./spec/features/nulogy_sso/sso_login_spec.rb[1:1:3] | passed | 0.
|
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 | 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
|
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.
|
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-
|
11
|
+
date: 2019-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: auth0
|