lasdf1234 commented on code in PR #10503:
URL: https://github.com/apache/gravitino/pull/10503#discussion_r2972724282


##########
server-common/src/main/java/org/apache/gravitino/server/authentication/StaticSignKeyValidator.java:
##########
@@ -110,7 +126,13 @@ public Principal validateToken(String token, String 
serviceAudience) {
       String principal = extractPrincipal(jwt.getBody());
 
       // Use principal mapper to extract username
-      return principalMapper.map(principal);
+      Principal userPrincipal = principalMapper.map(principal);
+      List<String> groups = extractGroups(jwt.getBody());
+      if (groups != null && !groups.isEmpty()) {
+        List<String> mappedGroups = groupMapper.map(groups);

Review Comment:
   Got it , I have resolved it in RegexpGroupMapper.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to