oauth for wiki
This commit is contained in:
parent
bbcadab707
commit
2aadb17158
1 changed files with 85 additions and 41 deletions
|
@ -33,6 +33,25 @@
|
||||||
showAddNewPage = "logged";
|
showAddNewPage = "logged";
|
||||||
fluidContainer = 0;
|
fluidContainer = 0;
|
||||||
};
|
};
|
||||||
|
plugin = {
|
||||||
|
tokenbucketauth.tba_send_mail = "hackens@clipper.ens.fr";
|
||||||
|
oauthkeycloak = {
|
||||||
|
key = "wiki";
|
||||||
|
secret._file = config.age.secrets.wikiOpenID.path;
|
||||||
|
openidurl =
|
||||||
|
"https://auth.rz.ens.wtf/auth/realms/hackENS/.well-known/openid-configuration/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
pluginsConfig = {
|
||||||
|
|
||||||
|
authad = false;
|
||||||
|
authldap = false;
|
||||||
|
authmysql = false;
|
||||||
|
authpgsql = false;
|
||||||
|
oauthkeycloak = true;
|
||||||
|
popularity = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
|
@ -52,7 +71,6 @@
|
||||||
})
|
})
|
||||||
(pkgs.stdenv.mkDerivation {
|
(pkgs.stdenv.mkDerivation {
|
||||||
name = "commonmark";
|
name = "commonmark";
|
||||||
# Download the theme from the dokuwiki site
|
|
||||||
src = pkgs.fetchzip {
|
src = pkgs.fetchzip {
|
||||||
url =
|
url =
|
||||||
"https://github.com/clockoon/dokuwiki-plugin-commonmark/releases/download/v1.2.1/release.tar.gz";
|
"https://github.com/clockoon/dokuwiki-plugin-commonmark/releases/download/v1.2.1/release.tar.gz";
|
||||||
|
@ -63,6 +81,32 @@
|
||||||
cp -R * $out/
|
cp -R * $out/
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "oauth";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "cosmocode";
|
||||||
|
repo = "dokuwiki-plugin-oauth";
|
||||||
|
rev = "da4733221ed7b4fb3ac0e2429499b14ece3d5f2d";
|
||||||
|
hash = "sha256-CNRlaieYm/KCjZ9+OP9pMo5SGjJ4CUrNNdL4iVktCcU=";
|
||||||
|
};
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -R * $out/
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "oauth";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "YoitoFes";
|
||||||
|
repo = "dokuwiki-plugin-oauthkeycloak";
|
||||||
|
rev = "28892edb0207d128ddb94fa8a0bd216861a5626b";
|
||||||
|
hash = "sha256-nZo61nW9QjJiEo3FpYt1Zt7locuIDQ88AOn/ZnjjYUc=";
|
||||||
|
};
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -R * $out/
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
|
||||||
];
|
];
|
||||||
templates = [
|
templates = [
|
||||||
|
|
Loading…
Reference in a new issue