Make google url configurable
[scpubgit/stemmaweb.git] / lib / stemmaweb / Authentication / Credential / Google.pm
index 20afff8..07a3c5f 100644 (file)
@@ -90,7 +90,7 @@ Decoded JSON object containing certificates.
 sub retrieve_certs {
     my ($self, $url) = @_;
 
-    $url ||= 'https://www.googleapis.com/oauth2/v1/certs';
+    $url ||= ( $self->{_app}->config->{'Authentication::Credential::Google'}->{url} || 'https://www.googleapis.com/oauth2/v1/certs' );
     return decode_json(get($url));
 }