ep_httpauth_author

0.0.3 • Public • Published

ep_httpauth_author

Hooks into etherpad-lite authentication and gives users the same authorId each time they log in

Fork of ep_auth_author which works with etherpad 1.8.x.

Install

In your etherpad-lite dir:

npm install ep_httpauth_author

Add a prefix to settings.json to distinguish between normal BasicAuth users and users controlled by ep_httpauth_author. Also add ep_httpauth_author users to the users object in settings.json.

Example:

{
  "ep_httpauth_author": {
    "prefix": "author/"
  },
  "users": {
    "author/user": {
      "is_admin": false,
      "author_name": "Test User",
      "password": "changeme1"
    },
    "admin": {
      "is_admin": true,
      "password": "changeme1"
    }
  }
}

In this example, the prefix which identifies the user as being managed by ep_httpauth_author is author/. So the user author/user would log in with the username user and the password changeme1, which would "reconnect" the previous author (and thus user set edit color and author name) with the new login. The optional author_name field can be used to set the default author name for that user.

The admin user is handled by the normal BasicAuth authentication, and does not "reconnect" previously set options.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i ep_httpauth_author

      Weekly Downloads

      2

      Version

      0.0.3

      License

      GPLv2

      Unpacked Size

      24.7 kB

      Total Files

      7

      Last publish

      Collaborators

      • mspae