Skip to content

Commit

Permalink
Bump up athenz version (apache#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkurihar authored and merlimat committed Jun 30, 2017
1 parent 435a664 commit 5fa4cb6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ flexible messaging model and an intuitive client API.</description>
<netty.version>4.0.46.Final</netty.version>
<storm.version>0.9.5</storm.version>
<jetty.version>9.3.11.v20160721</jetty.version>
<athenz.version>1.1.8</athenz.version>
<athenz.version>1.7.17</athenz.version>
<prometheus.version>0.0.21</prometheus.version>
<aspectj.version>1.8.9</aspectj.version>
</properties>
Expand Down Expand Up @@ -406,13 +406,13 @@ flexible messaging model and an intuitive client API.</description>

<dependency>
<groupId>com.yahoo.athenz</groupId>
<artifactId>zts_java_client</artifactId>
<artifactId>athenz-zts-java-client</artifactId>
<version>${athenz.version}</version>
</dependency>

<dependency>
<groupId>com.yahoo.athenz</groupId>
<artifactId>zpe_java_client</artifactId>
<artifactId>athenz-zpe-java-client</artifactId>
<version>${athenz.version}</version>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion pulsar-broker-auth-athenz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

<dependency>
<groupId>com.yahoo.athenz</groupId>
<artifactId>zpe_java_client</artifactId>
<artifactId>athenz-zpe-java-client</artifactId>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ public String authenticate(AuthenticationDataSource authData) throws Authenticat
throw new AuthenticationException("Unable to retrieve ZTS Public Key");
}

if (token.validate(ztsPublicKey, allowedOffset, null)) {
log.info("Athenz Role Token : {}, Authorized for Client: {}", roleToken, clientAddress);
if (token.validate(ztsPublicKey, allowedOffset, false, null)) {
log.debug("Athenz Role Token : {}, Authenticated for Client: {}", roleToken, clientAddress);
return token.getPrincipal();
} else {
throw new AuthenticationException(
String.format("Athenz Role Token Not Authorized from Client: %s", clientAddress));
String.format("Athenz Role Token Not Authenticated from Client: %s", clientAddress));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pulsar-client-auth-athenz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<dependency>
<groupId>com.yahoo.athenz</groupId>
<artifactId>zts_java_client</artifactId>
<artifactId>athenz-zts-java-client</artifactId>
</dependency>

</dependencies>
Expand Down

0 comments on commit 5fa4cb6

Please sign in to comment.