Skip to content

Commit

Permalink
Merge pull request #15030 from sancar/fix/unncessaryAuth/master
Browse files Browse the repository at this point in the history
Skip auth if it is already authenticated
  • Loading branch information
sancar committed May 14, 2019
2 parents 1ba46eb + ca9f96f commit 6964b37
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -112,7 +112,9 @@ public void processMessage() throws Throwable {

@SuppressWarnings("checkstyle:returncount")
private AuthenticationStatus authenticate() {
if (clientSerializationVersion != serializationService.getVersion()) {
if (endpoint.isAuthenticated()) {
return AUTHENTICATED;
} else if (clientSerializationVersion != serializationService.getVersion()) {
return SERIALIZATION_VERSION_MISMATCH;
} else if (!isOwnerConnection() && !isMember(principal)) {
logger.warning("Member having UUID " + principal.getOwnerUuid()
Expand Down

0 comments on commit 6964b37

Please sign in to comment.