doorkeeper-openid_connect 1.8.8 → 1.8.10

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: 20bbba2da143b40a71b69cdda7e8c7a11db839310d79106ae9605fa88df670a0
4
- data.tar.gz: a3ba8686b1ee4985ff1a9162e0ec460a3a35115641bf83ee346202272a8b8d27
3
+ metadata.gz: 0b2e3bd81212734cc753c11b4b98863ad76daacd75f75ce9a7c2aabcde53eee7
4
+ data.tar.gz: 3b5f87b263c4d7d722b0385617b6f8670d5e1635286b30d29aea64f63417c6b7
5
5
  SHA512:
6
- metadata.gz: d59cb990b4c016adaddd0e1531e9576d670438d9db5977eef095cad5ec6f11630326691c0206a98eb46d34e90d5c1fd16208d979fed9cee8bd0b11350cb0faf5
7
- data.tar.gz: 62cc60eb58db229e6fc1af3663dcaf3279f35a4b702ac6562c325df07fe7642b864a0aec7091743d7446444b06a531ea762837721641a1108259a947d30b537d
6
+ metadata.gz: 6e98a44c4aafc01d4fec2f7d52a084c005e2c46ac9258b14dd4f34394979876b1a4db35d713979474fb24f3dba255d66101908159df299e96a8412a09500424f
7
+ data.tar.gz: cd0424f4ce3ba9bbc127da4b0dfc669f700b6653345d0031851b5948495a267e94d20417d4a3acb242525148142a0222109b67587e33b3ef87301fa44d9c4556
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  - [#PR ID] Add your changelog entry here.
4
4
 
5
+ ## v1.8.10 (2024-12-29)
6
+
7
+ - [#215] Drop support for Ruby 2.7, 3.0 and Rails 6.
8
+ - [#209] Configuration per IdToken expiration (thanks to @martinezcoder)
9
+
10
+ ## v1.8.9 (2024-05-07)
11
+
12
+ - Support Doorkeeper 5.7
13
+
5
14
  ## v1.8.8 (2024-02-26)
6
15
 
7
16
  - [#201] Add back typ=JWT to header
@@ -7,11 +7,12 @@ module Doorkeeper
7
7
 
8
8
  attr_reader :nonce
9
9
 
10
- def initialize(access_token, nonce = nil)
10
+ def initialize(access_token, nonce = nil, expires_in = Doorkeeper::OpenidConnect.configuration.expiration)
11
11
  @access_token = access_token
12
12
  @nonce = nonce
13
13
  @resource_owner = Doorkeeper::OpenidConnect.configuration.resource_owner_from_access_token.call(access_token)
14
14
  @issued_at = Time.zone.now
15
+ @expires_in = expires_in
15
16
  end
16
17
 
17
18
  def claims
@@ -57,7 +58,7 @@ module Doorkeeper
57
58
  end
58
59
 
59
60
  def expiration
60
- (@issued_at.utc + Doorkeeper::OpenidConnect.configuration.expiration).to_i
61
+ (@issued_at.utc + @expires_in).to_i
61
62
  end
62
63
 
63
64
  def issued_at
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Doorkeeper
4
4
  module OpenidConnect
5
- VERSION = '1.8.8'
5
+ VERSION = '1.8.10'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper-openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.8
4
+ version: 1.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Dengler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-02-26 00:00:00.000000000 Z
13
+ date: 2024-11-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: doorkeeper
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '5.5'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '5.7'
24
+ version: '5.9'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: '5.5'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '5.7'
34
+ version: '5.9'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: jwt
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -46,6 +46,20 @@ dependencies:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '2.5'
49
+ - !ruby/object:Gem::Dependency
50
+ name: bigdecimal
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
49
63
  - !ruby/object:Gem::Dependency
50
64
  name: conventional-changelog
51
65
  requirement: !ruby/object:Gem::Requirement
@@ -60,6 +74,20 @@ dependencies:
60
74
  - - "~>"
61
75
  - !ruby/object:Gem::Version
62
76
  version: '1.2'
77
+ - !ruby/object:Gem::Dependency
78
+ name: drb
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ type: :development
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
63
91
  - !ruby/object:Gem::Dependency
64
92
  name: factory_bot
65
93
  requirement: !ruby/object:Gem::Requirement
@@ -74,6 +102,20 @@ dependencies:
74
102
  - - ">="
75
103
  - !ruby/object:Gem::Version
76
104
  version: '0'
105
+ - !ruby/object:Gem::Dependency
106
+ name: mutex_m
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
77
119
  - !ruby/object:Gem::Dependency
78
120
  name: pry-byebug
79
121
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +221,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
221
  requirements:
180
222
  - - ">="
181
223
  - !ruby/object:Gem::Version
182
- version: '2.7'
224
+ version: '3.1'
183
225
  required_rubygems_version: !ruby/object:Gem::Requirement
184
226
  requirements:
185
227
  - - ">="