Hi Cindy,
I want to share my configuration to use OpenID Connect with a Gitlab (self-hosted).
Gitlab
- Login to Gitlab Admin Area
- Applications -> New Application
- Name: MediaWiki
- Redirect URI: <<https wiki server>>/wiki/Special:PluggableAuthLogin
- Trusted: yes
- Confidential: yes
- Scopes: openid, profile, email
- Submit
- Copy Application ID and Secret to
LocalSettings.php
MediaWiki Configuration
In LocalSettings.php
# Extension:OpenID Connect wfLoadExtension( 'PluggableAuth' ); # set to false to deactivate local logins $wgPluggableAuth_EnableLocalLogin = true; #= false; wfLoadExtension( 'OpenIDConnect' ); $wgOpenIDConnect_Config['<<https gitlab server>>'] = [ 'clientID' => '...', # Insert Gitlab Application ID here! 'clientsecret' => '...', # Insert Gitlab Secret here! # docs.gitlab.com/ee/integration/openid_connect_provider.html # Alternative 'nickname' # Alternative 'name' 'preferred_username' => 'nickname' ]; $wgPluggableAuth_ButtonLabelMessage = 'Login with your Gitlab Account';