nulogy_sso 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca97de81b4866da1365262d4a579dd6d20728f7ffdeabadc20fa4102f13d5376
4
- data.tar.gz: 95955ce74b932dc92485a6aa0fe2fa97f6b72db9b6059f18696b03a556ee70ed
3
+ metadata.gz: ad56727743b843b7b225c6aaf8858c97c62c20dc974e3c776b9fc0fb155bc52f
4
+ data.tar.gz: c53a714607c173e9c1e5b96b9c1a2cedfb268b7c4483487f5fd32cfa306e0f10
5
5
  SHA512:
6
- metadata.gz: 5e995c890341267f0d7e8948043085d8a8b2f2de1933865f4da5641dfa0cfc6f2959b9a925c0be27fa64acc0de6998e0c3f453f98672091a8d118c43bedfcaf1
7
- data.tar.gz: b753276ec79bf51315d353516d4a7e308161d34a934f446cbc0676b1e4e15cd91722ca49c269f3a703495d79e5bb1604b228ac2d9496fc0123555f7c6d65bdcc
6
+ metadata.gz: 150658c3b533bc60ebf25ff6660a93389b08b495b17d4efb8e5d6c682a377775fc09c76db34bc65522496002b0f739c1d39bddb6d00ac91c605ff3ffaf817f65
7
+ data.tar.gz: 8f091e0a1cd0c7aa4bc5f4c327bf72637a729ca53e073710bd414aa082a7cbc7dcdd46e17cf16c3fde207dc5558f6e741e4ce4cbefd9cee560f1d3fe8dd2a20d
data/README.md CHANGED
@@ -115,6 +115,16 @@ There are multiple helpers made available via the `NulogySSO::TestUtilities` mod
115
115
 
116
116
  It is a common use case for a Rails app to switch from Devise-powered authentication to Auth0. This would also require updates to test helper code, similar to [functionality that Devise provides out of the box](https://github.com/heartcombo/devise/wiki/How-To:-Test-controllers-with-Rails-(and-RSpec)). [See this example](https://github.com/nulogy/Common-Platform-Interface/blob/f9444ded80d6012b9659942481fa2e6b880b54ee/spec/support/controller_integration_spec_macros.rb) of how a test helper could be written for an app using a feature flag (e.g. environment variable) to switch between Devise and NulogySSO authentication.
117
117
 
118
+ ###
119
+
120
+ 1. Ensure that all tests are passing on the project
121
+ 1. Increment the library version in [version.rb](./lib/nulogy_sso/version.rb), adhering to semver principles
122
+ 1. Add a entry to [the Changelog](./CHANGELOG.md). Move all entries in the _Unreleased_ section into the new version's section. Now is also a good chance to add in any addition bullet points that may have been forgotten in the _Unreleased_ section. Append today's date to the new version.
123
+ 1. Run these commands to complete the deployment. Rubygem push rights on this gem is required.
124
+ ```sh
125
+ gem build
126
+ ```
127
+
118
128
  ### Contributing
119
129
 
120
130
  Feel free to create a PR if you wish to add new functionality to this Engine or detect a bug. A developer on CN1 will review and merge.
@@ -88,7 +88,7 @@ module NulogySSO
88
88
  client_id: sso_config.client_id,
89
89
  response_type: "code",
90
90
  scope: "openid email",
91
- redirect_uri: "#{sso_config.login_uri}?origin=#{CGI::escape(session[:previous_request_url])}"
91
+ redirect_uri: OriginRedirector.authentication_redirect_uri(session[:previous_request_url])
92
92
  }
93
93
 
94
94
  "#{sso_config.base_uri}/authorize?#{query_params.to_query}"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NulogySSO
4
+ module OriginRedirector
5
+ extend self
6
+
7
+ def authentication_redirect_uri(previous_request_uri)
8
+ if previous_request_uri.blank?
9
+ sso_config.login_uri
10
+ else
11
+ "#{sso_config.login_uri}?origin=#{CGI::escape(previous_request_uri)}"
12
+ end
13
+ end
14
+
15
+ delegate :sso_config, to: :NulogySSO
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module NulogySSO
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
@@ -6214,3 +6214,722 @@ Processing by ApplicationController#hello_world as HTML
6214
6214
  Rendered text template (Duration: 0.0ms | Allocations: 3)
6215
6215
  Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms | Allocations: 1799)
6216
6216
   (0.4ms) rollback transaction
6217
+  (3.8ms) SELECT sqlite_version(*)
6218
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6219
+  (0.1ms) SELECT sqlite_version(*)
6220
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6221
+  (1.4ms) SELECT sqlite_version(*)
6222
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6223
+  (0.1ms) SELECT sqlite_version(*)
6224
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6225
+  (1.2ms) SELECT sqlite_version(*)
6226
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6227
+  (0.1ms) SELECT sqlite_version(*)
6228
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6229
+  (1.3ms) SELECT sqlite_version(*)
6230
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6231
+  (0.1ms) SELECT sqlite_version(*)
6232
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6233
+  (6.4ms) SELECT sqlite_version(*)
6234
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6235
+  (0.1ms) SELECT sqlite_version(*)
6236
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6237
+  (0.1ms) begin transaction
6238
+  (0.1ms) rollback transaction
6239
+  (0.1ms) begin transaction
6240
+  (0.1ms) rollback transaction
6241
+  (0.3ms) begin transaction
6242
+  (0.1ms) rollback transaction
6243
+  (0.1ms) begin transaction
6244
+  (0.1ms) rollback transaction
6245
+  (0.2ms) begin transaction
6246
+  (0.1ms) rollback transaction
6247
+  (0.1ms) begin transaction
6248
+  (0.1ms) rollback transaction
6249
+  (0.1ms) begin transaction
6250
+  (0.1ms) rollback transaction
6251
+  (0.1ms) begin transaction
6252
+  (0.1ms) rollback transaction
6253
+  (0.3ms) begin transaction
6254
+  (0.1ms) rollback transaction
6255
+  (0.2ms) begin transaction
6256
+  (0.1ms) rollback transaction
6257
+  (0.1ms) begin transaction
6258
+  (0.1ms) rollback transaction
6259
+  (0.3ms) begin transaction
6260
+  (0.1ms) SAVEPOINT active_record_1
6261
+ User Create (6.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:37:35"], ["updated_at", "2020-01-17 16:37:35"]]
6262
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6263
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6264
+ Processing by ApplicationController#hello_world as HTML
6265
+ Redirected to http://10.2.2.127:51255/nulogy_sso/login
6266
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6267
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms | Allocations: 449)
6268
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6269
+ Processing by NulogySSO::AuthenticationController#login as HTML
6270
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms | Allocations: 351)
6271
+  (0.5ms) rollback transaction
6272
+  (0.2ms) begin transaction
6273
+  (0.2ms) SAVEPOINT active_record_1
6274
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:37:35"], ["updated_at", "2020-01-17 16:37:35"]]
6275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6276
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6277
+ Processing by ApplicationController#hello_world as HTML
6278
+ Redirected to http://10.2.2.127:51255/nulogy_sso/login
6279
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6280
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 325)
6281
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6282
+ Processing by NulogySSO::AuthenticationController#login as HTML
6283
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 319)
6284
+  (0.7ms) rollback transaction
6285
+  (0.2ms) begin transaction
6286
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6287
+ Processing by ApplicationController#hello_world as HTML
6288
+ Redirected to http://10.2.2.127:51255/nulogy_sso/login
6289
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6290
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 325)
6291
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6292
+ Processing by NulogySSO::AuthenticationController#login as HTML
6293
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 323)
6294
+  (0.1ms) rollback transaction
6295
+  (0.1ms) begin transaction
6296
+  (0.3ms) SAVEPOINT active_record_1
6297
+ User Create (1.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:37:35"], ["updated_at", "2020-01-17 16:37:35"]]
6298
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6299
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6300
+ Processing by ApiController#api_endpoint as HTML
6301
+ Redirected to http://10.2.2.127:51255/nulogy_sso/login
6302
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6303
+ Completed 302 Found in 196ms (ActiveRecord: 0.0ms | Allocations: 2309)
6304
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6305
+ Processing by NulogySSO::AuthenticationController#login as HTML
6306
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms | Allocations: 489)
6307
+  (0.5ms) rollback transaction
6308
+  (0.1ms) begin transaction
6309
+  (0.1ms) SAVEPOINT active_record_1
6310
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:37:35"], ["updated_at", "2020-01-17 16:37:35"]]
6311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6312
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6313
+ Processing by ApiController#api_endpoint as HTML
6314
+ Redirected to http://10.2.2.127:51255/nulogy_sso/login
6315
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6316
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 316)
6317
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6318
+ Processing by NulogySSO::AuthenticationController#login as HTML
6319
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms | Allocations: 319)
6320
+  (0.8ms) rollback transaction
6321
+  (3.8ms) begin transaction
6322
+  (0.2ms) SAVEPOINT active_record_1
6323
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:37:35"], ["updated_at", "2020-01-17 16:37:35"]]
6324
+  (0.3ms) RELEASE SAVEPOINT active_record_1
6325
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:37:35 -0500
6326
+ Processing by ApiController#api_endpoint as HTML
6327
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6328
+ Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.4ms | Allocations: 839)
6329
+  (0.6ms) rollback transaction
6330
+  (1.6ms) SELECT sqlite_version(*)
6331
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6332
+  (0.1ms) SELECT sqlite_version(*)
6333
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6334
+  (0.1ms) begin transaction
6335
+  (0.1ms) SAVEPOINT active_record_1
6336
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:39:12.625037"], ["updated_at", "2020-01-17 16:39:12.625037"]]
6337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6338
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:39:13 -0500
6339
+ Processing by ApplicationController#hello_world as HTML
6340
+ Redirected to http://10.2.2.127:51383/nulogy_sso/login
6341
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6342
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms | Allocations: 856)
6343
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:39:13 -0500
6344
+ Processing by NulogySSO::AuthenticationController#login as HTML
6345
+ Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms | Allocations: 3008)
6346
+  (0.4ms) rollback transaction
6347
+  (0.1ms) begin transaction
6348
+  (0.2ms) SAVEPOINT active_record_1
6349
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:39:15.415760"], ["updated_at", "2020-01-17 16:39:15.415760"]]
6350
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6351
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:39:15 -0500
6352
+ Processing by ApplicationController#hello_world as HTML
6353
+ Redirected to http://10.2.2.127:51383/nulogy_sso/login
6354
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6355
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 323)
6356
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:39:15 -0500
6357
+ Processing by NulogySSO::AuthenticationController#login as HTML
6358
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 319)
6359
+  (0.4ms) rollback transaction
6360
+  (0.1ms) begin transaction
6361
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:39:16 -0500
6362
+ Processing by ApplicationController#hello_world as HTML
6363
+ Redirected to http://10.2.2.127:51383/nulogy_sso/login
6364
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6365
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 323)
6366
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:39:16 -0500
6367
+ Processing by NulogySSO::AuthenticationController#login as HTML
6368
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 317)
6369
+  (0.1ms) rollback transaction
6370
+  (0.1ms) begin transaction
6371
+  (0.1ms) SAVEPOINT active_record_1
6372
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:39:18.013513"], ["updated_at", "2020-01-17 16:39:18.013513"]]
6373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6374
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:39:18 -0500
6375
+ Processing by ApplicationController#hello_world as HTML
6376
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6377
+ Rendering text template
6378
+ Rendered text template (Duration: 0.1ms | Allocations: 3)
6379
+ Completed 200 OK in 72ms (Views: 8.1ms | ActiveRecord: 0.3ms | Allocations: 3715)
6380
+  (0.5ms) rollback transaction
6381
+  (0.1ms) begin transaction
6382
+  (0.1ms) SAVEPOINT active_record_1
6383
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:39:19.843720"], ["updated_at", "2020-01-17 16:39:19.843720"]]
6384
+  (1.0ms) RELEASE SAVEPOINT active_record_1
6385
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:39:20 -0500
6386
+ Processing by ApplicationController#hello_world as HTML
6387
+ Redirected to http://10.2.2.127:51383/nulogy_sso/login
6388
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6389
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 323)
6390
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:39:20 -0500
6391
+ Processing by NulogySSO::AuthenticationController#login as HTML
6392
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 312)
6393
+  (7.6ms) rollback transaction
6394
+  (0.5ms) begin transaction
6395
+  (0.6ms) SAVEPOINT active_record_1
6396
+ User Create (2.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:39:20.997464"], ["updated_at", "2020-01-17 16:39:20.997464"]]
6397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6398
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:39:21 -0500
6399
+ Processing by ApplicationController#hello_world as HTML
6400
+ Redirected to http://10.2.2.127:51383/nulogy_sso/login
6401
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6402
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 500)
6403
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:39:21 -0500
6404
+ Processing by NulogySSO::AuthenticationController#login as HTML
6405
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms | Allocations: 481)
6406
+  (1.0ms) rollback transaction
6407
+  (0.1ms) begin transaction
6408
+  (0.1ms) SAVEPOINT active_record_1
6409
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:39:22.151598"], ["updated_at", "2020-01-17 16:39:22.151598"]]
6410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6411
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:39:22 -0500
6412
+ Processing by ApiController#api_endpoint as HTML
6413
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6414
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.2ms | Allocations: 661)
6415
+  (0.7ms) rollback transaction
6416
+  (0.1ms) begin transaction
6417
+  (0.1ms) SAVEPOINT active_record_1
6418
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:39:23.498168"], ["updated_at", "2020-01-17 16:39:23.498168"]]
6419
+  (0.4ms) RELEASE SAVEPOINT active_record_1
6420
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:39:23 -0500
6421
+ Processing by ApiController#api_endpoint as HTML
6422
+ Redirected to http://10.2.2.127:51383/nulogy_sso/login
6423
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6424
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 319)
6425
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:39:23 -0500
6426
+ Processing by NulogySSO::AuthenticationController#login as HTML
6427
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 313)
6428
+  (0.8ms) rollback transaction
6429
+  (0.1ms) begin transaction
6430
+  (0.2ms) SAVEPOINT active_record_1
6431
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:39:24.500073"], ["updated_at", "2020-01-17 16:39:24.500073"]]
6432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6433
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:39:24 -0500
6434
+ Processing by ApiController#api_endpoint as HTML
6435
+ Redirected to http://10.2.2.127:51383/nulogy_sso/login
6436
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6437
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 491)
6438
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:39:24 -0500
6439
+ Processing by NulogySSO::AuthenticationController#login as HTML
6440
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms | Allocations: 483)
6441
+  (0.7ms) rollback transaction
6442
+  (3.3ms) SELECT sqlite_version(*)
6443
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6444
+  (0.1ms) SELECT sqlite_version(*)
6445
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6446
+  (0.2ms) begin transaction
6447
+  (0.1ms) SAVEPOINT active_record_1
6448
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:40:16.720550"], ["updated_at", "2020-01-17 16:40:16.720550"]]
6449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6450
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:40:23 -0500
6451
+ Processing by ApplicationController#hello_world as HTML
6452
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6453
+ Rendering text template
6454
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
6455
+ Completed 200 OK in 147ms (Views: 12.6ms | ActiveRecord: 0.4ms | Allocations: 6899)
6456
+  (0.4ms) rollback transaction
6457
+  (0.2ms) begin transaction
6458
+  (0.1ms) SAVEPOINT active_record_1
6459
+ User Create (1.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:40:23.923377"], ["updated_at", "2020-01-17 16:40:23.923377"]]
6460
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6461
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:40:24 -0500
6462
+ Processing by ApplicationController#hello_world as HTML
6463
+ Redirected to http://10.2.2.127:51538/nulogy_sso/login
6464
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6465
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 345)
6466
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:40:24 -0500
6467
+ Processing by NulogySSO::AuthenticationController#login as HTML
6468
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 353)
6469
+  (0.6ms) rollback transaction
6470
+  (0.1ms) begin transaction
6471
+  (0.1ms) SAVEPOINT active_record_1
6472
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:40:25.291119"], ["updated_at", "2020-01-17 16:40:25.291119"]]
6473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6474
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:40:25 -0500
6475
+ Processing by ApplicationController#hello_world as HTML
6476
+ Redirected to http://10.2.2.127:51538/nulogy_sso/login
6477
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6478
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 500)
6479
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:40:25 -0500
6480
+ Processing by NulogySSO::AuthenticationController#login as HTML
6481
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 487)
6482
+  (0.9ms) rollback transaction
6483
+  (0.1ms) begin transaction
6484
+  (0.2ms) SAVEPOINT active_record_1
6485
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:40:26.169103"], ["updated_at", "2020-01-17 16:40:26.169103"]]
6486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6487
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:40:26 -0500
6488
+ Processing by ApiController#api_endpoint as HTML
6489
+ Redirected to http://10.2.2.127:51538/nulogy_sso/login
6490
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6491
+ Completed 302 Found in 58ms (ActiveRecord: 0.0ms | Allocations: 356)
6492
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:40:26 -0500
6493
+ Processing by NulogySSO::AuthenticationController#login as HTML
6494
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms | Allocations: 310)
6495
+  (1.2ms) rollback transaction
6496
+  (0.1ms) begin transaction
6497
+  (0.1ms) SAVEPOINT active_record_1
6498
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:40:27.098346"], ["updated_at", "2020-01-17 16:40:27.098346"]]
6499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6500
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:40:27 -0500
6501
+ Processing by ApiController#api_endpoint as HTML
6502
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6503
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms | Allocations: 629)
6504
+  (0.9ms) rollback transaction
6505
+  (0.1ms) begin transaction
6506
+  (0.1ms) SAVEPOINT active_record_1
6507
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:40:28.169658"], ["updated_at", "2020-01-17 16:40:28.169658"]]
6508
+  (0.4ms) RELEASE SAVEPOINT active_record_1
6509
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:40:28 -0500
6510
+ Processing by ApiController#api_endpoint as HTML
6511
+ Redirected to http://10.2.2.127:51538/nulogy_sso/login
6512
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6513
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 491)
6514
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:40:28 -0500
6515
+ Processing by NulogySSO::AuthenticationController#login as HTML
6516
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms | Allocations: 475)
6517
+  (0.7ms) rollback transaction
6518
+  (0.1ms) begin transaction
6519
+  (0.1ms) SAVEPOINT active_record_1
6520
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:40:29.405928"], ["updated_at", "2020-01-17 16:40:29.405928"]]
6521
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6522
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:40:29 -0500
6523
+ Processing by ApplicationController#hello_world as HTML
6524
+ Redirected to http://10.2.2.127:51538/nulogy_sso/login
6525
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6526
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 323)
6527
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:40:29 -0500
6528
+ Processing by NulogySSO::AuthenticationController#login as HTML
6529
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 317)
6530
+  (0.5ms) rollback transaction
6531
+  (0.1ms) begin transaction
6532
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:40:30 -0500
6533
+ Processing by ApplicationController#hello_world as HTML
6534
+ Redirected to http://10.2.2.127:51538/nulogy_sso/login
6535
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6536
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 323)
6537
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:40:30 -0500
6538
+ Processing by NulogySSO::AuthenticationController#login as HTML
6539
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 307)
6540
+  (0.2ms) rollback transaction
6541
+  (0.1ms) begin transaction
6542
+  (0.1ms) SAVEPOINT active_record_1
6543
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:40:31.770225"], ["updated_at", "2020-01-17 16:40:31.770225"]]
6544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6545
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:40:31 -0500
6546
+ Processing by ApplicationController#hello_world as HTML
6547
+ Redirected to http://10.2.2.127:51538/nulogy_sso/login
6548
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6549
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 323)
6550
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:40:31 -0500
6551
+ Processing by NulogySSO::AuthenticationController#login as HTML
6552
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms | Allocations: 315)
6553
+  (0.7ms) rollback transaction
6554
+  (2.0ms) SELECT sqlite_version(*)
6555
+  (12.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6556
+  (0.1ms) SELECT sqlite_version(*)
6557
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6558
+  (2.3ms) SELECT sqlite_version(*)
6559
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6560
+  (0.1ms) SELECT sqlite_version(*)
6561
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6562
+  (2.7ms) SELECT sqlite_version(*)
6563
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6564
+  (0.5ms) SELECT sqlite_version(*)
6565
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6566
+  (0.1ms) begin transaction
6567
+  (0.3ms) rollback transaction
6568
+  (0.1ms) begin transaction
6569
+  (0.1ms) rollback transaction
6570
+  (0.1ms) begin transaction
6571
+  (0.1ms) rollback transaction
6572
+  (0.1ms) begin transaction
6573
+  (0.1ms) rollback transaction
6574
+  (0.1ms) begin transaction
6575
+  (0.1ms) rollback transaction
6576
+  (0.1ms) begin transaction
6577
+  (0.1ms) rollback transaction
6578
+  (0.3ms) begin transaction
6579
+  (0.1ms) rollback transaction
6580
+  (0.1ms) begin transaction
6581
+  (0.1ms) rollback transaction
6582
+  (0.1ms) begin transaction
6583
+  (0.1ms) rollback transaction
6584
+  (0.1ms) begin transaction
6585
+  (2.7ms) rollback transaction
6586
+  (0.2ms) begin transaction
6587
+  (0.1ms) rollback transaction
6588
+  (0.1ms) begin transaction
6589
+  (0.1ms) rollback transaction
6590
+  (4.2ms) begin transaction
6591
+  (0.1ms) rollback transaction
6592
+  (0.1ms) begin transaction
6593
+  (0.1ms) SAVEPOINT active_record_1
6594
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:47:11"], ["updated_at", "2020-01-17 16:47:11"]]
6595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6596
+  (3.6ms) SELECT sqlite_version(*)
6597
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6598
+  (0.1ms) SELECT sqlite_version(*)
6599
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6600
+  (0.1ms) begin transaction
6601
+  (0.1ms) rollback transaction
6602
+  (0.1ms) begin transaction
6603
+  (0.2ms) rollback transaction
6604
+  (0.7ms) begin transaction
6605
+  (0.1ms) rollback transaction
6606
+  (0.1ms) begin transaction
6607
+  (0.2ms) SAVEPOINT active_record_1
6608
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:49:35"], ["updated_at", "2020-01-17 16:49:35"]]
6609
+  (0.4ms) RELEASE SAVEPOINT active_record_1
6610
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6611
+ Processing by ApiController#api_endpoint as HTML
6612
+ Redirected to http://10.2.2.127:51781/nulogy_sso/login
6613
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6614
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms | Allocations: 413)
6615
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6616
+ Processing by NulogySSO::AuthenticationController#login as HTML
6617
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A51781%252Fapi_endpoint&response_type=code&scope=openid+email
6618
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 362)
6619
+  (0.9ms) rollback transaction
6620
+  (0.1ms) begin transaction
6621
+  (0.1ms) SAVEPOINT active_record_1
6622
+ User Create (1.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:49:35"], ["updated_at", "2020-01-17 16:49:35"]]
6623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6624
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6625
+ Processing by ApiController#api_endpoint as HTML
6626
+ Redirected to http://10.2.2.127:51781/nulogy_sso/login
6627
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6628
+ Completed 302 Found in 308ms (ActiveRecord: 0.0ms | Allocations: 2280)
6629
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6630
+ Processing by NulogySSO::AuthenticationController#login as HTML
6631
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A51781%252Fapi_endpoint&response_type=code&scope=openid+email
6632
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 470)
6633
+  (0.6ms) rollback transaction
6634
+  (0.1ms) begin transaction
6635
+  (0.2ms) SAVEPOINT active_record_1
6636
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:49:35"], ["updated_at", "2020-01-17 16:49:35"]]
6637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6638
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6639
+ Processing by ApiController#api_endpoint as HTML
6640
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6641
+ Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.3ms | Allocations: 835)
6642
+  (0.5ms) rollback transaction
6643
+  (0.1ms) begin transaction
6644
+  (0.1ms) SAVEPOINT active_record_1
6645
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:49:35"], ["updated_at", "2020-01-17 16:49:35"]]
6646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6647
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6648
+ Processing by ApplicationController#hello_world as HTML
6649
+ Redirected to http://10.2.2.127:51781/nulogy_sso/login
6650
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6651
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 373)
6652
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6653
+ Processing by NulogySSO::AuthenticationController#login as HTML
6654
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A51781%252Fhello_world&response_type=code&scope=openid+email
6655
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 303)
6656
+  (0.7ms) rollback transaction
6657
+  (0.1ms) begin transaction
6658
+  (0.1ms) SAVEPOINT active_record_1
6659
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:49:35"], ["updated_at", "2020-01-17 16:49:35"]]
6660
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6661
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6662
+ Processing by ApplicationController#hello_world as HTML
6663
+ Redirected to http://10.2.2.127:51781/nulogy_sso/login
6664
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6665
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 503)
6666
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6667
+ Processing by NulogySSO::AuthenticationController#login as HTML
6668
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A51781%252Fhello_world&response_type=code&scope=openid+email
6669
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 470)
6670
+  (0.3ms) rollback transaction
6671
+  (0.1ms) begin transaction
6672
+  (0.1ms) SAVEPOINT active_record_1
6673
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:49:35"], ["updated_at", "2020-01-17 16:49:35"]]
6674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6675
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6676
+ Processing by ApplicationController#hello_world as HTML
6677
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6678
+ Rendering text template
6679
+ Rendered text template (Duration: 0.1ms | Allocations: 3)
6680
+ Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.3ms | Allocations: 1703)
6681
+  (0.9ms) rollback transaction
6682
+  (0.1ms) begin transaction
6683
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6684
+ Processing by ApplicationController#hello_world as HTML
6685
+ Redirected to http://10.2.2.127:51781/nulogy_sso/login
6686
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6687
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 325)
6688
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6689
+ Processing by NulogySSO::AuthenticationController#login as HTML
6690
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A51781%252Fhello_world&response_type=code&scope=openid+email
6691
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 299)
6692
+ Started GET "/nulogy_sso/verify_authentication_code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A51781%2Fhello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6693
+ Processing by NulogySSO::AuthenticationController#verify_authentication_code as HTML
6694
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:51781/hello_world"}
6695
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6696
+ Rendering text template
6697
+ Rendered text template (Duration: 0.1ms | Allocations: 1)
6698
+ Completed 200 OK in 93ms (Views: 1.9ms | ActiveRecord: 0.4ms | Allocations: 3930)
6699
+  (0.1ms) rollback transaction
6700
+  (0.1ms) begin transaction
6701
+  (0.1ms) SAVEPOINT active_record_1
6702
+ User Create (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:49:35"], ["updated_at", "2020-01-17 16:49:35"]]
6703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6704
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6705
+ Processing by ApplicationController#hello_world as HTML
6706
+ Redirected to http://10.2.2.127:51781/nulogy_sso/login
6707
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6708
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 325)
6709
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6710
+ Processing by NulogySSO::AuthenticationController#login as HTML
6711
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A51781%252Fhello_world&response_type=code&scope=openid+email
6712
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 307)
6713
+ Started GET "/nulogy_sso/verify_authentication_code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A51781%2Fhello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6714
+ Processing by NulogySSO::AuthenticationController#verify_authentication_code as HTML
6715
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:51781/hello_world"}
6716
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6717
+ Redirected to http://10.2.2.127:51781/hello_world
6718
+ Completed 302 Found in 64ms (ActiveRecord: 0.3ms | Allocations: 2726)
6719
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6720
+ Processing by ApplicationController#hello_world as HTML
6721
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6722
+ Rendering text template
6723
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
6724
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms | Allocations: 726)
6725
+  (0.7ms) rollback transaction
6726
+  (0.1ms) begin transaction
6727
+  (0.1ms) SAVEPOINT active_record_1
6728
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 16:49:35"], ["updated_at", "2020-01-17 16:49:35"]]
6729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6730
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6731
+ Processing by ApplicationController#hello_world as HTML
6732
+ Redirected to http://10.2.2.127:51781/nulogy_sso/login
6733
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6734
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 325)
6735
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6736
+ Processing by NulogySSO::AuthenticationController#login as HTML
6737
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A51781%252Fhello_world&response_type=code&scope=openid+email
6738
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 301)
6739
+ Started GET "/nulogy_sso/verify_authentication_code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A51781%2Fhello_world" for 10.2.2.127 at 2020-01-17 11:49:35 -0500
6740
+ Processing by NulogySSO::AuthenticationController#verify_authentication_code as HTML
6741
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:51781/hello_world"}
6742
+ Rendering text template
6743
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
6744
+ Completed 200 OK in 56ms (Views: 0.7ms | ActiveRecord: 0.0ms | Allocations: 2284)
6745
+  (0.6ms) rollback transaction
6746
+  (0.1ms) begin transaction
6747
+  (0.1ms) rollback transaction
6748
+  (0.1ms) begin transaction
6749
+  (0.0ms) rollback transaction
6750
+  (0.1ms) begin transaction
6751
+  (0.1ms) rollback transaction
6752
+  (0.1ms) begin transaction
6753
+  (0.2ms) rollback transaction
6754
+  (0.1ms) begin transaction
6755
+  (0.1ms) rollback transaction
6756
+  (0.2ms) begin transaction
6757
+  (0.3ms) rollback transaction
6758
+  (0.1ms) begin transaction
6759
+  (0.1ms) rollback transaction
6760
+  (0.1ms) begin transaction
6761
+  (0.1ms) rollback transaction
6762
+  (0.1ms) begin transaction
6763
+  (0.1ms) rollback transaction
6764
+  (0.1ms) begin transaction
6765
+  (0.1ms) rollback transaction
6766
+  (1.6ms) SELECT sqlite_version(*)
6767
+  (0.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
6768
+  (0.1ms) SELECT sqlite_version(*)
6769
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6770
+  (0.1ms) begin transaction
6771
+  (0.1ms) rollback transaction
6772
+  (0.1ms) begin transaction
6773
+  (0.0ms) rollback transaction
6774
+  (0.0ms) begin transaction
6775
+  (0.2ms) rollback transaction
6776
+  (0.1ms) begin transaction
6777
+  (0.1ms) rollback transaction
6778
+  (0.2ms) begin transaction
6779
+  (0.1ms) rollback transaction
6780
+  (0.1ms) begin transaction
6781
+  (0.1ms) rollback transaction
6782
+  (0.1ms) begin transaction
6783
+  (0.1ms) rollback transaction
6784
+  (0.1ms) begin transaction
6785
+  (0.1ms) rollback transaction
6786
+  (0.1ms) begin transaction
6787
+  (0.2ms) SAVEPOINT active_record_1
6788
+ User Create (2.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 18:29:57.714154"], ["updated_at", "2020-01-17 18:29:57.714154"]]
6789
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6790
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 13:29:58 -0500
6791
+ Processing by ApplicationController#hello_world as HTML
6792
+ Redirected to http://10.2.2.127:52562/nulogy_sso/login
6793
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6794
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms | Allocations: 473)
6795
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 13:29:58 -0500
6796
+ Processing by NulogySSO::AuthenticationController#login as HTML
6797
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A52562%252Fhello_world&response_type=code&scope=openid+email
6798
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 341)
6799
+ Started GET "/nulogy_sso/verify_authentication_code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A52562%2Fhello_world" for 10.2.2.127 at 2020-01-17 13:29:59 -0500
6800
+ Processing by NulogySSO::AuthenticationController#verify_authentication_code as HTML
6801
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:52562/hello_world"}
6802
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6803
+ Redirected to http://10.2.2.127:52562/hello_world
6804
+ Completed 302 Found in 124ms (ActiveRecord: 0.3ms | Allocations: 6034)
6805
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 13:29:59 -0500
6806
+ Processing by ApplicationController#hello_world as HTML
6807
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6808
+ Rendering text template
6809
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
6810
+ Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.2ms | Allocations: 1808)
6811
+  (0.4ms) rollback transaction
6812
+  (0.1ms) begin transaction
6813
+  (0.1ms) SAVEPOINT active_record_1
6814
+ User Create (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 18:30:00.119668"], ["updated_at", "2020-01-17 18:30:00.119668"]]
6815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6816
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 13:30:00 -0500
6817
+ Processing by ApplicationController#hello_world as HTML
6818
+ Redirected to http://10.2.2.127:52562/nulogy_sso/login
6819
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6820
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 323)
6821
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 13:30:00 -0500
6822
+ Processing by NulogySSO::AuthenticationController#login as HTML
6823
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A52562%252Fhello_world&response_type=code&scope=openid+email
6824
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 308)
6825
+ Started GET "/nulogy_sso/verify_authentication_code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A52562%2Fhello_world" for 10.2.2.127 at 2020-01-17 13:30:00 -0500
6826
+ Processing by NulogySSO::AuthenticationController#verify_authentication_code as HTML
6827
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:52562/hello_world"}
6828
+ Rendering text template
6829
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
6830
+ Completed 200 OK in 42ms (Views: 0.9ms | ActiveRecord: 0.0ms | Allocations: 2415)
6831
+  (0.6ms) rollback transaction
6832
+  (0.2ms) begin transaction
6833
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 13:30:00 -0500
6834
+ Processing by ApplicationController#hello_world as HTML
6835
+ Redirected to http://10.2.2.127:52562/nulogy_sso/login
6836
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6837
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 323)
6838
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 13:30:00 -0500
6839
+ Processing by NulogySSO::AuthenticationController#login as HTML
6840
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A52562%252Fhello_world&response_type=code&scope=openid+email
6841
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 302)
6842
+ Started GET "/nulogy_sso/verify_authentication_code?code=FAKE_CODE&origin=http%3A%2F%2F10.2.2.127%3A52562%2Fhello_world" for 10.2.2.127 at 2020-01-17 13:30:00 -0500
6843
+ Processing by NulogySSO::AuthenticationController#verify_authentication_code as HTML
6844
+ Parameters: {"code"=>"FAKE_CODE", "origin"=>"http://10.2.2.127:52562/hello_world"}
6845
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6846
+ Rendering text template
6847
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
6848
+ Completed 200 OK in 43ms (Views: 0.5ms | ActiveRecord: 0.2ms | Allocations: 2599)
6849
+  (0.1ms) rollback transaction
6850
+  (0.1ms) begin transaction
6851
+  (0.1ms) SAVEPOINT active_record_1
6852
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 18:30:01.584731"], ["updated_at", "2020-01-17 18:30:01.584731"]]
6853
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6854
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 13:30:01 -0500
6855
+ Processing by ApplicationController#hello_world as HTML
6856
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6857
+ Rendering text template
6858
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
6859
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.1ms | Allocations: 613)
6860
+  (0.6ms) rollback transaction
6861
+  (0.2ms) begin transaction
6862
+  (0.2ms) SAVEPOINT active_record_1
6863
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 18:30:02.327034"], ["updated_at", "2020-01-17 18:30:02.327034"]]
6864
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6865
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 13:30:02 -0500
6866
+ Processing by ApplicationController#hello_world as HTML
6867
+ Redirected to http://10.2.2.127:52562/nulogy_sso/login
6868
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6869
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 323)
6870
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 13:30:02 -0500
6871
+ Processing by NulogySSO::AuthenticationController#login as HTML
6872
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A52562%252Fhello_world&response_type=code&scope=openid+email
6873
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 299)
6874
+  (0.6ms) rollback transaction
6875
+  (0.2ms) begin transaction
6876
+  (0.3ms) SAVEPOINT active_record_1
6877
+ User Create (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 18:30:03.144526"], ["updated_at", "2020-01-17 18:30:03.144526"]]
6878
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6879
+ Started GET "/hello_world" for 10.2.2.127 at 2020-01-17 13:30:03 -0500
6880
+ Processing by ApplicationController#hello_world as HTML
6881
+ Redirected to http://10.2.2.127:52562/nulogy_sso/login
6882
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6883
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 500)
6884
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 13:30:03 -0500
6885
+ Processing by NulogySSO::AuthenticationController#login as HTML
6886
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A52562%252Fhello_world&response_type=code&scope=openid+email
6887
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 470)
6888
+  (0.5ms) rollback transaction
6889
+  (0.1ms) begin transaction
6890
+  (0.2ms) SAVEPOINT active_record_1
6891
+ User Create (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 18:30:04.232003"], ["updated_at", "2020-01-17 18:30:04.232003"]]
6892
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6893
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 13:30:04 -0500
6894
+ Processing by ApiController#api_endpoint as HTML
6895
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "test@nulogy.com"], ["LIMIT", 1]]
6896
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.1ms | Allocations: 644)
6897
+  (0.6ms) rollback transaction
6898
+  (0.2ms) begin transaction
6899
+  (0.2ms) SAVEPOINT active_record_1
6900
+ User Create (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 18:30:05.161097"], ["updated_at", "2020-01-17 18:30:05.161097"]]
6901
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6902
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 13:30:05 -0500
6903
+ Processing by ApiController#api_endpoint as HTML
6904
+ Redirected to http://10.2.2.127:52562/nulogy_sso/login
6905
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6906
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 319)
6907
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 13:30:05 -0500
6908
+ Processing by NulogySSO::AuthenticationController#login as HTML
6909
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A52562%252Fapi_endpoint&response_type=code&scope=openid+email
6910
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms | Allocations: 302)
6911
+  (0.5ms) rollback transaction
6912
+  (0.1ms) begin transaction
6913
+  (0.3ms) SAVEPOINT active_record_1
6914
+ User Create (1.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "test@nulogy.com"], ["created_at", "2020-01-17 18:30:06.020596"], ["updated_at", "2020-01-17 18:30:06.020596"]]
6915
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6916
+ Started GET "/api_endpoint" for 10.2.2.127 at 2020-01-17 13:30:06 -0500
6917
+ Processing by ApiController#api_endpoint as HTML
6918
+ Redirected to http://10.2.2.127:52562/nulogy_sso/login
6919
+ Filter chain halted as :authenticate_sso_user rendered or redirected
6920
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms | Allocations: 491)
6921
+ Started GET "/nulogy_sso/login" for 10.2.2.127 at 2020-01-17 13:30:06 -0500
6922
+ Processing by NulogySSO::AuthenticationController#login as HTML
6923
+ Redirected to http://localhost:1080/authorize?audience=mock_audience&client_id=mock_client_id&redirect_uri=mock_login_uri%3Forigin%3Dhttp%253A%252F%252F10.2.2.127%253A52562%252Fapi_endpoint&response_type=code&scope=openid+email
6924
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 468)
6925
+  (0.5ms) rollback transaction
6926
+  (0.1ms) begin transaction
6927
+  (0.1ms) rollback transaction
6928
+  (0.1ms) begin transaction
6929
+  (0.1ms) rollback transaction
6930
+  (0.3ms) begin transaction
6931
+  (0.1ms) rollback transaction
6932
+  (0.1ms) begin transaction
6933
+  (0.2ms) rollback transaction
6934
+  (0.1ms) begin transaction
6935
+  (0.1ms) rollback transaction
data/spec/examples.txt CHANGED
@@ -1,20 +1,24 @@
1
- example_id | status | run_time |
2
- --------------------------------------------------------------------- | ------ | --------------- |
3
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:1] | passed | 0.6569 seconds |
4
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:2] | passed | 0.68213 seconds |
5
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:3] | passed | 2.82 seconds |
6
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:4] | failed | 4.37 seconds |
7
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:1] | passed | 1 second |
8
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:2] | passed | 1.23 seconds |
9
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:3] | passed | 0.86417 seconds |
10
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:3:1] | passed | 0.87802 seconds |
11
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:3:2] | passed | 1.08 seconds |
12
- ./spec/features/nulogy_sso/sso_login_spec.rb[1:3:3] | passed | 1.04 seconds |
13
- ./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:1:1] | passed | 0.0752 seconds |
14
- ./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:1:2:1] | passed | 0.12336 seconds |
15
- ./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:1:2:2] | passed | 0.0204 seconds |
16
- ./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:1:3:1] | passed | 0.02264 seconds |
17
- ./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:2:1] | passed | 0.01989 seconds |
18
- ./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:2:2] | passed | 0.02321 seconds |
19
- ./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:2:3] | passed | 0.00259 seconds |
20
- ./spec/integration/services/nulogy_sso/authenticator_spec.rb[1:2:4] | passed | 0.02832 seconds |
1
+ example_id | status | run_time |
2
+ ---------------------------------------------------------------- | ------ | --------------- |
3
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:1] | passed | 2.75 seconds |
4
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:2] | passed | 0.87115 seconds |
5
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:1:3] | passed | 0.74032 seconds |
6
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:1] | passed | 0.74025 seconds |
7
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:2] | passed | 1.09 seconds |
8
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:2:3] | passed | 0.81793 seconds |
9
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:3:1] | passed | 0.92833 seconds |
10
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:3:2] | passed | 1.06 seconds |
11
+ ./spec/features/nulogy_sso/sso_login_spec.rb[1:3:3] | passed | 0.86027 seconds |
12
+ ./spec/unit/services/nulogy_sso/authenticator_spec.rb[1:1:1] | passed | 0.00576 seconds |
13
+ ./spec/unit/services/nulogy_sso/authenticator_spec.rb[1:1:2:1] | passed | 0.0191 seconds |
14
+ ./spec/unit/services/nulogy_sso/authenticator_spec.rb[1:1:2:2] | passed | 0.01515 seconds |
15
+ ./spec/unit/services/nulogy_sso/authenticator_spec.rb[1:1:3:1] | passed | 0.01469 seconds |
16
+ ./spec/unit/services/nulogy_sso/authenticator_spec.rb[1:2:1] | passed | 0.04118 seconds |
17
+ ./spec/unit/services/nulogy_sso/authenticator_spec.rb[1:2:2] | passed | 0.01448 seconds |
18
+ ./spec/unit/services/nulogy_sso/authenticator_spec.rb[1:2:3] | passed | 0.00149 seconds |
19
+ ./spec/unit/services/nulogy_sso/authenticator_spec.rb[1:2:4] | passed | 0.01547 seconds |
20
+ ./spec/unit/services/nulogy_sso/cookie_token_store_spec.rb[1:1] | passed | 0.02958 seconds |
21
+ ./spec/unit/services/nulogy_sso/cookie_token_store_spec.rb[1:2] | passed | 0.00423 seconds |
22
+ ./spec/unit/services/nulogy_sso/cookie_token_store_spec.rb[1:3] | passed | 0.00144 seconds |
23
+ ./spec/unit/services/nulogy_sso/origin_redirector_spec.rb[1:1:1] | passed | 0.00155 seconds |
24
+ ./spec/unit/services/nulogy_sso/origin_redirector_spec.rb[1:1:2] | passed | 0.00188 seconds |
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NulogySSO
4
+ RSpec.describe OriginRedirector do
5
+ let(:mock_login_uri) { NulogySSO::sso_config.login_uri }
6
+
7
+ describe "#authentication_redirect_uri" do
8
+ it "appends the url escaped origin to the redirect uri" do
9
+ previous_url = "https://example.com/path?foo=bar&specialParam%5Babc%5D=1"
10
+
11
+ result = subject.authentication_redirect_uri(previous_url)
12
+
13
+ expect(result).to eq("#{mock_login_uri}?origin=https%3A%2F%2Fexample.com%2Fpath%3Ffoo%3Dbar%26specialParam%255Babc%255D%3D1")
14
+ end
15
+
16
+ it "omits the origin when the previous uri is missing" do
17
+ result = subject.authentication_redirect_uri(nil)
18
+
19
+ expect(result).to eq(mock_login_uri)
20
+ end
21
+ end
22
+ end
23
+ end
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: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nulogy Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-16 00:00:00.000000000 Z
11
+ date: 2020-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: auth0
@@ -154,6 +154,7 @@ files:
154
154
  - app/controllers/nulogy_sso/authentication_controller.rb
