We need to create an event provider which will write all login/logout activities to google cloud logging.
com.google.cloud
google-cloud-logging
The google cloud logging requires guava library 31.1-jre.
Keycloak provides guava library 30.1-jre.
Even though are jar file contains guava library 31.1-rje. When the event provider executes it is using the 30.1-jre library thus failing due to missing methods.
Is there some way we can upgrade the guava library in keycloak for our application? Or force the usage of the 31.1-jre library?
We used this code to determine which library is being used in our provider.
for (Class<?> c : new Class {ImmutableMap.class, ImmutableTable.class}) {
System.out.printf(ā%s comes from %s\nā, c.getName(), c.getProtectionDomain().getCodeSource().getLocation());
}
Thanks,
-Kelly