reta commented on code in PR #3518:
URL: https://github.com/apache/cxf/pull/3518#discussion_r4132690231
##########
rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/jwt/JwtBearerAuthHandler.java:
##########
@@ -130,6 +130,11 @@ protected void validateToken(JwtToken jwt) {
throw new OAuthServiceException(OAuthConstants.INVALID_GRANT);
}
+ // We must have an Audience (RFC 7523, section 3)
+ if (isValidateAudience() && jwt.getClaims().getAudiences().isEmpty()) {
Review Comment:
With https://github.com/apache/cxf/pull/3518/changes#r4132675606, it will be
taken care of as well in `JwtUtils.validateTokenClaims`
--
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]