lib/json/jwt.rb in json-jwt-1.1.0 vs lib/json/jwt.rb in json-jwt-1.2.0
- old
+ new
@@ -32,11 +32,11 @@
self.typ = :JWT
self.alg = :none
[:exp, :nbf, :iat].each do |key|
claims[key] = claims[key].to_i if claims[key]
end
- replace claims
+ update claims
end
def content_type
'application/jwt'
end
@@ -113,18 +113,20 @@
end
rescue MultiJson::DecodeError
raise InvalidFormat.new("Invalid JSON Format")
end
- # NOTE: Ugly hack to avoid this ActiveSupport 4.0 bug.
- # https://github.com/rails/rails/issues/11087
- def new_from_hash_copying_default(hash)
- superclass.new_from_hash_copying_default hash
- end
+ # # NOTE: Ugly hack to avoid this ActiveSupport 4.0 bug.
+ # # https://github.com/rails/rails/issues/11087
+ # def new_from_hash_copying_default(hash)
+ # superclass.new_from_hash_copying_default hash
+ # end
end
end
end
require 'json/jose'
require 'json/jws'
require 'json/jwe'
require 'json/jwk'
+require 'json/jwk/jwkizable'
+require 'json/jwk/set'
\ No newline at end of file