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 +4 -4
- data/lib/vonage-jwt/jwt.rb +1 -1
- data/lib/vonage-jwt/jwt_builder.rb +1 -1
- data/lib/vonage-jwt/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: 4e64f9df01478c092cf5f950c5fb61d56227a558cba788a693cffad050ed5a66
|
4
|
+
data.tar.gz: f72bd42ca910f5f6df52781eeb3d8d1ca658c261833bbe5ab68b3ef8f2571014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0fb624c08c1c06db4def2a97b50a10add0392f89f6279de7c5b70c987881f510720202b6b84a3d9365a61b32f43fb3783ed30aa95a31a5adc7d1bf08dcf5444
|
7
|
+
data.tar.gz: faa02b4e295b2a850191a956dbbe526c7feb498e3a51cd4ada6d9d66823036846e418092b06bf020e8cb7474bfa1f886a4fa47b30e2e746276ce49f62a9b6c43
|
data/lib/vonage-jwt/jwt.rb
CHANGED
@@ -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,
|
57
|
+
@subject = params.fetch(:subject, nil)
|
58
58
|
@additional_claims = set_additional_claims(params)
|
59
59
|
@jwt = Vonage::JWT.new(generator: self)
|
60
60
|
|
data/lib/vonage-jwt/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2023-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|