ep_headerauth 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,13 +16,17 @@ The headers used by the plugin can be customized.
|
|
|
16
16
|
|
|
17
17
|
## Configuration
|
|
18
18
|
|
|
19
|
+
To use this plugin the `trustProxy` and `requireAuthentication` config items
|
|
20
|
+
must be set to true, otherwise it won't work as expected.
|
|
21
|
+
|
|
19
22
|
In your `settings.json`:
|
|
20
23
|
|
|
21
24
|
```
|
|
22
25
|
{
|
|
23
26
|
// ...
|
|
24
27
|
"trustProxy": true,
|
|
25
|
-
"
|
|
28
|
+
"requireAuthentication": true,
|
|
29
|
+
"ep_headerauth": {
|
|
26
30
|
// Defaults to "x-authenticated-user"
|
|
27
31
|
"username_header": "x-authenticated-user",
|
|
28
32
|
// Defaults to "x-authenticated-name"
|