token_authority 0.3.0 → 0.3.1
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: 30eb5cd2101ab6cc044d31d5dc15396ffef4c9efd955960c6dec70e57e613583
|
|
4
|
+
data.tar.gz: 6a24f7df903407dff09561e1ece8495c803dc6fa7175f0d3ff3641d8120ddc8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62f5c24dd950f5956817ca5531cd695b0ab3b1a2785e67c828c3ca116a2254ff25b376abf5db01cf9931da8bfce13c9869dbff332c8a8955f30009ef5e296a41
|
|
7
|
+
data.tar.gz: be5cd3a31b883f6bf7bc0b80a1d2d1d87bcfaa1dc4c8469d3c36b874aeac2a471cf0286a0c8c35e11b5a4fec0bb8b749a98acf9fc3709a4c26253bd0728637ec
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.3.1] - 2025-01-25
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Do not expire OAuth sessions when access tokens expire; this was preventing session refresh flow from completing successfully in some cases.
|
|
8
|
+
|
|
3
9
|
## [0.3.0] - 2025-01-24
|
|
4
10
|
|
|
5
11
|
### Added
|
|
@@ -69,8 +75,9 @@
|
|
|
69
75
|
|
|
70
76
|
- Initial release
|
|
71
77
|
|
|
72
|
-
[Unreleased]: https://github.com/dickdavis/token_authority/compare/v0.3.
|
|
73
|
-
[0.
|
|
78
|
+
[Unreleased]: https://github.com/dickdavis/token_authority/compare/v0.3.1...HEAD
|
|
79
|
+
[0.3.1]: https://github.com/dickdavis/token_authority/compare/v0.3.0...v0.3.1
|
|
80
|
+
[0.3.0]: https://github.com/dickdavis/token_authority/compare/v0.2.1...v0.3.0
|
|
74
81
|
[0.2.1]: https://github.com/dickdavis/token_authority/compare/v0.2.0...v0.2.1
|
|
75
82
|
[0.2.0]: https://github.com/dickdavis/token_authority/compare/v0.1.0...v0.2.0
|
|
76
83
|
[0.1.0]: https://github.com/dickdavis/token_authority/releases/tag/v0.1.0
|
|
@@ -33,6 +33,8 @@ module TokenAuthority
|
|
|
33
33
|
include ActiveModel::Validations
|
|
34
34
|
include ActiveModel::Validations::Callbacks
|
|
35
35
|
|
|
36
|
+
class_attribute :expire_session_on_expiration, default: true
|
|
37
|
+
|
|
36
38
|
attr_accessor :aud, :exp, :iat, :iss, :jti
|
|
37
39
|
|
|
38
40
|
validates :jti, presence: true
|
|
@@ -80,6 +82,7 @@ module TokenAuthority
|
|
|
80
82
|
|
|
81
83
|
def errors_for_expirable_claims?
|
|
82
84
|
return false if skip_token_authority_session_update?
|
|
85
|
+
return false unless self.class.expire_session_on_expiration
|
|
83
86
|
|
|
84
87
|
errors.attribute_names.intersect?(EXPIRABLE_CLAIMS)
|
|
85
88
|
end
|