Keycloak mapper for mapping a SAML attribute into a Keycloak group.
It combines code from AttributeToRoleMapper.java and AdvancedClaimToGroupMapper.java.
To make Keycloak recognize the mapper the src/main/resources/META-INF folder and its content is required.
Requirements are Maven (verified 3.6.3) and Java (verified openjdk 1.8.0_322).
To build a .jar file that can be used in Keycloak run the following command
mvn clean package
To deploy the mapper in Keycloak copy the .jar file into the /opt/keycloak/providers
folder.
When deploying to Docker, copy the file before running kc.sh build
in the Docker file.