soar_authentication_token 6.0.3 → 6.0.4
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a9bd21d079e6dff10a2f29a8475340031993755
|
4
|
+
data.tar.gz: ca7092ef8359d576e33e28aed1a7aa0c0bdd8aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|