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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/github_app_auth/app.rb +4 -3
- data/lib/github_app_auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 823d3686d171f1959625b6eee46a3f9a73bdd5071348537e2be23b498ea6dc51
|
|
4
|
+
data.tar.gz: 33afee72e612b013ae0ce0ecf9327e66482875549b1a5a5922dce2325fa40dc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 798e3e0faff0fe7cc8ecfcc07a1634fcc4e91946a203b5f898c5e86f5413ebb700258c0c1b1b6a82a55ba014e8252d1baedfa3e4bd4fb9cfdc2871bc01000ff9
|
|
7
|
+
data.tar.gz: 7bf1628774d8f9548d742089c78d93d6781a9d84595257d8cb8615155dabedb4caee47f08b927061ca6dfabc5b3e3501d6fdb0b5784d176062976be5adf0e523
|
data/CHANGELOG.md
CHANGED
data/lib/github_app_auth/app.rb
CHANGED
|
@@ -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,
|
|
27
|
-
iat:
|
|
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:
|
|
30
|
+
exp: a_few_seconds_ago + (10 * 60),
|
|
30
31
|
# GitHub App's identifier
|
|
31
32
|
iss: app_id(options)
|
|
32
33
|
}
|
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.
|
|
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:
|
|
11
|
+
date: 2026-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|