155
155
  - app/services/nulogy_sso/authenticator.rb
156
156
  - app/services/nulogy_sso/cookie_token_store.rb
157
+ - app/services/nulogy_sso/origin_redirector.rb
157
158
  - config/initializers/inflections.rb
158
159
  - config/routes.rb
159
160
  - lib/nulogy_sso.rb
@@ -314,11 +315,12 @@ files:
314
315
  - spec/examples.txt
315
316
  - spec/feature_spec_helper.rb
316
317
  - spec/features/nulogy_sso/sso_login_spec.rb
317
- - spec/integration/services/nulogy_sso/authenticator_spec.rb
318
- - spec/integration/services/nulogy_sso/cookie_token_store_spec.rb
319
318
  - spec/rails_helper.rb
320
319
  - spec/spec_helper.rb
321
320
  - spec/support/mock_auth0_verifier.rb
321
+ - spec/unit/services/nulogy_sso/authenticator_spec.rb
322
+ - spec/unit/services/nulogy_sso/cookie_token_store_spec.rb
323
+ - spec/unit/services/nulogy_sso/origin_redirector_spec.rb
322
324
  homepage: https://nulogy.com
323
325
  licenses: []
324
326
  metadata: {}
@@ -337,12 +339,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
339
  - !ruby/object:Gem::Version
