Installing the Keycloak Role Service module¶
Download¶
-
Login to GeoServer and navigate to About & Status → About GeoServer. Check Build Information to find the exact version you are running.
-
Visit the GeoServer download page, open the Development tab, and locate the nightly build that matches your version.
Follow the Community Modules link and download the sec-keycloak-roles archive:
-
3.1-SNAPSHOT example: sec-keycloak-roles
-
Extract the contents of the archive into the
WEB-INF/libdirectory of your GeoServer installation.
!!! warning
The version number in the filename must match the GeoServer version you are running (for example geoserver-3.1-SNAPSHOT-sec-keycloak-roles-plugin.zip).
- Restart GeoServer.
Build from source¶
To compile the module yourself, download the GeoServer source for your version and run:
The assembled ZIP is written to:
The ZIP contains exactly two JARs — gs-sec-keycloak-roles-core and gs-sec-keycloak-roles-web — both of which must be placed in WEB-INF/lib. All other required libraries (httpclient5, jackson-databind) are already bundled in the standard GeoServer WAR.
Using with the GeoServer Docker container¶
Pass sec-keycloak-roles-plugin as a community extension: