First attempt at OpenID login

See https://git.autonomic.zone/compose-stacks/mediawiki/issues/14.
This commit is contained in:
2020-10-19 16:50:47 +02:00
parent d75e15310c
commit 3ffc239373
6 changed files with 82 additions and 14 deletions

View File

@ -183,6 +183,16 @@ $wgGroupPermissions['*']['createaccount'] = false;
$wgDebugLogFile = "/var/log/debug-{$wgDBname}.log";
{{ end }}
{{ if eq (env "OPENID_ENABLED") "1" }}
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'OpenIDConnect' );
$wgOpenIDConnect_Config['{{ env "OPENID_KEYCLOAK_URL" }}'] = [
'clientID' => '{{ env "OPENID_CLIENT_ID"}}',
'clientsecret' => '{{ secret "openid-client-secret" }}'
];
{{ end }}
{{ if env "SMTP_HOST" }}
$wgSMTP = [
'host' => '{{ env "SMTP_HOST" }}', // could also be an IP address. Where the SMTP server is located