338
340
  version: '0'
339
341
  requirements: []
340
- rubygems_version: 3.0.4
342
+ rubygems_version: 3.0.6
341
343
  signing_key:
342
344
  specification_version: 4
343
345
  summary: Rails Engine For Nulogy's Auth Integration
344
346
  test_files:
345
347
  - spec/spec_helper.rb
348
+ - spec/unit/services/nulogy_sso/origin_redirector_spec.rb
349
+ - spec/unit/services/nulogy_sso/authenticator_spec.rb
350
+ - spec/unit/services/nulogy_sso/cookie_token_store_spec.rb
346
351
  - spec/dummy/app/models/application_record.rb
347
352
  - spec/dummy/app/models/user.rb
348
353
  - spec/dummy/app/jobs/application_job.rb
@@ -491,8 +496,6 @@ test_files:
491
496
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/1c/1cSa1S_Ik-wQeXi-Pb1sJX4_CC_Gu6CJ6THxM2ZxOTQ.cache
492
497
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/qj/qjq5Ug3S2i5pydfGSIfUa7Y0s8s0FwqXzt0kkFijToI.cache
493
498
  - spec/examples.txt
494
- - spec/integration/services/nulogy_sso/authenticator_spec.rb
495
- - spec/integration/services/nulogy_sso/cookie_token_store_spec.rb
496
499
  - spec/features/nulogy_sso/sso_login_spec.rb
497
500
  - spec/support/mock_auth0_verifier.rb
498
501
  - spec/feature_spec_helper.rb