2 package SGN
::Controller
::OpenidConfiguration
;
7 BEGIN { extends
"Catalyst::Controller"; }
11 sub openid_configuration
: Path
('/.well-known/openid-configuration') Args
(0) {
15 my $json = read_file
($c->get_conf('basepath') . '/static/documents/openid-configuration.json');
16 my $site = $c->config->{main_production_site_url
};
17 $json =~ s/\<\% \$site \%>/$site/;
18 $c->res->content_type("application/json");