hubssolib 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/hubssolib.gemspec +1 -1
- data/lib/hub_sso_lib.rb +20 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b434d369e25dc81a74c87385df70cade7dfd40c47abfae2c05732b471b6e1f5e
|
4
|
+
data.tar.gz: 41d2303f125f52a5f957f851f1a8d5ae7067ab8233fcfa5359640f88e3bceb06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc3e04c0b1e75eecf504c61d19834151179666b7e601d974cbf74509f1ab1197bbf74cf347c63b4e1aef61d744bceb96621b7fccb8017654f6d4266eea21246
|
7
|
+
data.tar.gz: ba3e8e1985dd91185c6049e25212dcade4dfe064faf31c4e1c1d013ac8851984f3b48ee47df5de16d097863ea36c9165c93790e05703f8fa640908e7260c3b4b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 3.3.0, 16-Feb-2025
|
2
|
+
|
3
|
+
Sentry support, for use by the DRb server. If you use Sentry, define your account's `SENTRY_DSN` in the environment where the DRb server runs and exceptions will be reported.
|
4
|
+
|
1
5
|
## 3.2.1, 16-Feb-2025
|
2
6
|
|
3
7
|
The conditional login return-via-referrer mechanism never really worked, so instead have the login status indicator link generate a return-to URL in the query string instead and forward that, if present, in preference.
|
data/hubssolib.gemspec
CHANGED
data/lib/hub_sso_lib.rb
CHANGED
@@ -412,6 +412,10 @@ module HubSsoLib
|
|
412
412
|
@session_user = HubSsoLib::User.new
|
413
413
|
@session_key_rotation = nil
|
414
414
|
@session_ip = nil
|
415
|
+
|
416
|
+
rescue => e
|
417
|
+
Sentry.capture_exception(e) if defined?(Sentry) && Sentry.respond_to?(:capture_exception)
|
418
|
+
raise
|
415
419
|
end
|
416
420
|
end # Session class
|
417
421
|
|
@@ -433,6 +437,10 @@ module HubSsoLib
|
|
433
437
|
@hub_sessions = {}
|
434
438
|
|
435
439
|
puts "Session factory: Awaken" unless @hub_be_quiet
|
440
|
+
|
441
|
+
rescue => e
|
442
|
+
Sentry.capture_exception(e) if defined?(Sentry) && Sentry.respond_to?(:capture_exception)
|
443
|
+
raise
|
436
444
|
end
|
437
445
|
|
438
446
|
# Get a session using a given key (a UUID). Generates a new session if
|
@@ -481,10 +489,18 @@ module HubSsoLib
|
|
481
489
|
|
482
490
|
hub_session.session_key_rotation = new_key
|
483
491
|
return hub_session
|
492
|
+
|
493
|
+
rescue => e
|
494
|
+
Sentry.capture_exception(e) if defined?(Sentry) && Sentry.respond_to?(:capture_exception)
|
495
|
+
raise
|
484
496
|
end
|
485
497
|
|
486
498
|
def enumerate_hub_sessions()
|
487
499
|
@hub_sessions
|
500
|
+
|
501
|
+
rescue => e
|
502
|
+
Sentry.capture_exception(e) if defined?(Sentry) && Sentry.respond_to?(:capture_exception)
|
503
|
+
raise
|
488
504
|
end
|
489
505
|
end
|
490
506
|
|
@@ -511,6 +527,10 @@ module HubSsoLib
|
|
511
527
|
@@hub_session_factory = HubSsoLib::SessionFactory.new
|
512
528
|
DRb.start_service(HUB_CONNECTION_URI, @@hub_session_factory, { :safe_level => 1 })
|
513
529
|
DRb.thread.join
|
530
|
+
|
531
|
+
rescue => e
|
532
|
+
Sentry.capture_exception(e) if defined?(Sentry) && Sentry.respond_to?(:capture_exception)
|
533
|
+
raise
|
514
534
|
end
|
515
535
|
end # Server module
|
516
536
|
|