diff --git a/docs/docs/configuration/authentifications/external.md b/docs/docs/configuration/authentifications/external.md index 39d31b737..95ac6a1c7 100644 --- a/docs/docs/configuration/authentifications/external.md +++ b/docs/docs/configuration/authentifications/external.md @@ -67,13 +67,12 @@ akhq: class GroovyCustomClaimProvider implements ClaimProvider { @Override ClaimResponse generateClaim(ClaimRequest request) { - ClaimResponse a = new ClaimResponse(); - a.roles = ["topic/read"] - a.topicsFilterRegexp: [".*"], - a.connectsFilterRegexp: [".*"], - a.consumerGroupsFilterRegexp: [".*"] - - return a + ClaimResponse response = ClaimResponse.builder().build() + response.roles = ["topic/read"] + response.topicsFilterRegexp: [".*"] + response.connectsFilterRegexp: [".*"] + response.consumerGroupsFilterRegexp: [".*"] + return response } } groups: # anything set here will not be used