Skip to content

Commit 1c47f7c

Browse files
author
François
committed
Issues/300: Log message now reflects the new matching strategy
1 parent f15fc92 commit 1c47f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/io/kafbat/ui/service/rbac/extractor/OauthAuthorityExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private Set<String> extractUsernameRoles(AccessControlService acs, DefaultOAuth2
5959
.filter(s -> s.getProvider().equals(Provider.OAUTH))
6060
.filter(s -> s.getType().equals("user"))
6161
.peek(s -> log.trace("[{}] matches [{}]? [{}]", s.getValue(), principalName,
62-
s.getValue().equalsIgnoreCase(principalName)))
62+
principalName != null && principalName.matches(s.getValue())))
6363
.anyMatch(s -> principalName != null && principalName.matches(s.getValue())))
6464
.map(Role::getName)
6565
.collect(Collectors.toSet());

0 commit comments

Comments
 (0)