projects
/
scpubgit/stemmaweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
26c6f68
)
Make google url configurable
Errietta Kostala [Wed, 21 Jan 2015 16:48:38 +0000 (16:48 +0000)]
lib/stemmaweb/Authentication/Credential/Google.pm
patch
|
blob
|
blame
|
history
stemmaweb.conf
patch
|
blob
|
blame
|
history
diff --git
a/lib/stemmaweb/Authentication/Credential/Google.pm
b/lib/stemmaweb/Authentication/Credential/Google.pm
index
20afff8
..
07a3c5f
100644
(file)
--- 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
(file)
--- a/
stemmaweb.conf
+++ b/
stemmaweb.conf
@@
-10,3
+10,6
@@
name = stemmaweb
<Model Directory>
dsn dbi:SQLite:dbname=db/traditions.db
</Model>
+<Authentication::Credential::Google>
+ url https://www.googleapis.com/oauth2/v1/certs
+</Authentication::Credential::Google>