-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include clientId in Redis user-registered events
Signed-off-by: John Gomersall <[email protected]>
- Loading branch information
Showing
7 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,10 @@ public EventType getType() { | |
return EventType.REGISTER; | ||
} | ||
|
||
@Override | ||
public String getClientId() { | ||
return "test-client-client-id"; | ||
} | ||
}); | ||
|
||
// Assert | ||
|
@@ -74,6 +78,7 @@ public EventType getType() { | |
Assertions.assertEquals("[email protected]", fields.get("email")); | ||
Assertions.assertEquals("theUserName", fields.get("userName")); | ||
Assertions.assertEquals("open-products-facts", fields.get("realm")); | ||
Assertions.assertEquals("test-client-client-id", fields.get("clientId")); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ public EventType getType() { | |
|
||
@Override | ||
public String getClientId() { | ||
return "test-client-id"; | ||
return "test-client-client-id"; | ||
} | ||
}); | ||
|
||
|
@@ -78,7 +78,7 @@ public String getClientId() { | |
Assertions.assertEquals("[email protected]", fields.get("email")); | ||
Assertions.assertEquals("theUserName", fields.get("userName")); | ||
Assertions.assertEquals("open-products-facts", fields.get("realm")); | ||
Assertions.assertEquals("test-client-id", fields.get("clientId")); | ||
Assertions.assertEquals("test-client-client-id", fields.get("clientId")); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters