lib/json/jwt.rb in json-jwt-0.1.7 vs lib/json/jwt.rb in json-jwt-0.1.8

- old
+ new

@@ -53,11 +53,11 @@ when 2 # JWT / JWS header, claims, signature = jwt_string.split('.', 3).collect do |segment| UrlSafeBase64.decode64 segment.to_s end signature_base_string = jwt_string.split('.')[0, 2].join('.') - jwt = new JSON.parse(claims, :symbolize_names => true) - jwt.header = JSON.parse(header, :symbolize_names => true) + jwt = new JSON.parse(claims, :symbolize_names => true, :symbolize_keys => true) + jwt.header = JSON.parse(header, :symbolize_names => true, :symbolize_keys => true) jwt.verify signature_base_string, signature, key_or_secret jwt when 3 # JWE # TODO: Concept code first. # jwt = JWE.decrypt ...