fix: openid deuxième essai

wiki
Pyjacpp 2026-02-24 20:11:32 +01:00
parent 0283224916
commit 89c1390144
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
2 changed files with 2 additions and 8 deletions

View File

@ -106,8 +106,6 @@ in
$wgPluggableAuth_EnableLocalLogin = true; $wgPluggableAuth_EnableLocalLogin = true;
$LDAPAuthentication2AllowLocalLogin = true; $LDAPAuthentication2AllowLocalLogin = true;
$LDAPProviderDomainConfigs = "${config.age.secrets.mediawiki-ldap.path}"; $LDAPProviderDomainConfigs = "${config.age.secrets.mediawiki-ldap.path}";
# On importe les secrets pour l'OpenID.
require '${config.age.secrets.mediawiki-openid.path}';
$wgPluggableAuth_Config = [ $wgPluggableAuth_Config = [
"Compte Crans" => [ "Compte Crans" => [
'plugin' => 'LDAPAuthentication2', 'plugin' => 'LDAPAuthentication2',
@ -117,14 +115,10 @@ in
], ],
"Note BDE" => [ "Note BDE" => [
'plugin' => 'OpenIDConnect', 'plugin' => 'OpenIDConnect',
'data' => [ 'data' => require('${config.age.secrets.mediawiki-openid.path}'),
'providerURL' => 'https://note.crans.org/o/',
'clientID' => $SecretAgeOpenIDClientID,
'clientsecret' => $SecretAgeOpenIDClientSecret,
]
] ]
]; ];
# Theme # Theme
$wgDefaultSkin = 'citizen'; $wgDefaultSkin = 'citizen';
$wgCitizenThemeColor = '#AD1F1F'; $wgCitizenThemeColor = '#AD1F1F';