Skip to content

Commit 05c9e14

Browse files
add doc
Change-Id: Icac0d2e9072370241f0c52e6a6794f31028f1aee
1 parent 529ab3e commit 05c9e14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/setup/security/shiro_authentication.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ To learn more about Apache Shiro Realm, please check [this documentation](http:/
104104

105105
We also provide community custom Realms.
106106

107+
**Note**: When using any of the below realms the default
108+
password-based (IniRealm) authentication needs to be disabled.
109+
107110
### Active Directory
108111

109112
```
@@ -267,13 +270,15 @@ If you want to grant this permission to other users, you can change **roles[ ]**
267270

268271
### Apply multiple roles in Shiro configuration
269272
By default, Shiro will allow access to a URL if only user is part of "**all the roles**" defined like this:
273+
270274
```
271275
[urls]
272276
273277
/api/interpreter/** = authc, roles[admin, role1]
274278
```
275279

276280
If there is a need that user with "**any of the defined roles**" should be allowed, then following Shiro configuration can be used:
281+
277282
```
278283
[main]
279284
anyofroles = org.apache.zeppelin.utils.AnyOfRolesAuthorizationFilter

0 commit comments

Comments
 (0)