Skip to content

Commit

Permalink
fix(doc): fix the sample of GroovyCustomClaimProvider (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleWat authored and tchiotludo committed Apr 4, 2023
1 parent 4e17d98 commit ba4aceb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/docs/configuration/authentifications/external.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba4aceb

Please sign in to comment.