ucb_rails_session_timeout 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f5af22a3a60aca153614870fce828a6d6fcfb3533877232cd84e40adf313557
|
|
4
|
+
data.tar.gz: bfe800d8371c2e2e750829ec91a534924371e166c2576b8020df6de3ce04265d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 103abf90710b22ca8f3d375f43ab10129d80d43cf3fc267d1eeaf461cc1abb9e803ced5e433f7062742cf8fe69871d687e9b84305d292a0154b7afededee66c4
|
|
7
|
+
data.tar.gz: 26a7afadb6524039064f9ab144daeeb27e15d49ca1a7b66f319e7d95c5b776af060eee015ceb33b8608999275cfb12283fe53bc2627a891c3195de4faea065bf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
## 1.0.2 - 2025-12-10
|
|
2
|
+
- Fixes double authentication issue when using CAS/CalNet: replaced reset_session with session.delete(:last_active_at) so session[:omniauth_provider] is preserved for proper CAS logout redirect while preventing redirect loops
|
|
3
|
+
|
|
1
4
|
## 1.0.1 - 2025-11-13
|
|
2
|
-
- Fixes issues where server runs in Pacific time zone and client could run in other zones leading to premature timeout
|
|
5
|
+
- Fixes issues where server runs in Pacific time zone and client could run in other zones leading to premature timeout
|
|
3
6
|
- Fixes issues with assets not being automatically discoverable by consuming app
|
|
4
7
|
|
|
5
8
|
## [1.0.0] - 2025-02-27
|
|
@@ -26,7 +26,10 @@ module UcbRailsSessionTimeout
|
|
|
26
26
|
return if session[:last_active_at].blank?
|
|
27
27
|
time_since_last_activity = Time.current - Time.zone.parse(session[:last_active_at])
|
|
28
28
|
if time_since_last_activity > (UcbRailsSessionTimeout.configuration.timeout_length + GRACE_PERIOD)
|
|
29
|
-
|
|
29
|
+
# Clear the activity timestamp to prevent redirect loops, but preserve
|
|
30
|
+
# :omniauth_provider for proper CAS logout redirect. The full reset_session
|
|
31
|
+
# happens in /logout after reading the provider.
|
|
32
|
+
session.delete(:last_active_at)
|
|
30
33
|
handle_session_timeout()
|
|
31
34
|
end
|
|
32
35
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ucb_rails_session_timeout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Darin Wilson
|
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
81
|
version: '0'
|
|
82
82
|
requirements: []
|
|
83
|
-
rubygems_version: 3.6.
|
|
83
|
+
rubygems_version: 3.6.7
|
|
84
84
|
specification_version: 4
|
|
85
85
|
summary: Auto-logout functionality for Rails applications
|
|
86
86
|
test_files: []
|