keycloak: Add organizations plugin
This commit is contained in:
parent
5764bb7ee6
commit
359b09c9c1
3 changed files with 64 additions and 1 deletions
|
@ -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";
|
||||||
|
|
26
modules/keycloak/keycloak-admin-ui.nix
Normal file
26
modules/keycloak/keycloak-admin-ui.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
26
modules/keycloak/keycloak-orgs.nix
Normal file
26
modules/keycloak/keycloak-orgs.nix
Normal 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
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue