You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
into the library directory of your Solr installation.
26
+
into the [library directory of your Solr installation](https://solr.apache.org/guide/8_11/libs.html).
29
27
30
-
### Configure authentication
28
+
### Configure authentication & authorization
31
29
32
-
```json
33
-
{
34
-
"authentication": {
35
-
"class": "cool.solr.security.ForwardAuthPlugin",
36
-
"httpUserHeader": "X-Forwarded-User"
37
-
}
38
-
}
39
-
```
30
+
To activate authentication & authorization, place a `security.json`
31
+
in your Zookeeper root.
40
32
41
-
### Configure authorization
33
+
To activate forward __authentication__ in Solr, use the
34
+
`ForwardAuthPlugin` class as authentication class.
35
+
36
+
> The `httpUserHeader` is an optional configuration.
42
37
43
38
```json
44
39
{
@@ -59,6 +54,10 @@ into the library directory of your Solr installation.
59
54
}
60
55
```
61
56
57
+
For __authorization__, the `DefaultRuleBasedAuthorizationPlugin` extends
58
+
the [`RuleBasedAuthorizationPlugin`](https://solr.apache.org/guide/8_11/rule-based-authorization-plugin.html#example-for-rulebasedauthorizationplugin-and-basicauth) by assigning
59
+
users without an explicit `user-role` mapping a `defaultRole`.
60
+
62
61
### Example
63
62
64
63
The [`examples`](examples/) folder contains a simple Docker Compose ensemble.
@@ -68,10 +67,29 @@ From inside the directory, launch the Solr/Zookeeper ensemble:
0 commit comments