lib/openid_connect/discovery/provider/config/response.rb in openid_connect-2.1.0 vs lib/openid_connect/discovery/provider/config/response.rb in openid_connect-2.2.0
- old
+ new
@@ -79,12 +79,10 @@
def validate!
valid? or raise ValidationFailed.new(self)
end
def jwks
- @jwks ||= JSON.parse(
- OpenIDConnect.http_client.get(jwks_uri).body
- ).with_indifferent_access
+ @jwks ||= OpenIDConnect.http_client.get(jwks_uri).body.with_indifferent_access
JSON::JWK::Set.new @jwks[:keys]
end
def jwk(kid)
@jwks ||= {}