github-app-auth 0.4.2 → 0.4.3

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: dd6c974c47b03e2bb0a05190dba174f12e9da3124a9ec4bea06a2e67cf18d22e
4
- data.tar.gz: a595bc45847eda0d03ac331a26aa428b6dc22dddb54b8d4921d8b732b985f89f
3
+ metadata.gz: 823d3686d171f1959625b6eee46a3f9a73bdd5071348537e2be23b498ea6dc51
4
+ data.tar.gz: 33afee72e612b013ae0ce0ecf9327e66482875549b1a5a5922dce2325fa40dc3
5
5
  SHA512:
6
- metadata.gz: 94e68a5b4c16113ee1ada2271897bfc59ee9151996535560752e78a6db5b58dd215a1ab9699030b04d81af5ee36e32763a31199beb6a3da5dd9133ea6e826dc9
7
- data.tar.gz: 88a291a1f4566bfd7ccda3346dd934f5a9c68cecbe32278637c9c3bd5bc783c792d2e3415e141564d1613ebc7095e78fc34cf47ca55db9ed459cd80a2593c416
6
+ metadata.gz: 798e3e0faff0fe7cc8ecfcc07a1634fcc4e91946a203b5f898c5e86f5413ebb700258c0c1b1b6a82a55ba014e8252d1baedfa3e4bd4fb9cfdc2871bc01000ff9
7
+ data.tar.gz: 7bf1628774d8f9548d742089c78d93d6781a9d84595257d8cb8615155dabedb4caee47f08b927061ca6dfabc5b3e3501d6fdb0b5784d176062976be5adf0e523
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.3
4
+ - adjust session start and end 10 seconds back from `now`
5
+
3
6
  ## 0.4.2
4
7
  - fixed inaccurate error message
5
8
 
@@ -21,12 +21,13 @@ module GitHub
21
21
  private_pem = app_private_key(options)
22
22
  private_key = OpenSSL::PKey::RSA.new(private_pem)
23
23
 
24
+ a_few_seconds_ago = Time.now.to_i - 10
24
25
  # Generate the JWT
25
26
  payload = {
26
- # issued at time, 60 seconds in the past to allow for clock drift
27
- iat: Time.now.to_i - 60,
27
+ # issued at time, a few seconds in the past to allow for clock drift
28
+ iat: a_few_seconds_ago,
28
29
  # JWT expiration time (10 minute maximum)
29
- exp: Time.now.to_i + (10 * 60),
30
+ exp: a_few_seconds_ago + (10 * 60),
30
31
  # GitHub App's identifier
31
32
  iss: app_id(options)
32
33
  }
@@ -3,7 +3,7 @@
3
3
  module GitHub
4
4
  module App
5
5
  module Auth
6
- VERSION = "0.4.2"
6
+ VERSION = "0.4.3"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-app-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Horton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-08 00:00:00.000000000 Z
11
+ date: 2026-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt