Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 * [x] - 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 Author: Vipin Rathor <[email protected]> Closes apache#2515 from VipinRathor/ZEPPELIN-2825 and squashes the following commits: 01deb25 [Vipin Rathor] ZEPPELIN-2825 - Added license header 2105810 [Vipin Rathor] ZEPPELIN-2825 - Fix formatting for doc changes 95a9b4f [Vipin Rathor] ZEPPELIN-2825 - Fix formatting in doc changes 3f49d84 [Vipin Rathor] ZEPPELIN-2825 - Add documentation for supporting any of the Shiro roles c5fc9de [Vipin Rathor] ZEPPELIN-2825 - Fix Zeppelin to support any of the Shiro roles
- Loading branch information