pusher-platform 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: d95d9cc5e0f7c22f8ca7408c9486fb2b464c0572
4
- data.tar.gz: 6ea7d2d88d3242661f2a8d1bf4531034a979abaf
3
+ metadata.gz: cb169e12b4e0f1f526790f8b67594f4383d0ebdf
4
+ data.tar.gz: d032e28d45af802b0b622736ecc449122cad0ce7
5
5
  SHA512:
6
- metadata.gz: 78c889277b27b346069674ec5555ed3169fde818a39a3c925600eeeb704171e79d47a767bf5662dec3fdb867c220f17e9d5239232f7f71e557ef26ad5ce65227
7
- data.tar.gz: 53e074a29c83777a6d47dd346db179ecc68076eeca6da81a1e3cd0854a3dd639cc11f92104cfa0197d0f758fefaaab7927a2c0b6ef4611732808ff1a4f58baec
6
+ metadata.gz: a009f69e87c22cbbd489459bc5c9f57b66a473c2d4689641c2c13de2fef57c552eb590a2d700ff7672fcaf6ea011f45eaa62f640d441579898582e78e4eb9e62
7
+ data.tar.gz: 3187448e10569e991806a306289149d16d4848cd660821c9b16d6446f51808303814fccde780237710f3a59d6c6dfc4590d9cce92cf902404b43de957b3c7743
@@ -58,7 +58,7 @@ module Pusher
58
58
  now = Time.now.utc.to_i
59
59
  claims = {
60
60
  app: @app_id,
61
- iss: "keys/#{@app_key_id}",
61
+ iss: @app_key_id,
62
62
  su: true,
63
63
  iat: now - 30, # some leeway for the server
64
64
  exp: now + 60*5, # 5 minutes should be enough for a single request
@@ -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: "keys/#{@app_key_id}",
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: "keys/#{@app_key_id}",
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: "keys/#{@app_key_id}",
120
+ iss: @app_key_id,
121
121
  iat: now - TOKEN_LEEWAY,
122
122
  refresh: true,
123
123
  sub: options[:user_id],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher-platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pusher