Extension:OpenID Connect

The OpenID Connect extension extends the PluggableAuth extension to provide authentication using OpenID Connect.

Special thanks to jumbojett for the OpenID Connect PHP library used by this extension.

Installation
This extension requires PluggableAuth to be installed first. It also requires the OpenID Connect PHP library.

Configuration parameters
A simple example of the  configuration for a single issuer is as follows:

$OpenIDConnect_Config['https://id.mycompany_abc.com/connect/'] = array(   'clientID' => '.....',    'clientsecret' => '.....' );

An example of the  configuration for multiple issuers is as follows:

$OpenIDConnect_Config['https://id.mycompany_abc.com/connect/'] = array(   'clientID' => '.....',    'clientsecret' => '.....',    'name' => "My Company's Connect Server",    'icon' => 'http://www.mycompany_abc.com/images/logo.png' );

$OpenIDConnect_Config['https://id.partnercompany_def.com/connect/'] = array(   'clientID' => '.....',    'clientsecret' => '.....',    'name' => "Partner Company's Connect Server",    'icon' => 'http://www.partnercompany_def.com/images/logo.png' );

Example: Google as an Issuer

 * 1) Using the Google Developer Console create a project.
 * 2) Click on the project and click on   on the sidebar.
 * 3) Click the   button and select  . Fill in the consent screen information and save.
 * 4) Fill in the root URL (no wild cards or paths) or your wiki in.
 * 5) Fill in the URL of the Special:UserLogin page of your wiki in.
 * 6) Click.
 * 7) Note the   and   that are assigned.

The Google issuer is now configured. Add the corresponding configuration to your LocalSettings.php file, filling in the  and   fields with the values assigned above.

$OpenIDConnect_Config['https://accounts.google.com'] = array(   'clientID' => '.....',    'clientsecret' => '.....',    'scope' => array( 'openid', 'profile', 'email' ) );

You may also assign values for,  , and.