vonage-jwt 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e83f93abf55574d8da1dc73a55e89a17597275911927a9200b3e51be71655e3f
4
- data.tar.gz: 4772db0876bc1129f2f038d1ee3d235852e763a8b9f7bf457acdb823acefafc7
3
+ metadata.gz: 4e64f9df01478c092cf5f950c5fb61d56227a558cba788a693cffad050ed5a66
4
+ data.tar.gz: f72bd42ca910f5f6df52781eeb3d8d1ca658c261833bbe5ab68b3ef8f2571014
5
5
  SHA512:
6
- metadata.gz: ee524f8242fe11c48d7ca420bf7d57115f88c6ff0fad19c1b4bd85163ca132b6b7b0e147138e16977ed5ded7c0b89b10291b805f2627e75fcef3e92150ae002c
7
- data.tar.gz: e5f64c2947797813e9c450d71f7a9a16fed6f22c515521f026607de0ce7d34807f0e933674c8e035b3301f57c86f023e16a4ae5f92c179bbbca6441cf70c2185
6
+ metadata.gz: e0fb624c08c1c06db4def2a97b50a10add0392f89f6279de7c5b70c987881f510720202b6b84a3d9365a61b32f43fb3783ed30aa95a31a5adc7d1bf08dcf5444
7
+ data.tar.gz: faa02b4e295b2a850191a956dbbe526c7feb498e3a51cd4ada6d9d66823036846e418092b06bf020e8cb7474bfa1f886a4fa47b30e2e746276ce49f62a9b6c43
@@ -21,10 +21,10 @@ module Vonage
21
21
  iat: iat,
22
22
  jti: generator.jti,
23
23
  exp: generator.exp || iat + generator.ttl,
24
- sub: generator.subject,
25
24
  application_id: generator.application_id
26
25
  }
27
26
  hash.merge!(generator.paths) if generator.paths
27
+ hash.merge!(sub: generator.subject) if generator.subject
28
28
  hash.merge!(nbf: generator.nbf) if generator.nbf
29
29
  hash.merge!(generator.additional_claims) if !generator.additional_claims.empty?
30
30
  hash
@@ -54,7 +54,7 @@ module Vonage
54
54
  @exp = params.fetch(:exp, nil)
55
55
  @alg = params.fetch(:alg, 'RS256')
56
56
  @paths = params.fetch(:paths, nil)
57
- @subject = params.fetch(:subject, 'Subject')
57
+ @subject = params.fetch(:subject, nil)
58
58
  @additional_claims = set_additional_claims(params)
59
59
  @jwt = Vonage::JWT.new(generator: self)
60
60
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Vonage
4
4
  class JWT
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vonage-jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vonage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-28 00:00:00.000000000 Z
11
+ date: 2023-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt