mirror of https://gitlab.crans.org/nounous/nixos
fix: openid deuxième essai
parent
0283224916
commit
89c1390144
|
|
@ -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,11 +115,7 @@ 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,
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue