feat: OpenID NoteKfet pour mediawiki

wiki
Pyjacpp 2026-02-24 19:41:52 +01:00
parent 5a32b7f5e7
commit b0250a7548
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
2 changed files with 16 additions and 4 deletions

View File

@ -16,7 +16,7 @@
enable = true;
networking = {
id = "44";
id = 144;
srvNat.enable = true;
};

View File

@ -16,6 +16,11 @@ in
owner = "mediawiki";
};
age.secrets.mediawiki-openid = {
file = ../../../secrets/mediakiwi/mediawiki-openid.age;
owner = "mediawiki";
};
environment.systemPackages = with pkgs; [
imagemagick
@ -101,6 +106,8 @@ in
$wgPluggableAuth_EnableLocalLogin = true;
$LDAPAuthentication2AllowLocalLogin = true;
$LDAPProviderDomainConfigs = "${config.age.secrets.mediawiki-ldap.path}";
# On importe les secrets pour l'OpenID.
require '${config.age.secrets.mediawiki-openid.path}';
$wgPluggableAuth_Config = [
"Compte Crans" => [
'plugin' => 'LDAPAuthentication2',
@ -108,9 +115,14 @@ in
'domain' => 'crans'
]
],
# "Note BDE" => [
# 'plugin' => 'OpenIDConnect',
# ]
"Note BDE" => [
'plugin' => 'OpenIDConnect',
'data' => [
'providerURL' => 'https://note.crans.org/o/',
'clientID' => $SecretAgeOpenIDClientID,
'clientsecret' => $SecretAgeOpenIDClientSecret,
]
]
];
# Theme