use certs instead fo response (#31)
Co-authored-by: Mauri Mustonen <mauri.mustonen@hotmail.com>
This commit is contained in:
		
							parent
							
								
									6b17ea1311
								
							
						
					
					
						commit
						2609e0c981
					
				@ -47,7 +47,7 @@ module OmniAuth
 | 
				
			|||||||
                        log :debug, "Going to get certificates. URL: #{@certs_endpoint}"
 | 
					                        log :debug, "Going to get certificates. URL: #{@certs_endpoint}"
 | 
				
			||||||
                        certs = Faraday.get @certs_endpoint
 | 
					                        certs = Faraday.get @certs_endpoint
 | 
				
			||||||
                        if (certs.status == 200)
 | 
					                        if (certs.status == 200)
 | 
				
			||||||
                            json = JSON.parse(response.body)
 | 
					                            json = JSON.parse(certs.body)
 | 
				
			||||||
                            @certs = json["keys"]
 | 
					                            @certs = json["keys"]
 | 
				
			||||||
                            log :debug, "Successfully got certificate. Certificate length: #{@certs.length}"
 | 
					                            log :debug, "Successfully got certificate. Certificate length: #{@certs.length}"
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user