On various sites I have two IkiWiki instances running from the same
repository: one accessible via http and only accepting openid logins,
and one accessible via authenticated https and only accepting httpauth.
Ideally, the https version should still pretty-print OpenIDs seen in
git history.
GetOptions("openidsignup=s" => \$config{openidsignup});
}
+sub checkconfig () {
+ if (! defined $config{openidenabled}) {
+ $config{openidenabled} = 1;
+ }
+}
+
sub getsetup () {
return
plugin => {
safe => 1,
rebuild => 0,
},
+ openidenabled => {
+ type => "boolean",
+ example => 1,
+ description => "allow OpenID logins if openid plugin is loaded?",
+ safe => 1,
+ rebuild => 0,
+ },
openidsignup => {
type => "string",
example => "http://myopenid.com/",
my $cgi=$params{cgi};
if ($form->title eq "signin") {
+ return unless $config{openidenabled};
+
# Give up if module is unavailable to avoid
# needing to depend on it.
eval q{use Net::OpenID::Consumer};