GitHub user VipinRathor opened a pull request: https://github.com/apache/zeppelin/pull/2515
[ZEPPELIN-2825] - Fix Zeppelin to support any of the Shiro roles ### What is this PR for? This PR adds support for such a configuration which can give access to user who belongs to "any of" the roles defined in Shiro configuration. By default, as per Shiro implementation, user is allowed only when he/she belongs to "all" the roles defined. This PR fixes the problem for static users/roles in Shiro as well as Active Directory and/or LDAP based user-group-roles mapping. ### What type of PR is it? Improvement ### TODO * [ ] - Add documentation ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-2825 ### How should this be tested? Add the following in shiro.ini: [main] ... anyofroles = org.apache.zeppelin.utils.AnyOfRolesAuthorizationFilter [urls] ... /api/interpreter/** = authc, **anyofroles**[admin, role1] /api/configurations/** = authc, roles[admin] /api/credential/** = authc, roles[admin] ### Screenshots (if appropriate) Not applicable ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? Yes You can merge this pull request into a Git repository by running: $ git pull https://github.com/VipinRathor/zeppelin ZEPPELIN-2825 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/2515.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2515 ---- commit c5fc9deac9a5cd5111be899ce45cf471f54a5a83 Author: Vipin Rathor <v.rat...@gmail.com> Date: 2017-08-02T22:40:01Z ZEPPELIN-2825 - Fix Zeppelin to support any of the Shiro roles ---- --- 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. ---