Topic on Extension talk:OpenID Connect

Could not get authentication plugin instance

1
Schott.schule (talkcontribs)

I have a problem using this with PluggableAuth.

This is in my LocalSettings.php:

wfLoadExtension( 'PluggableAuth' );

wfLoadExtension( 'OpenIDConnect' );

$wgPluggableAuth_Config[] = [

    'plugin' => 'OpenIDConnect',

    'data' => [

        'providerURL' => 'URL....',

        'clientID' => client....',

        'clientsecret' => 'secret....',

        'scope' => [ 'openid', 'roster-core.readonly' ],

        'responseType' => 'code'

    ]

];

$wgGroupPermissions['*']['createaccount'] = false;

$wgGroupPermissions['*']['autocreateaccount'] = true;

$wgPluggableAuth_EnableAutoLogin = false;

$wgPluggableAuth_EnableFastLogout = true;

$wgDebugLogFile = "debug-{$wgDBname}.log";

$wgDebugLogGroups['PluggableAuth'] = "pluggableauth.log";

$wgDebugLogGroups['OpenIDConnect'] = "openidconnect.log";

$wgDebugLogGroups['http'] = 'http.log';


My Wiki only shows fatal error but in the pluggableauth.log i find the following:

2023-12-31 12:02:48 v2202311158332242983 WU8900: In execute() 2023-12-31 12:02:48 v2202311158332242983 WU8900: Getting PluggableAuth instance 2023-12-31 12:02:48 v2202311158332242983 WU8900: Could not get authentication plugin instance. 2023-12-31 12:02:49 v2202311158332242983 WU8900: ERROR: return to URL is null or empty


which indicates for me, that the error must come from PluggableAuthFactory.php line 190:

if ( $name !== null && isset( $this->pluggableAuthConfig[$name] ) ) {...}

$this->logger->debug( 'Could not get authentication plugin instance.' );

return null;


So it seems to me, that it does not detect the Config correctly, but i don't know that is wrong. I ran the php update and composer update....


Can someone provide some help for me?

Reply to "Could not get authentication plugin instance"