Skip to content

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

License

Notifications You must be signed in to change notification settings

apenwarr/ep_auth_author

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ep_auth_author

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

Install

In your etherpad-lite dir:

npm install ep_auth_author

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

Example:

{
  "ep_auth_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_auth_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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%