github-authentication 1.3.2 → 1.3.4
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/Gemfile.lock +1 -1
- data/lib/github_authentication/generator/app.rb +4 -3
- data/lib/github_authentication/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: ba0d4206f9bcaa96756dd3817703472bdc47ea61c0c091a2d2b859bbfd992400
|
|
4
|
+
data.tar.gz: 8e78e70468b9a325c2e4cf175c6468cfffe0ff25d8548f8f7da3cd38f947acb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59310f4f541a6bc63916d833638a0ea9445145a2637d3cf0d6c25c3b914cf7815507c70ccdb2faa389c3e16e1e3dde1d73738421c38b8e02d95964d6181889c1
|
|
7
|
+
data.tar.gz: 268d665d20955c79d2d21ca973900477288e6baeeb282587c9966d60668c91b505de4f76bbcf45107e2d30afdc27b4dbc21b30bb28302b00d248fffce6a64e72
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -35,11 +35,12 @@ module GithubAuthentication
|
|
|
35
35
|
private
|
|
36
36
|
|
|
37
37
|
def jwt
|
|
38
|
+
iat = Time.now.utc.to_i - 60
|
|
38
39
|
payload = {
|
|
39
|
-
# issued at time
|
|
40
|
-
iat:
|
|
40
|
+
# issued at time, 60 seconds in the past to allow for clock drift
|
|
41
|
+
iat: iat,
|
|
41
42
|
# JWT expiration time (10 minute maximum)
|
|
42
|
-
exp:
|
|
43
|
+
exp: iat + (10 * 60),
|
|
43
44
|
# GitHub App's identifier
|
|
44
45
|
iss: app_id,
|
|
45
46
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github-authentication
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Frederik Dudzik
|
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
195
195
|
- !ruby/object:Gem::Version
|
|
196
196
|
version: '0'
|
|
197
197
|
requirements: []
|
|
198
|
-
rubygems_version: 4.0.
|
|
198
|
+
rubygems_version: 4.0.8
|
|
199
199
|
specification_version: 4
|
|
200
200
|
summary: GitHub Authetication
|
|
201
201
|
test_files: []
|