Kimahriman commented on a change in pull request #4059: URL: https://github.com/apache/zeppelin/pull/4059#discussion_r579826989
########## File path: zeppelin-server/src/main/java/org/apache/zeppelin/service/ShiroAuthenticationService.java ########## @@ -247,6 +248,9 @@ public boolean isAuthenticated() { } else if (ACTIVE_DIRECTORY_GROUP_REALM.equals(name)) { allRoles = ((ActiveDirectoryGroupRealm) realm).getListRoles(); break; + } else if (realm instanceof KnoxJwtRealm) { Review comment: Not sure if the other realms need to do string checks or should be changed to instanceof checks, but had to do it here for the test using the spy ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org