doorkeeper-openid_connect 1.8.9 → 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: 4be7fb9d22f08874e5c2a9787b117bf7aa242d7025cd82b6a0a25a87f0a9b884
4
- data.tar.gz: 98414bc85490c8d30a1a9af2e9afade375798e6e805353c04b6f73813beae3e0
3
+ metadata.gz: 0b2e3bd81212734cc753c11b4b98863ad76daacd75f75ce9a7c2aabcde53eee7
4
+ data.tar.gz: 3b5f87b263c4d7d722b0385617b6f8670d5e1635286b30d29aea64f63417c6b7
5
5
  SHA512:
6
- metadata.gz: 8d565610a8ae44d7476a74c10687023e7469733cc7be62181ba0a7b60186e1dc48eb0d56b9dd38bba31ce49399d1e9856dd72228ac49f143874df885a2142a9b
7
- data.tar.gz: 4492366ef87fa2ed9bd256efa44faf68d07a33336892e5cc44e30c199b1953fe4da591eab9359bc0274175cf23ece590b02597dc6c0265f205fce430699f020f
6
+ metadata.gz: 6e98a44c4aafc01d4fec2f7d52a084c005e2c46ac9258b14dd4f34394979876b1a4db35d713979474fb24f3dba255d66101908159df299e96a8412a09500424f
7
+ data.tar.gz: cd0424f4ce3ba9bbc127da4b0dfc669f700b6653345d0031851b5948495a267e94d20417d4a3acb242525148142a0222109b67587e33b3ef87301fa44d9c4556
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
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
+
5
10
  ## v1.8.9 (2024-05-07)
6
11
 
7
12
  - Support Doorkeeper 5.7
@@ -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.9'
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.9
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-05-07 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.8'
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.8'
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
  - - ">="