Skip to content

Commit

Permalink
Revert LocalSettings.php to older version
Browse files Browse the repository at this point in the history
  • Loading branch information
vonfalk committed Jan 27, 2024
1 parent 273c7b5 commit bfa1bed
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions app/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,15 @@
$wgMFAutodetectMobileView = true;
$wgMFDefaultSkinClass = 'SkinMinerva';

$wgPluggableAuth_Class = 'OpenIDConnect';
$wgPluggableAuth_EnableLocalLogin = false;
$wgPluggableAuth_EnableAutoLogin = false;

$wgPluggableAuth_Config[] = [
'plugin' => 'OpenIDConnect',
'data' => [
'providerURL' => getenv('MW_OIDC_URL'),
'clientID' => getenv('MW_OIDC_CLIENT_ID'),
'clientsecret' => getenv('MW_OIDC_CLIENT_SECRET'),
'name' => getenv('MW_OIDC_NAME'),
'scope' => [ 'openid', 'profile', 'email' ],
]
$wgOpenIDConnect_Config[getenv("MW_OIDC_URL")] = [
'clientID' => getenv("MW_OIDC_CLIENT_ID"),
'clientsecret' => getenv("MW_OIDC_CLIENT_SECRET"),
'name' => getenv("MW_OIDC_NAME"),
'scope' => [ 'openid', 'profile', 'email' ],
];
$wgOpenIDConnect_MigrateUsersByUserName = true;

Expand All @@ -173,10 +170,7 @@
require_once __DIR__ . '/extensions/Maps/Maps_Settings.php';
$egMapsDefaultService = 'leaflet';

wfLoadExtension('RandomInCategory');

## Uncomment for debug info:
// $wgShowExceptionDetails = true;
require_once "$IP/extensions/RandomInCategory/RandomInCategory.php";

# These settings should probably be commented in production.
# $wgDebugLogFile = "/var/log/mediawiki-debug.log";
Expand Down

0 comments on commit bfa1bed

Please sign in to comment.