Github user kohlmu-pivotal commented on a diff in the pull request: https://github.com/apache/geode/pull/719#discussion_r134051130 --- Diff: geode-protobuf/src/main/java/org/apache/geode/protocol/protobuf/ProtobufSimpleAuthenticator.java --- @@ -40,20 +42,28 @@ public void receiveMessage(InputStream inputStream, OutputStream outputStream, properties.setProperty("username", authenticationRequest.getUsername()); properties.setProperty("password", authenticationRequest.getPassword()); + authorizer = null; // authenticating a new user clears current authorizer try { Object principal = securityManager.authenticate(properties); - authenticated = principal != null; + if (principal != null) { + authorizer = new ProtobufSimpleAuthorizer(principal, securityManager); --- End diff -- Why do we need a `ProtobufSimpleAuthorizer` per principal? Could we not have a single `Authorizer` that will authenticate all principals?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---