From: Errietta Kostala Date: Wed, 21 Jan 2015 16:48:38 +0000 (+0000) Subject: Make google url configurable X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fad4df2573e1f42fc93308a05564679b43541d6f;p=scpubgit%2Fstemmaweb.git Make google url configurable --- diff --git a/lib/stemmaweb/Authentication/Credential/Google.pm b/lib/stemmaweb/Authentication/Credential/Google.pm index 20afff8..07a3c5f 100644 --- a/lib/stemmaweb/Authentication/Credential/Google.pm +++ b/lib/stemmaweb/Authentication/Credential/Google.pm @@ -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)); } diff --git a/stemmaweb.conf b/stemmaweb.conf index 3206617..0425d7b 100644 --- a/stemmaweb.conf +++ b/stemmaweb.conf @@ -10,3 +10,6 @@ name = stemmaweb dsn dbi:SQLite:dbname=db/traditions.db + + url https://www.googleapis.com/oauth2/v1/certs +