Skip to content

Commit

Permalink
Disable automatic API key generation for teams. Fixes issue Dependenc…
Browse files Browse the repository at this point in the history
…yTrack#2552.

Signed-off-by: Massimo Prencipe <mprencipe@gmail.com>
  • Loading branch information
mprencipe committed Mar 21, 2024
1 parent 3b52284 commit cbc4bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public Response createTeam(Team jsonTeam) {
);

try (QueryManager qm = new QueryManager()) {
final Team team = qm.createTeam(jsonTeam.getName(), true);
final Team team = qm.createTeam(jsonTeam.getName(), false);
super.logSecurityEvent(LOGGER, SecurityMarkers.SECURITY_AUDIT, "Team created: " + team.getName());
return Response.status(Response.Status.CREATED).entity(team).build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public void createTeamTest() {
Assert.assertNotNull(json);
Assert.assertEquals("My Team", json.getString("name"));
Assert.assertTrue(UuidUtil.isValidUUID(json.getString("uuid")));
Assert.assertTrue(json.getJsonArray("apiKeys").isEmpty());
}

@Test
Expand Down

0 comments on commit cbc4bcf

Please sign in to comment.