kaycloak
This commit is contained in:
parent
ecfc58fecd
commit
87545d9e8b
1 changed files with 35 additions and 0 deletions
|
@ -37,6 +37,10 @@ in
|
||||||
$conf['tpl']['bootstrap3']['showAddNewPage'] = 'logged';
|
$conf['tpl']['bootstrap3']['showAddNewPage'] = 'logged';
|
||||||
$conf['tpl']['bootstrap3']['fluidContainer'] = 0;
|
$conf['tpl']['bootstrap3']['fluidContainer'] = 0;
|
||||||
$conf['htmlmail'] = 0; // On envoie les mails en plain text
|
$conf['htmlmail'] = 0; // On envoie les mails en plain text
|
||||||
|
$conf['authtype'] = 'oauth';
|
||||||
|
$conf['plugin']['oauthkeycloak']['key'] = 'wiki';
|
||||||
|
$conf['plugin']['oauthkeycloak']['secret'] = '';
|
||||||
|
$conf['plugin']['oauthkeycloak']['openidurl'] = 'https://auth.rz.ens.wtf/auth/realms/hackENS/.well-known/openid-configuration/';
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pluginsConfig = ''
|
pluginsConfig = ''
|
||||||
|
@ -45,6 +49,7 @@ in
|
||||||
$plugins['authpgsql'] = 0;
|
$plugins['authpgsql'] = 0;
|
||||||
$plugins['authpdo'] = 0;
|
$plugins['authpdo'] = 0;
|
||||||
$plugins['authldap'] = 0;
|
$plugins['authldap'] = 0;
|
||||||
|
$plugins['oauthkeycloak'] = 1;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disableActions = "register";
|
disableActions = "register";
|
||||||
|
@ -118,6 +123,36 @@ in
|
||||||
cp -R * $out/
|
cp -R * $out/
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "oauth";
|
||||||
|
# Download the theme from the dokuwiki site
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "cosmocode";
|
||||||
|
repo = "dokuwiki-plugin-oauth";
|
||||||
|
rev = "2022-01-13";
|
||||||
|
sha256 = "ruaw8MqSMgopULD7vxed44nbowjVc1e4H0Q7JEL9pD0=";
|
||||||
|
};
|
||||||
|
# Installing simply means copying all files to the output directory
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -R * $out/
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "oauthkeycloak";
|
||||||
|
# Download the theme from the dokuwiki site
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "YoitoFes";
|
||||||
|
repo = "dokuwiki-plugin-oauthkeycloak";
|
||||||
|
rev = "2022-12-23";
|
||||||
|
sha256 = "jV4CCVJ+4vbWE52ocsJnHR5oIM5ZM/5aYub6wxkVado=";
|
||||||
|
};
|
||||||
|
# Installing simply means copying all files to the output directory
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -R * $out/
|
||||||
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# On veut php-xml
|
# On veut php-xml
|
||||||
|
|
Loading…
Reference in a new issue