RobertIndie commented on a change in pull request #12132:
URL: https://github.com/apache/pulsar/pull/12132#discussion_r731791613
##########
File path:
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authentication/AuthenticationProviderToken.java
##########
@@ -293,19 +293,19 @@ private SignatureAlgorithm
getPublicKeyAlgType(ServiceConfiguration conf) throws
// get Token Audience Claim from configuration, if not configured return
null.
private String getTokenAudienceClaim(ServiceConfiguration conf) throws
IllegalArgumentException {
- if (conf.getProperty(confTokenAudienceClaimSettingName) != null
- && StringUtils.isNotBlank((String)
conf.getProperty(confTokenAudienceClaimSettingName))) {
- return (String)
conf.getProperty(confTokenAudienceClaimSettingName);
+ Object tokenAudienceClaim =
conf.getProperty(confTokenAudienceClaimSettingName);
+ if (tokenAudienceClaim != null && StringUtils.isNotBlank((String)
tokenAudienceClaim)) {
+ return (String) tokenAudienceClaim;
Review comment:
Thanks. I fixed it.
--
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]