keycloak: Add organizations plugin

This commit is contained in:
Erwin Boskma 2023-11-03 16:29:31 +01:00
parent 5764bb7ee6
commit 359b09c9c1
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ
3 changed files with 64 additions and 1 deletions

View file

@ -45,9 +45,20 @@ in
keywind = keywindTheme; keywind = keywindTheme;
}; };
plugins = [
(pkgs.callPackage ./keycloak-orgs.nix {
inherit (pkgs) fetchFromGitHub;
inherit (pkgs.maven) buildMavenPackage;
})
(pkgs.callPackage ./keycloak-admin-ui.nix {
inherit (pkgs) fetchFromGitHub;
inherit (pkgs.maven) buildMavenPackage;
keycloak = config.services.keycloak.package;
})
];
}; };
services.caddy = { services. caddy = {
enable = true; enable = true;
email = "erwin@datarift.nl"; email = "erwin@datarift.nl";

View file

@ -0,0 +1,26 @@
{ buildMavenPackage
, fetchFromGitHub
, keycloak
}:
let
inherit (keycloak) version;
in
buildMavenPackage {
inherit version;
pname = "keycloak-admin-ui";
src = fetchFromGitHub {
owner = "keycloak";
repo = "keycloak";
rev = version;
hash = "sha256-Lk2CWzIV7UcDHy3hth9ccw3OUAsphM3llahHtehAcV0=";
};
sourceRoot = "source/integration/admin-client";
mvnHash = "sha256-HkVib0WCbl+/EuwUf8JiYKewIz1AntTvGySInsOkODE=";
installPhase = ''
install -D target/keycloak-admin-client-${version}.jar $out/keycloak-admin-client-${version}.jar
'';
}

View file

@ -0,0 +1,26 @@
{ buildMavenPackage
, fetchFromGitHub
}:
let
version = "0.43";
in
buildMavenPackage {
inherit version;
pname = "keycloak-orgs";
src = fetchFromGitHub {
owner = "p2-inc";
repo = "keycloak-orgs";
rev = "v${version}";
hash = "sha256-aOnhUdDc9GNkBJx+bG393VDgFvB+ZKVzGBP8MBbqOhU=";
};
mvnHash = "sha256-gOqXkyumC4/5S+Sb7/Ed7b93sR3kq660I0x4MFxFwro=";
mvnParameters = "-Dmaven.buildNumber.skip=true";
installPhase = ''
install -D target/keycloak-orgs-${version}.jar $out/keycloak-orgs-${version}.jar
'';
}