soar_authentication_token 6.0.3 → 6.0.4

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: e4b22e47ef0fc292499818149ca73b92f062a769
4
- data.tar.gz: 0a43daf241dc77519824426919c0c31ea58b5c4c
3
+ metadata.gz: 0a9bd21d079e6dff10a2f29a8475340031993755
4
+ data.tar.gz: ca7092ef8359d576e33e28aed1a7aa0c0bdd8aad
5
5
  SHA512:
6
- metadata.gz: 6fd8d3fac6a93314d496019b87d65aa7ee8ddf4b318bf82498ffe4f4d802c8d8ee4cfe0025f572471d0d45fc94557cfd61f9fd049a3b12929f869151889fe008
7
- data.tar.gz: 01255e3020a2f009b01c3aa6f6a5fa1d9e2d05cf9272d97c86ff81f73d17c46216292346a2b530a4a1b33bf73bf44afb8c0194a9fc9af252727d6bd70ea36f95
6
+ metadata.gz: 77ce9d933a3e34cfce61d0b532fcfde4f1a933b4a412721c707447eeb0f855b6ea0a303f6e00ae063d043b6b865874bd0bd64cef852c5f47768590f412eb4380
7
+ data.tar.gz: 02c91d2b447269b1143cd2ff6b04376b763d8658e4d90aa49495cb6bc2f750d54ced9afa4f784ab4fce681fa3ec7e0f4daa91f6bd2bdcf436b431aad75d56e3e
@@ -58,7 +58,7 @@ module SoarAuthenticationToken
58
58
  def attempt_decode_using_a_key(authentication_token,key_data)
59
59
  public_key = OpenSSL::PKey::EC.new(key_data['public_key'])
60
60
  public_key.private_key = nil
61
- JWT.decode(authentication_token, public_key, true, { :algorithm => 'ES512' })
61
+ JWT.decode(authentication_token.to_s, public_key, true, { :algorithm => 'ES512' })
62
62
  rescue JWT::VerificationError, JWT::DecodeError
63
63
  nil
64
64
  end
@@ -58,7 +58,7 @@ module SoarAuthenticationToken
58
58
  'data' => {
59
59
  'notifications' => ['Not authenticated']
60
60
  }
61
- }
61
+ }.to_json
62
62
  ]
63
63
  end
64
64
  end
@@ -1,3 +1,3 @@
1
1
  module SoarAuthenticationToken
2
- VERSION = '6.0.3'
2
+ VERSION = '6.0.4'
3
3
  end
@@ -42,7 +42,7 @@ describe SoarAuthenticationToken::RackMiddleware do
42
42
  @failure_response_json = { 'status' => 'fail', 'data' => {
43
43
  'notifications' => ['Not authenticated']
44
44
  }
45
- }
45
+ }.to_json
46
46
  end
47
47
 
48
48
  before :each do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_authentication_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 6.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barney de Villiers