jwt_sessions 3.2.2 → 3.2.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: ab27c010b7b580843d1e42915dc03d0485d8ea41ec50943d45b982dbb42270d2
4
- data.tar.gz: 3a5dc602c627d3f7a6afb286cdf35353ecce6e6e584101b63251b6e263fe9fe1
3
+ metadata.gz: 022c03bac5aaaf4a0f238345ce73277b027edf1df4f634a1f3ccfe804c57ad32
4
+ data.tar.gz: '0082926879d500097e41b7c796ef082ca8ef5d8a1a6aae6a6ea99a18c636bae0'
5
5
  SHA512:
6
- metadata.gz: 834dc98d69fa6f2b56dc5ea6a1bf8f4e24eff2064fb06354468f74be5038033f44e9aec74fc6ba817cc851d03cc1844758004072644f2db13069d8b2e7c16461
7
- data.tar.gz: 0d1057f364b8cdf824f1b40d6f929afb05889d6f1e4779120b98ad80dada0a3b686750a6b82b32a4bc0620c56a0589c0162f703b736352556b8ef3927aef3d6b
6
+ metadata.gz: c334bcf7670a89711fad701bcc6f2a3ce46d8273e2ea8c516cc680a153978901cf395a788596a1f5becf54675ae1552eb3d553cfa1e58174f162cc6ae362c673
7
+ data.tar.gz: 76593854f622fac7c417b9857040de0afa9881bdad19650d08921736b4679801ec696dbe3eb2331a30986a2fac5f02033678f4bf9bc6c68492625a8d2e58b403
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.2.3 (Septemper 18, 2024)
2
+
3
+ Support:
4
+
5
+ - add support for `jwt` to 2.9 version
6
+
1
7
  ## 3.2.2 (March 5, 2024)
2
8
 
3
9
  Support:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JWTSessions
4
- VERSION = "3.2.2"
4
+ VERSION = "3.2.3"
5
5
  end
data/lib/jwt_sessions.rb CHANGED
@@ -68,7 +68,8 @@ module JWTSessions
68
68
  end
69
69
 
70
70
  def algorithm=(algo)
71
- raise Errors::Malconfigured, "algorithm #{algo} is not supported" unless supported_algos.include?(algo)
71
+ raise Errors::Malconfigured, "algorithm #{algo} is not supported" unless JWT::JWA.resolve(algo)
72
+
72
73
  @algorithm = algo
73
74
  end
74
75
 
@@ -151,11 +152,4 @@ module JWTSessions
151
152
  def cookie_by(token_type)
152
153
  send("#{token_type}_cookie")
153
154
  end
154
-
155
- private
156
-
157
- def supported_algos
158
- algos = JWT::JWA::ALGOS - [JWT::JWA::Unsupported]
159
- algos.map { |algo| algo::SUPPORTED }.flatten + [NONE]
160
- end
161
155
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt_sessions
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julija Alieckaja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-05 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.8'
19
+ version: '2.9'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '3'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '2.8'
29
+ version: '2.9'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3'