flyrain commented on code in PR #4753:
URL: https://github.com/apache/polaris/pull/4753#discussion_r3422688154
##########
runtime/service/src/test/java/org/apache/polaris/service/auth/internal/broker/RSAKeyPairJWTBrokerTest.java:
##########
@@ -83,4 +84,28 @@ public void testSuccessfulTokenGeneration() throws Exception
{
assertThat(decodedJWT.getClaim("scope").asString()).isEqualTo("PRINCIPAL_ROLE:TEST");
assertThat(decodedJWT.getClaim("client_id").asString()).isEqualTo("test-client-id");
}
+
+ @Test
Review Comment:
Optional: add a token with no issuer claim at all (omit `.withIssuer`) to
lock in that a missing issuer is rejected too, not just a mismatched one.
--
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]