I'm trying to update from MW 1.39.5 to 1.39.6 and am getting the following internal error when trying to log in:
index.php/Special:PluggableAuthLogin TypeError: Argument 1 passed to Jumbojett\OpenIDConnectClient::addScope() must be of the type array, string given, called in /var/www/html/extensions/OpenIDConnect/includes/OpenIDConnect.php on line 199 Backtrace: from /var/www/html/vendor/jumbojett/openid-connect-php/src/OpenIDConnectClient.php(556) # 0 /var/www/html/extensions/OpenIDConnect/includes/OpenIDConnect.php(199): Jumbojett\OpenIDConnectClient->addScope() # 1 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(101): MediaWiki\Extension\OpenIDConnect\OpenIDConnect->authenticate() # 2 /var/www/html/includes/specialpage/SpecialPage.php(701): MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute() # 3 /var/www/html/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run() # 4 /var/www/html/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath() # 5 /var/www/html/includes/MediaWiki.php(904): MediaWiki->performRequest() # 6 /var/www/html/includes/MediaWiki.php(562): MediaWiki->main() # 7 /var/www/html/index.php(50): MediaWiki->run() # 8 /var/www/html/index.php(46): wfIndexMain() # 9 {main}
Here is what I believe to be the relevant config from LocalSettings.php:
wfLoadExtension( 'PluggableAuth' ); $wgPluggableAuth_Config[] = [ 'plugin' => 'OpenIDConnect', 'buttonLabelMessage' => 'Example', 'data' => [ 'providerURL' => 'https://example.com/auth/realms/example', 'clientID' => getenv('OIDC_CLIENTID'), 'clientsecret' => getenv('OIDC_CLIENTSECRET') ] ]; $wgPluggableAuth_EnableLocalLogin = false; $wgPluggableAuth_EnableAutoLogin = true;
wfLoadExtension( 'OpenIDConnect' ); $wgOpenIDConnect_MigrateUsersByUserName = true;
wfLoadExtension( 'LDAPProvider' ); $LDAPProviderDomainConfigProvider = function() { $config = [ "LDAP" => [ "connection" => [ "server" => "example.com", "basedn" => "ou=people,dc=example,dc=com", "userbasedn" => "ou=people,ou=system,dc=example,dc=com", "searchattribute" => "uid", "searchstring" => "USER-NAME", "usernameattribute" => "uid", "realnameattribute" => "displayName", "emailattribute" => "mail", "groupbasedn" => "cn=example,ou=secgroups,ou=system,dc=example,dc=com", "groupobjectclass" => "groupOfNames", "groupattribute" => "member", "grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\Configurable::factory" ], "authorization" => [ "rules" => [ "groups" => [ "required" => [ "cn=example,ou=secgroups,ou=system,dc=example,dc=com" ] ] ] ], ] ]; return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config ); };
wfLoadExtension( 'LDAPAuthorization' );
Is there anything I should be changing before trying to update?