diff --git a/lib/omniauth/strategies/keycloak-openid.rb b/lib/omniauth/strategies/keycloak-openid.rb index 060758f..0cf2de9 100755 --- a/lib/omniauth/strategies/keycloak-openid.rb +++ b/lib/omniauth/strategies/keycloak-openid.rb @@ -47,7 +47,7 @@ module OmniAuth log :debug, "Going to get certificates. URL: #{@certs_endpoint}" certs = Faraday.get @certs_endpoint if (certs.status == 200) - json = JSON.parse(response.body) + json = JSON.parse(certs.body) @certs = json["keys"] log :debug, "Successfully got certificate. Certificate length: #{@certs.length}" else