use certs instead fo response (#31)

Co-authored-by: Mauri Mustonen <mauri.mustonen@hotmail.com>
master
Mauri Mustonen 2022-07-25 15:16:44 +03:00 committed by GitHub
parent 6b17ea1311
commit 2609e0c981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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