Skip to content

Commit

Permalink
gh52 - bugfix for realm name in the routing key
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Z committed Mar 20, 2024
1 parent 1b80f70 commit 17b3736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.github.aznamier.keycloak.event.provider</groupId>
<artifactId>keycloak-to-rabbit</artifactId>
<packaging>jar</packaging>
<version>3.0.4</version>
<version>3.0.5-SNAPSHOT</version>



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static String calculateRoutingKey(AdminEvent adminEvent, KeycloakSession
//KK.EVENT.ADMIN.<REALM>.<RESULT>.<RESOURCE_TYPE>.<OPERATION>
String routingKey = ROUTING_KEY_PREFIX
+ ".ADMIN"
+ "." + removeDots(session.realms().getRealm(adminEvent.getRealmId()).getName())
+ "." + removeDots(session.getContext().getRealm().getName())
+ "." + (adminEvent.getError() != null ? "ERROR" : "SUCCESS")
+ "." + adminEvent.getResourceTypeAsString()
+ "." + adminEvent.getOperationType().toString()
Expand Down

0 comments on commit 17b3736

Please sign in to comment.