From 2609e0c9815ce0a85fb706bec07987a469a86ba2 Mon Sep 17 00:00:00 2001 From: Mauri Mustonen Date: Mon, 25 Jul 2022 15:16:44 +0300 Subject: [PATCH] use certs instead fo response (#31) Co-authored-by: Mauri Mustonen --- lib/omniauth/strategies/keycloak-openid.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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