usps-jwt_auth 0.0.1 → 0.0.3

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
  SHA256:
3
- metadata.gz: 13fa5947571c35b0d6cea5c6236bb61048f3977dd6c008a0c9a04887f458a2e6
4
- data.tar.gz: 48572594ff31f88c6f9043c0856b49b9a3b2bcf9faaa380d2dd5ee40561cb614
3
+ metadata.gz: b65b209e15ee09965e36779529c6918fcc07ea41924a30fa59d531bbc663e1ef
4
+ data.tar.gz: 684420e4af620fa6b65e0239e04a30ae46d6a55d26184ffc2f754a051c2dbd1b
5
5
  SHA512:
6
- metadata.gz: a8777d6b9c4c146e327aba4eb179d500168b620d3f811b6f76fa23eddace6f3eabb1ce2926158ecd1729145c19025f5579f27a874446853551a1510fbaf37703
7
- data.tar.gz: 5c436aabb4889f0ef6cd5cc0601b0ec00e7ce434fb373a7e7977c819fd8769ea90d582137bdd10b0b0fb42c6f41d6905fb3f3aa9eede62fe0f8ab2aebe206564
6
+ metadata.gz: 306c16961cdd3e107eda7433c49c8fefba01713554039640ad1494097a67ef85bf6e5d189fa96525214fcb36106a567051be2f6947bac1237ecd248a1764de12
7
+ data.tar.gz: 348f006bb36ce7ab7ab452fa5e0bf41fed23a4cb66a66274e9917ebd7381b38805d72638da08d7865a229069446f0d7af569764ed7175b476a9b42653838b556
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # USPS JWT Authentication
2
2
 
3
+ [![Gem Version](https://img.shields.io/gem/v/usps-jwt_auth)](https://rubygems.org/gems/usps-jwt_auth)
4
+
3
5
  ## Installation
4
6
 
5
7
  ```sh
@@ -5,8 +5,6 @@ module Usps
5
5
  # Encode data as a JWT
6
6
  #
7
7
  class Encode
8
- JwtAuth.config.key_size
9
-
10
8
  def self.encode(data, expiration_time: 15 * 60, audience: [], issuer: nil)
11
9
  new(expiration_time: expiration_time, audience: audience, issuer: issuer).encode(data)
12
10
  end
@@ -73,7 +71,7 @@ module Usps
73
71
  end
74
72
 
75
73
  def generate_private_key
76
- OpenSSL::PKey::RSA.generate(KEY_SIZE)
74
+ OpenSSL::PKey::RSA.generate(JwtAuth.configuration.key_size)
77
75
  end
78
76
  end
79
77
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module JwtAuth
5
- VERSION = '0.0.1'
5
+ VERSION = '0.0.3'
6
6
  end
7
7
  end
data/lib/usps/jwt_auth.rb CHANGED
@@ -8,7 +8,8 @@ require_relative 'jwt_auth/decode'
8
8
  require_relative 'jwt_auth/concern'
9
9
 
10
10
  module Usps
11
- # DOC COMMENT
11
+ # Unified configuration for handling JWT Authentication
12
+ #
12
13
  module JwtAuth
13
14
  class << self
14
15
  def configuration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-jwt_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander