ep_headerauth

1.1.19 • Public • Published

Publish Status Backend Tests Status

ep_headerauth

Etherpad plugin to use a reverse proxy's HTTP headers for authentication.

If the X-Authenticated-User header is present in the HTTP request coming from your reverse proxy, then the user is considered to have already been authenticated by your reverse proxy. The header's value is used as the user's username.

If the X-Authenticated-Name header is present, the user's displayed name is forced to that header's value.

The headers used by the plugin can be customized.

Configuration

To use this plugin the trustProxy and requireAuthentication config items must be set to true, otherwise it won't work as expected.

In your settings.json:

{
  // ...
  "trustProxy": true,
  "requireAuthentication": true,
  "ep_headerauth": {
    // Defaults to "x-authenticated-user"
    "username_header": "x-authenticated-user",
    // Defaults to "x-authenticated-name"
    "displayname_header": "x-authenticated-name"
  },
  // ...
}

Copyright and License

Copyright © 2020 Richard Hansen rhansen@rhansen.org

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.1910latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.1910
1.1.170
1.1.160
1.1.150
1.1.140
1.1.132
1.1.122
1.1.110
1.1.100
1.1.90
1.1.80
1.1.70
1.1.50
1.1.30
1.1.20
1.1.10
1.1.00
1.0.00

Package Sidebar

Install

npm i ep_headerauth

Weekly Downloads

7

Version

1.1.19

License

Apache-2.0

Unpacked Size

38.2 kB

Total Files

13

Last publish

Collaborators

  • johnyma22
  • rhansen0
  • gared