soar_authentication_token 6.0.2 → 6.0.3
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: e4b22e47ef0fc292499818149ca73b92f062a769
|
4
|
+
data.tar.gz: 0a43daf241dc77519824426919c0c31ea58b5c4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fd8d3fac6a93314d496019b87d65aa7ee8ddf4b318bf82498ffe4f4d802c8d8ee4cfe0025f572471d0d45fc94557cfd61f9fd049a3b12929f869151889fe008
|
7
|
+
data.tar.gz: 01255e3020a2f009b01c3aa6f6a5fa1d9e2d05cf9272d97c86ff81f73d17c46216292346a2b530a4a1b33bf73bf44afb8c0194a9fc9af252727d6bd70ea36f95
|
@@ -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
|
61
|
+
JWT.decode(authentication_token, public_key, true, { :algorithm => 'ES512' })
|
62
62
|
rescue JWT::VerificationError, JWT::DecodeError
|
63
63
|
nil
|
64
64
|
end
|