usps-jwt_auth 0.0.3 → 0.0.5

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: b65b209e15ee09965e36779529c6918fcc07ea41924a30fa59d531bbc663e1ef
4
- data.tar.gz: 684420e4af620fa6b65e0239e04a30ae46d6a55d26184ffc2f754a051c2dbd1b
3
+ metadata.gz: a553a7ef58181dd582cc81341044826ffc1e97f16b2cd8e73658db8ff90b109b
4
+ data.tar.gz: 498a13e043fccfdd7172aae9e76ffa11a0e2ce3a71bf6cd50df216fd38864688
5
5
  SHA512:
6
- metadata.gz: 306c16961cdd3e107eda7433c49c8fefba01713554039640ad1494097a67ef85bf6e5d189fa96525214fcb36106a567051be2f6947bac1237ecd248a1764de12
7
- data.tar.gz: 348f006bb36ce7ab7ab452fa5e0bf41fed23a4cb66a66274e9917ebd7381b38805d72638da08d7865a229069446f0d7af569764ed7175b476a9b42653838b556
6
+ metadata.gz: 74598d478a7f607c8b94fb7b613be19a03346af57aefbd95f3555ee4630011fb7f3d0cb00b8fa33d5b1683357c60c50def5b90e9d31cf39ac3beab56ab101e42
7
+ data.tar.gz: 90316a9fface4a1489ee4dcde960d3780e0ed6a58e0af702eb76a3f88aee1efe3c486986636d9939af13f2d2714595d0f1c97a45117436cecc3786783c86b6cf
data/lib/railtie.rb ADDED
@@ -0,0 +1,14 @@
1
+ require 'rails'
2
+
3
+ module Usps
4
+ module JwtAuth
5
+ class Railtie < Rails::Railtie
6
+ railtie_name :usps_jwt_auth
7
+
8
+ rake_tasks do
9
+ path = File.expand_path(__dir__)
10
+ Dir.glob("#{path}/tasks/**/*.rake").each { |f| load f }
11
+ end
12
+ end
13
+ end
14
+ end
@@ -22,8 +22,7 @@ module Usps
22
22
  {
23
23
  issuer_base: 'usps:1',
24
24
  issuers: [],
25
- audience: nil,
26
- algorithm: 'RS512'
25
+ audience: nil
27
26
  }.merge(hash)
28
27
  )
29
28
  end
@@ -9,7 +9,7 @@ module Usps
9
9
  required_claims: %w[iss exp],
10
10
  verify_iss: true,
11
11
  verify_aud: true,
12
- algorithm: JwtAuth.configuration.jwt.algorithm
12
+ algorithm: 'RS512'
13
13
  }.freeze
14
14
 
15
15
  def self.decode(token, audience: [], issuer: nil)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module JwtAuth
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.5'
6
6
  end
7
7
  end
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.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
@@ -33,6 +33,7 @@ files:
33
33
  - ".ruby-version"
34
34
  - README.md
35
35
  - Rakefile
36
+ - lib/railtie.rb
36
37
  - lib/tasks/jwt_auth.rake
37
38
  - lib/usps/jwt_auth.rb
38
39
  - lib/usps/jwt_auth/concern.rb