deniskuzZ commented on code in PR #6327:
URL: https://github.com/apache/hive/pull/6327#discussion_r2911296970


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/auth/jwt/SimpleJWTAuthenticator.java:
##########
@@ -38,7 +38,10 @@
 
 public class SimpleJWTAuthenticator {
   private static final Logger LOG = 
LoggerFactory.getLogger(SimpleJWTAuthenticator.class.getName());
-  private static final Set<JOSEObjectType> ACCEPTABLE_TYPES = 
Sets.newHashSet(null, JOSEObjectType.JWT);
+  // Accept both traditional "JWT" and RFC 9068 "at+jwt" (access token as JWT) 
- Keycloak and other
+  // OIDC providers may use "at+jwt" when configured for RFC 9068 compliance.
+  private static final Set<JOSEObjectType> ACCEPTABLE_TYPES =
+      Sets.newHashSet(null, JOSEObjectType.JWT, new JOSEObjectType("at+jwt"));

Review Comment:
   jdk21 use Set.of()



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to