pusher-platform 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pusher-platform/app.rb +1 -1
- data/lib/pusher-platform/authenticator.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb169e12b4e0f1f526790f8b67594f4383d0ebdf
|
4
|
+
data.tar.gz: d032e28d45af802b0b622736ecc449122cad0ce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a009f69e87c22cbbd489459bc5c9f57b66a473c2d4689641c2c13de2fef57c552eb590a2d700ff7672fcaf6ea011f45eaa62f640d441579898582e78e4eb9e62
|
7
|
+
data.tar.gz: 3187448e10569e991806a306289149d16d4848cd660821c9b16d6446f51808303814fccde780237710f3a59d6c6dfc4590d9cce92cf902404b43de957b3c7743
|
data/lib/pusher-platform/app.rb
CHANGED
@@ -42,7 +42,7 @@ module Pusher
|
|
42
42
|
def authenticate_with_refresh_token(old_refresh_jwt, options)
|
43
43
|
old_refresh_token = begin
|
44
44
|
JWT.decode(old_refresh_jwt, @app_key_secret, true, {
|
45
|
-
iss:
|
45
|
+
iss: @app_key_id,
|
46
46
|
verify_iss: true,
|
47
47
|
leeway: 30,
|
48
48
|
}).first
|
@@ -103,7 +103,7 @@ module Pusher
|
|
103
103
|
|
104
104
|
claims = {
|
105
105
|
app: @app_id,
|
106
|
-
iss:
|
106
|
+
iss: @app_key_id,
|
107
107
|
iat: now - TOKEN_LEEWAY,
|
108
108
|
exp: now + TOKEN_EXPIRY + TOKEN_LEEWAY,
|
109
109
|
sub: options[:user_id],
|
@@ -117,7 +117,7 @@ module Pusher
|
|
117
117
|
|
118
118
|
claims = {
|
119
119
|
app: @app_id,
|
120
|
-
iss:
|
120
|
+
iss: @app_key_id,
|
121
121
|
iat: now - TOKEN_LEEWAY,
|
122
122
|
refresh: true,
|
123
123
|
sub: options[:user_id],
|